/* YamaBoats 18.6: mobile category polish only. No changes to filter controls. */
@media (max-width: 740px) {
  body#category #yb-category-181 .yb181-grid > .yb181-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 7px) / 2);
    justify-self: center;
  }
  body#category #yb-category-181 { margin-bottom: 16px; }
}
@media (max-width: 767.98px) {
  body#category #wrapper .breadcrumb {font-size: 12px; line-height: 1.55; overflow-wrap: anywhere;}
  body#category #wrapper .breadcrumb li, body#category #wrapper .breadcrumb li a {font-size: inherit; line-height: inherit; white-space: normal;}
  body#category #js-product-list .pagination {margin: 16px 0 10px !important; padding: 0 !important; width: 100%; max-width: 100%;}
  body#category #js-product-list .pagination .page-list {
    display: flex !important; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
    float: none !important; width: 100% !important; max-width: 100%; padding: 0 !important; margin: 0 !important;
    background: transparent !important; box-shadow: none !important; list-style: none;
  }
  body#category #js-product-list .pagination .page-list > li {float: none !important; display: inline-flex !important; margin: 0 !important; padding: 0 !important; min-width: 0; background: transparent !important; border: 0 !important;}
  body#category #js-product-list .pagination .page-list > li > :is(a,span) {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 3px;
    box-sizing: border-box; min-width: 42px; min-height: 44px; width: auto !important; height: auto !important;
    padding: 8px 10px !important; margin: 0 !important; border: 1px solid #d4dfeb !important;
    border-radius: 7px !important; background: #fff !important; color: #102846 !important; box-shadow: none !important;
    font-family: inherit; font-size: 14px !important; font-weight: 600 !important; line-height: 1.2 !important; text-decoration: none !important;
  }
  body#category #js-product-list .pagination .page-list > li.current > :is(a,span),
  body#category #js-product-list .pagination .page-list > li > :is(a,span)[aria-current="page"] {background: #102846 !important; border-color: #102846 !important; color: #fff !important;}
  body#category #js-product-list .pagination .page-list > li.disabled > :is(a,span),
  body#category #js-product-list .pagination .page-list > li > :is(a,span).disabled {color: #657487 !important; background: #f3f5f8 !important;}
  body#category #js-product-list .pagination .page-list > li > a:focus-visible,
  body#category #js-product-list .up > a:focus-visible {outline: 2px solid #28659e; outline-offset: 2px;}
  body#category #js-product-list .up {margin: 12px 0 18px !important; padding: 0 !important; text-align: center !important;}
  body#category #js-product-list .up > a.btn {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
    min-height: 44px; max-width: 100%; margin: 0 !important; padding: 9px 16px !important;
    border: 1px solid #b9c7d7 !important; border-radius: 7px !important; background: #fff !important;
    color: #102846 !important; font-size: 13px !important; line-height: 1.3 !important; font-weight: 600 !important;
    text-transform: none !important; box-shadow: none !important; text-decoration: none !important;
  }
  body#category #js-product-list .up > a.btn .material-icons {font-size: 19px; color: inherit !important; margin: 0 !important;}
  /* Known PrestaShop category description wrappers; only inside category content. */
  body#category #content-wrapper :is(#category-description,#category-description-bottom,#category-description-footer,.category-description,.category-description-bottom,.category-description-footer,.category-footer) {
    color: #26384d; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; text-align: left;
  }
  body#category #content-wrapper :is(#category-description,#category-description-bottom,#category-description-footer,.category-description,.category-description-bottom,.category-description-footer,.category-footer) :is(h2,h3,h4) {
    color: #102846 !important; font-family: inherit; font-size: 16px !important; font-weight: 700 !important;
    line-height: 1.35 !important; margin: 18px 0 8px !important; text-transform: none !important; letter-spacing: normal;
  }
  body#category #content-wrapper :is(#category-description,#category-description-bottom,#category-description-footer,.category-description,.category-description-bottom,.category-description-footer,.category-footer) h2 {font-size: 18px !important;}
  body#category #content-wrapper :is(#category-description,#category-description-bottom,#category-description-footer,.category-description,.category-description-bottom,.category-description-footer,.category-footer) :is(p,li) {
    font-size: 14px !important; line-height: 1.65 !important; color: #26384d !important;
  }
  body#category #content-wrapper :is(#category-description,#category-description-bottom,#category-description-footer,.category-description,.category-description-bottom,.category-description-footer,.category-footer) p {margin: 0 0 12px !important;}
  body#category #content-wrapper :is(#category-description,#category-description-bottom,#category-description-footer,.category-description,.category-description-bottom,.category-description-footer,.category-footer) a {color: #245b91 !important; text-decoration: underline; text-underline-offset: 2px;}
  body#category #content-wrapper :is(#category-description,#category-description-bottom,#category-description-footer,.category-description,.category-description-bottom,.category-description-footer,.category-footer) img {max-width: 100%; height: auto;}
}
