.zpb-mobile-actions { display: none; }
.zpb-filter-open { display: none; }
.zpb-filter-dialog:not([open]) { display: none; }
.zpb-filter-modal-open { overflow: hidden; }
.zpb-filter-dialog::backdrop { background: rgb(40 27 38 / 45%); }
.zpb-filter-dialog {
  position: fixed; inset: 0 0 0 auto; box-sizing: border-box; width: min(100%, 420px);
  height: 100%; height: 100dvh; max-height: none; max-width: 100%; margin: 0; padding: 0 0 env(safe-area-inset-bottom);
  border: 0; border-radius: 0; background: #fff; color: #403642; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; font-family: inherit;
}
.zpb-filter-dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #eed3df; background: #fff; }
.zpb-filter-dialog-head h2 { margin: 0; color: #b76d91; font-size: 22px; }
.zpb-filter-dialog-head .zpb-filter-close { min-height: 44px; padding: 8px 12px; border: 1px solid #d5a4bc; border-radius: 8px; color: #9e5277; background: #fff; font-size: 14px; white-space: normal; }
.zpb-mobile-actions a:focus-visible, .zpb-filter-open:focus-visible, .zpb-filter-dialog button:focus-visible { outline: 3px solid #803553; outline-offset: 2px; }
@media (max-width: 921px) {
  #ast-mobile-header .site-header-primary-section-right { flex-shrink: 0; gap: 0; }
  #ast-mobile-header .site-header-primary-section-left { min-width: 0; flex: 1 1 auto; }
  #ast-mobile-header .custom-logo-link img { max-width: min(180px, calc(100vw - 164px)); height: auto; }
  #ast-mobile-header .zpb-mobile-actions { display: flex; align-items: center; gap: 0; }
  #ast-mobile-header .zpb-mobile-actions > a { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; box-sizing: border-box; color: #b76d91; text-decoration: none; }
  #ast-mobile-header .zpb-mobile-actions svg { display: block; width: 24px; height: 24px; flex-shrink: 0; }
  .zpb-mobile-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 20px; background: #b76d91; color: #fff; font-size: 10px; line-height: 1; }
  #ast-mobile-header .zpb-mobile-actions .zpb-mobile-cart-count { position: absolute; right: 0; top: 1px; }
  .zpb-mobile-cart-count[data-count="0"] { display: none; }
  .zpb-mobile-menu-item .zpb-mobile-cart-count { margin-left: 6px; }
  /* Without JS/dialog support, keep the existing filter visible inline. */
  body.tax-product_cat #secondary, body.tax-product_cat #secondary .sidebar-main, body.tax-product_cat #secondary .zpb-filter { display: block !important; }
  body.tax-product_cat #secondary { position: static !important; min-width: 0 !important; width: 100% !important; max-width: none !important; }
  body.tax-product_cat.zpb-mobile-filter-ready #secondary { display: none !important; }
  body.tax-product_cat.zpb-mobile-filter-ready .zpb-filter-open { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 8px 0 14px; padding: 10px 20px; border: 1px solid #b76d91; border-radius: 10px; background: #b76d91; color: #fff; font: inherit; cursor: pointer; }
  body.tax-product_cat #zpb-filter-dialog[open] #secondary { display: block !important; float: none !important; position: static !important; width: 100% !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  body.tax-product_cat #zpb-filter-dialog #secondary .zpb-filter { display: block !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  body.tax-product_cat #zpb-filter-dialog #secondary .zpb-filter__form { max-height: none !important; overflow: visible !important; }
  body.tax-product_cat #zpb-filter-dialog .zpb-filter__top h2 { display: none; }
}
