/* One.v2.43 — compact video-matched mobile Trending and Categories rails. */
@media (max-width:820px){
  /* Trending is a slim, continuously moving retail ticker like the reference video. */
  body.reference-storefront-v415 .mobile-market-trending{
    display:grid!important;
    grid-template-columns:72px minmax(0,1fr)!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    min-height:48px!important;
    height:48px!important;
    margin:0!important;
    padding:4px 8px!important;
    overflow:hidden!important;
    border-top:1px solid #2b2e33!important;
    border-bottom:1px solid #2b2e33!important;
    background:#202226!important;
  }
  body.reference-storefront-v415 .mobile-market-trending[hidden]{display:none!important}
  body.reference-storefront-v415 .mobile-trending-label{
    display:grid!important;
    place-items:center!important;
    width:72px!important;
    min-width:72px!important;
    min-height:38px!important;
    height:38px!important;
    padding:3px 5px!important;
    border-radius:10px!important;
    background:linear-gradient(135deg,#a94cf5,#6d25d8)!important;
    color:#fff!important;
    font:900 9px/1 Arial,sans-serif!important;
    letter-spacing:.1em!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
  }
  body.reference-storefront-v415 .mobile-trending-track{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    min-width:0!important;
    width:100%!important;
    height:40px!important;
    overflow:hidden!important;
    scroll-behavior:auto!important;
    scroll-snap-type:none!important;
    scrollbar-width:none!important;
    overscroll-behavior-x:contain!important;
    touch-action:pan-y!important;
    will-change:scroll-position!important;
  }
  body.reference-storefront-v415 .mobile-trending-track::-webkit-scrollbar{display:none!important}
  body.reference-storefront-v415 .mobile-trending-card{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    grid-template-rows:16px 14px!important;
    align-items:center!important;
    column-gap:6px!important;
    row-gap:0!important;
    flex:0 0 144px!important;
    width:144px!important;
    min-width:144px!important;
    max-width:144px!important;
    min-height:38px!important;
    height:38px!important;
    margin:0!important;
    padding:2px 6px 2px 3px!important;
    border:1px solid #33363b!important;
    border-radius:9px!important;
    background:#111316!important;
    color:#fff!important;
    box-shadow:none!important;
    scroll-snap-align:none!important;
    overflow:hidden!important;
  }
  body.reference-storefront-v415 .mobile-trending-card img{
    grid-row:1/3!important;
    width:34px!important;
    height:34px!important;
    border-radius:7px!important;
    object-fit:cover!important;
    background:#fff!important;
  }
  body.reference-storefront-v415 .mobile-trending-card b{
    align-self:end!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#fff!important;
    font:800 9.5px/1.05 Arial,sans-serif!important;
  }
  body.reference-storefront-v415 .mobile-trending-card span{
    align-self:start!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#ffb07f!important;
    font:900 9.5px/1.05 Arial,sans-serif!important;
  }
  body.reference-storefront-v415 .mobile-trending-card[data-trending-loop-clone="true"]{pointer-events:auto!important}

  /* Shop by Categories is reduced to roughly half its former mobile height. */
  body.reference-storefront-v415 .reference-category-panel{
    margin:0!important;
    padding:9px 8px 7px!important;
    min-height:0!important;
    border:0!important;
    border-bottom:1px solid #2a2d31!important;
    border-radius:0!important;
    background:#0b0c0e!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  body.reference-storefront-v415 .reference-category-panel .reference-section-title{
    display:flex!important;
    align-items:center!important;
    min-height:20px!important;
    margin:0 2px 5px!important;
  }
  body.reference-storefront-v415 .reference-category-panel .reference-section-title h2,
  body.reference-storefront-v415 .reference-category-panel .reference-section-title h2 b{
    margin:0!important;
    color:#fff!important;
    font:900 15px/1 Arial,sans-serif!important;
  }
  body.reference-storefront-v415 .reference-category-panel .reference-section-title>button{
    min-height:20px!important;
    padding:0!important;
    color:#ff7632!important;
    font:800 9px/1 Arial,sans-serif!important;
  }
  body.reference-storefront-v415 .reference-category-carousel{
    min-height:0!important;
    height:72px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    overflow:hidden!important;
  }
  body.reference-storefront-v415 .reference-category-row{
    display:flex!important;
    align-items:flex-start!important;
    gap:7px!important;
    height:72px!important;
    min-height:72px!important;
    padding:0 2px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
  }
  body.reference-storefront-v415 .reference-category-row::-webkit-scrollbar{display:none!important}
  body.reference-storefront-v415 .reference-category-row .category-card{
    display:grid!important;
    grid-template-rows:48px 18px!important;
    align-items:start!important;
    justify-items:center!important;
    flex:0 0 calc((100vw - 38px)/3)!important;
    width:calc((100vw - 38px)/3)!important;
    min-width:calc((100vw - 38px)/3)!important;
    max-width:calc((100vw - 38px)/3)!important;
    min-height:68px!important;
    height:68px!important;
    margin:0!important;
    padding:0 1px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  body.reference-storefront-v415 .reference-category-row .category-photo{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    margin:0 auto 2px!important;
    border:1px solid #30343a!important;
    border-radius:50%!important;
    background:#1b1d21!important;
    box-shadow:0 3px 10px rgba(0,0,0,.28)!important;
    overflow:hidden!important;
  }
  body.reference-storefront-v415 .reference-category-row .category-photo img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:50%!important;
  }
  body.reference-storefront-v415 .reference-category-row .category-card h3{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    overflow:hidden!important;
    color:#f5f5f6!important;
    font:800 8px/1.05 Arial,sans-serif!important;
    letter-spacing:.035em!important;
    text-align:center!important;
    text-overflow:ellipsis!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
  }
  body.reference-storefront-v415 .category-slide-arrow{display:none!important}
  body.reference-storefront-v415 .reference-products-panel{padding-top:24px!important}
}

@media (max-width:360px){
  body.reference-storefront-v415 .mobile-market-trending{grid-template-columns:62px minmax(0,1fr)!important;padding-inline:6px!important}
  body.reference-storefront-v415 .mobile-trending-label{width:62px!important;min-width:62px!important;font-size:8px!important}
  body.reference-storefront-v415 .mobile-trending-card{flex-basis:132px!important;width:132px!important;min-width:132px!important;max-width:132px!important}
  body.reference-storefront-v415 .reference-category-row .category-card{flex-basis:calc((100vw - 34px)/3)!important;width:calc((100vw - 34px)/3)!important;min-width:calc((100vw - 34px)/3)!important;max-width:calc((100vw - 34px)/3)!important}
  body.reference-storefront-v415 .reference-category-row .category-photo{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
}

@media (prefers-reduced-motion:reduce){
  body.reference-storefront-v415 .mobile-trending-track{overflow-x:auto!important;touch-action:pan-x pan-y!important}
}

/* One.v2.43 hard visibility guard: the Trending rail is static in HTML and can no longer
   disappear because catalog data, Owner panel visibility, or script timing is late. */
.mobile-market-trending{display:none}
@media (max-width:820px){
  .mobile-market-trending,
  body.reference-storefront-v415 .mobile-market-trending,
  body.oneza-mobile-black-active .mobile-market-trending{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    position:relative!important;
    z-index:8!important;
  }
  .mobile-market-trending[hidden]{display:grid!important}
  .mobile-trending-track{min-width:0!important;visibility:visible!important;opacity:1!important}
  .mobile-trending-card.is-loading{
    grid-template-columns:24px minmax(0,1fr)!important;
    width:170px!important;
    min-width:170px!important;
    max-width:170px!important;
    opacity:.9!important;
    cursor:default!important;
  }
  .mobile-trending-card.is-loading .mobile-trending-loader{
    grid-row:1/3!important;
    width:18px!important;
    height:18px!important;
    align-self:center!important;
    border:2px solid rgba(255,255,255,.25)!important;
    border-top-color:#ff6a2b!important;
    border-radius:50%!important;
    animation:onezaTrendingSpin .8s linear infinite!important;
  }
}
@keyframes onezaTrendingSpin{to{transform:rotate(360deg)}}
