/* Responsive category and product listing. Desktop layout uses the existing theme. */
@media (max-width: 767.98px) {
  body:has(.listing-page) { background:#f4f6f9; }
  .breadcrumb-title-bar { padding:9px 14px !important; min-height:0; }
  .breadcrumb-title-bar h2 { font-size:15px !important; margin:0 !important; }
  .breadcrumb-title-bar nav { display:none; }
  .category-listing-hero {
    flex-direction:row; text-align:left; align-items:center; min-height:0;
    gap:12px; margin:10px 12px 8px; padding:10px;
    border:0; border-radius:16px; box-shadow:0 2px 10px #15243b0b;
  }
  .category-listing-hero-image { width:66px; height:66px; flex:0 0 66px; border:0; border-radius:12px; }
  .category-listing-hero-image img { object-fit:contain; }
  .category-listing-eyebrow { font-size:9px; margin-bottom:2px; }
  .category-listing-hero-copy h1 { font-size:18px; line-height:1.2; margin:0; overflow-wrap:anywhere; }
  .category-listing-hero-copy p { display:none; }
  .listing-page { padding:0 12px 90px !important; }
  .listing-page .product-listing > .row > [class*="col-lg-"] > .filter-section {
    position:relative; padding:10px !important; border:0; border-radius:15px; box-shadow:0 2px 10px #15243b0b;
  }
  .listing-page .filter-section > .col-12 > .dropdown { display:flex; align-items:center; gap:7px; }
  .listing-page .product-listing .filter-bars { display:inline-block; width:85px; height:38px; padding:0; line-height:normal; vertical-align:top; }
  .listing-page .menu.js-menu { display:block; width:85px; height:38px; border:1px solid #e5e8ee; border-radius:10px; background:#fff; }
  .listing-page .menu.js-menu .menu__line { left:13px; width:17px; transform:none; background:#303744; }
  .listing-page .menu.js-menu .menu__line:nth-child(1) { top:12px; }
  .listing-page .menu.js-menu .menu__line:nth-child(2) { top:18px; }
  .listing-page .menu.js-menu .menu__line:nth-child(3) { bottom:12px; }
  .listing-page .red20-filter-label { position:absolute; left:36px; top:9px; font-size:13px; font-weight:700; color:#202633; }
  .listing-page .product-listing .sort-by { display:inline-flex; flex:1 1 0; max-width:none; width:auto; min-width:0; min-height:38px; padding:0 !important; vertical-align:top; margin:0; }
  .listing-page .product-listing .sort-by:not(:has(#product_sort_by)) { display:none !important; }
  .listing-page .product-listing .sort-by > .dropdown { display:none !important; }
  .listing-page .product-listing .sort-by .ele-wrapper, .listing-page .product-listing .sort-by .ele-wrapper .form-group { flex:0 0 100%; max-width:100%; width:100%; margin:0; }
  .listing-page #product_sort_by { width:100%; height:38px; padding:5px 24px 5px 10px; border:1px solid #e5e8ee; border-radius:10px; background:#fff; color:#303744; font-size:12px; }
  .listing-page .js-menu.active .red20-filter-label { display:none; }
  .listing-page .js-menu.active { width:36px !important; height:36px !important; }
  .listing-page .js-menu.active .menu__line { left:8px !important; width:18px !important; }
  .listing-page .js-filter-nav.open .js-filter-nav__list { padding-top:62px; }
  .listing-page .js-filter-nav.open .js-filter-nav__list::before {
    content:'Filter products'; display:block; margin:0 0 20px; color:#182132; font-size:21px; font-weight:800;
  }
  .listing-page .js-filter-nav.open .product_filter_btn { color:#ff674f !important; }
  .listing-page .js-filter-nav.open .button-warning { background:#ff674f !important; color:#fff !important; border:0 !important; }
  .listing-page .subcategory-heading { padding:12px 2px 9px !important; border:0; }
  .listing-page .subcategory-heading .h3 { font-size:17px; }
  .subcategory-section.category-section { overflow:visible; margin:0; padding:0 !important; background:transparent !important; }
  .subcategory-section .subcategory-grid {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px;
    overflow:visible; margin:0; padding:0 2px 8px;
  }
  .subcategory-section .subcategory-item { width:100%; max-width:none; min-width:0; }
  .subcategory-section .subcategory-card { min-height:0; padding:6px 6px 9px; border:0; border-radius:14px; box-shadow:0 2px 8px #15243b0c; }
  .subcategory-section .subcategory-image-wrap { height:auto; aspect-ratio:1/1; background:#f6f8fa; }
  .subcategory-section .subcategory-image-wrap img { object-fit:contain; }
  .subcategory-section .subcategory-name { min-height:31px; margin-top:5px; font-size:11px; line-height:1.3; overflow-wrap:anywhere; }
  .listing-page .product-listing .row.w-100 { margin:14px 0 0 !important; width:100% !important; row-gap:4px; }
  .listing-page .product-listing .row.w-100 > [class*="col-"] { padding:0 5px; }
  .listing-page .product-listing .row.w-100 > .col-md-3.col-sm-6 { flex:0 0 50%; max-width:50%; }
  .listing-page .product-listing .row.w-100 .product-grid { height:292px; min-height:292px; padding-bottom:62px; border-radius:14px; box-shadow:0 2px 8px #15243b12; }
  .listing-page .product-listing .row.w-100 .product-grid .product-image { height:158px !important; }
  .listing-page .product-listing .row.w-100 .product-grid .product-image-container { height:150px !important; line-height:150px; }
  .listing-page .product-listing .row.w-100 .product-grid .product-content { right:5px; left:5px; bottom:6px; }
  .listing-page .product-listing .row.w-100 .product-grid .title, .listing-page .product-listing .row.w-100 .product-grid .title a { height:34px; font-size:12px; text-align:left; }
  .listing-page .product-listing .row.w-100 .product-grid .product-content p { min-height:24px; margin:4px 0 7px !important; font-size:14px !important; text-align:left; white-space:normal; overflow-wrap:anywhere; }
  .listing-page .product-listing .row.w-100 .product-grid .product-content p #price { font-size:14px !important; font-weight:800; color:#ff674f; }
  .listing-page .product-listing .row.w-100 .product-grid .add-to-cart { min-height:37px; padding:9px 5px; border-radius:9px; background:#ff674f; color:#fff !important; }
  .listing-page .product-listing .row.w-100 .product-grid .add-to-cart:hover, .listing-page .product-listing .row.w-100 .product-grid .add-to-cart:focus { color:#fff !important; }
}
