/* Accessories Shop Premium — Hotfix 33
 * Category pages on phones: image first, product controls second, products immediately after.
 * Preserve native facetedsearch offcanvas and native AJAX sorting/filtering.
 */
@media (max-width:767.98px) {
  /* Category trees occupy the full viewport BEFORE the hero in the base layout.
     Collapse the sidebar's normal flow, but KEEP its fixed Bootstrap filter drawer. */
  body#category #left-column {
    display:block!important;
    flex:0 0 100%!important;
    width:100%!important;
    height:0!important;
    max-height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    position:static!important;
    overflow:visible!important;
    background:transparent!important;
  }
  /* Keep the native offcanvas facet panel, hide category-tree and all other sidebar widgets. */
  body#category #left-column > :not(.ps-facetedsearch) { display:none!important; }
  body#category #left-column > .ps-facetedsearch:not(.ps-facetedsearch--mobile) { display:none!important; }
  body#category #left-column .ps-facetedsearch--mobile {
    position:fixed!important;
    z-index:1060!important;
    height:100dvh!important;
    width:min(90vw,380px)!important;
    max-width:100%!important;
    overflow-y:auto;
    background:#fffaf9;
    box-shadow:10px 0 48px rgba(60,35,44,.14)!important;
    visibility:hidden;
  }
  body#category #left-column .ps-facetedsearch--mobile.show,
  body#category #left-column .ps-facetedsearch--mobile.showing {visibility:visible!important;}
  body#category #left-column .ps-facetedsearch--mobile .offcanvas-header {
    border-bottom:1px solid #f0e4e7!important;
    padding:20px 19px 15px!important;
  }
  body#category #left-column .ps-facetedsearch--mobile .offcanvas-title {
    font-size:1.15rem!important;color:#3b2c33!important;font-weight:700!important;
  }
  body#category #left-column .ps-facetedsearch--mobile .offcanvas-body {padding:14px 19px 25px!important;}
  body#category #center-column {
    flex:0 0 100%!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding-inline:0!important;
  }
  body#category #center-column #js-product-list-header {margin:0!important;padding:0!important;}
  body#category #center-column .category__header {
    margin:0!important;padding:0!important;
  }
  /* The shopper sees the category image rather than a long list of links/paragraphs. */
  body#category #center-column .category__header .subcategory,
  body#category #center-column .category__header .category__subcategories,
  body#category #center-column .category__header .category__description {display:none!important;}
  body#category .asu-category-hero-v6 {
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:1.85/1!important;
    margin:0 0 10px!important;
    border-radius:15px!important;
    overflow:hidden!important;
  }
  body#category .asu-category-hero-v6 > img {object-position:63% 50%!important;}
  body#category .asu-category-hero-v6__copy {width:77%!important;padding:15px!important;}
  body#category .asu-category-hero-v6__eyebrow {font-size:.52rem!important;margin-bottom:7px!important;letter-spacing:.09em!important;}
  body#category .asu-category-hero-v6__title {font-size:clamp(1.28rem,5.7vw,1.85rem)!important;line-height:1.11!important;max-width:14ch!important;}
  body#category .asu-category-hero-v6__sub {display:none!important;}
  /* Native covers and generic fallback, on categories without editorial imagery. */
  body#category .asu-native-category-cover {
    width:100%!important;height:auto!important;max-height:210px!important;
    aspect-ratio:1.85/1!important;margin:0 0 10px!important;
    border-radius:15px!important;overflow:hidden!important;background:#fae9e9!important;
  }
  body#category .asu-native-category-cover img {
    display:block!important;width:100%!important;height:100%!important;
    max-height:none!important;object-fit:cover!important;object-position:center!important;
  }
  body#category .asu33-generic-cover img {object-position:65% center!important;}
  body#category .category__header:not(.asu-category-has-hero) > .page-title-section {
    font-size:clamp(1.35rem,5.6vw,1.8rem)!important;
    margin:0 0 9px!important;line-height:1.15!important;
  }
  /* Brand categories use a brand logo instead of an editorial category photo. */
  body#category .asu-category-brand-hero {
    padding:12px 14px!important;border-radius:15px!important;
    margin:0 0 10px!important;
  }
  body#category .asu-category-brand-hero .asu-manufacturer-hero__top {margin-bottom:7px!important;}
  body#category .asu-category-brand-hero .asu-manufacturer-hero__inner {
    display:flex!important;flex-direction:row!important;align-items:center!important;
    gap:12px!important;
  }
  body#category .asu-category-brand-hero .asu-manufacturer-hero__logo {
    flex:0 0 92px!important;width:92px!important;max-width:92px!important;
    height:82px!important;max-height:82px!important;padding:9px!important;
  }
  body#category .asu-category-brand-hero .asu-manufacturer-hero__logo img {
    max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  }
  body#category .asu-category-brand-hero .asu-manufacturer-eyebrow {font-size:.57rem!important;}
  body#category .asu-category-brand-hero h1 {font-size:clamp(1.2rem,5.6vw,1.6rem)!important;line-height:1.12!important;}
  body#category .asu-category-brand-hero .asu-manufacturer-hero__text > p,
  body#category .asu-category-brand-hero .asu-collection-hero__actions,
  body#category .asu-category-brand-hero .asu-manufacturer-back,
  body#category .asu-category-brand-hero .asu-collection-hero__edition {display:none!important;}
  /* The native product section remains functional; tighten image-to-products gap. */
  body#category #products {margin:0!important;padding:0!important;}
  body#category #js-product-list-top {margin:0 0 11px!important;}
  body#category #js-product-list-top .products__selection {
    display:flex!important;flex-wrap:wrap!important;gap:7px 9px!important;
    justify-content:space-between!important;align-items:center!important;
    padding:9px 10px!important;margin:0!important;
    border:1px solid #eee0e3!important;border-radius:14px!important;
    box-shadow:none!important;background:#fff!important;
  }
  body#category #js-product-list-top .products__count {
    order:0!important;flex:0 1 auto!important;min-width:70px!important;width:auto!important;
    font-size:.71rem!important;line-height:1.3!important;margin:0!important;
  }
  body#category #js-product-list-top .products__sort {
    order:1!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;
    display:flex!important;gap:7px!important;align-items:center!important;
    justify-content:flex-end!important;flex-wrap:wrap!important;
  }
  body#category #js-product-list-top .products__sort-label {display:none!important;}
  body#category #js-product-list-top .products__sort-dropdown {order:2!important;flex:0 1 auto!important;min-width:0!important;}
  body#category #js-product-list-top .products__sort-dropdown-button,
  body#category #js-product-list-top #search_filter_toggler {
    min-height:35px!important;height:auto!important;max-width:148px!important;
    padding:7px 10px!important;border:1px solid #ead6de!important;
    border-radius:999px!important;background:#fff8fa!important;
    color:#73495c!important;box-shadow:none!important;
    font-size:.74rem!important;font-weight:700!important;line-height:1.2!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  body#category #js-product-list-top #search_filter_toggler {order:1!important;flex:0 0 auto!important;background:#b8798d!important;color:white!important;border-color:#b8798d!important;}
  body#category #js-product-list-top #search_filter_toggler .material-icons {font-size:15px!important;}
  body#category #js-product-list-top #search_filter_toggler svg {display:block;width:16px;height:16px;flex:0 0 16px;}
  body#category #js-product-list-top .products__sort-dropdown .dropdown-menu {z-index:1080!important;}
  body#category #js-active-search-filters {margin:0 0 8px!important;}
  body#category #js-product-list .products {margin-top:0!important;}
  body#category #js-product-list .products__pagination {margin-top:18px!important;}
}
