.cat-mobile-toolbar {
  display: none;
}

.cat-drawer-root {
  display: none;
}

@media (max-width: 767px) {
  [data-listing-page] .cat-active-filters-row,
  [data-listing-page] .cat-toolbar-active,
  #product-category .cat-active-filters-row,
  #product-category .cat-toolbar-active,
  #product-special .cat-active-filters-row,
  #product-special .cat-toolbar-active,
  #product-manufacturer .cat-active-filters-row,
  #product-manufacturer .cat-toolbar-active,
  #generator-category .cat-active-filters-row,
  #generator-category .cat-toolbar-active {
    display: none !important;
  }

  [data-listing-page] .cat-toolbar-filters,
  #product-category .cat-toolbar-filters,
  #product-special .cat-toolbar-filters,
  #product-manufacturer .cat-toolbar-filters,
  #generator-category .cat-toolbar-filters {
    display: none !important;
  }

  [data-listing-page] .cat-mobile-toolbar,
  #product-category .cat-mobile-toolbar,
  #product-special .cat-mobile-toolbar,
  #product-manufacturer .cat-mobile-toolbar,
  #generator-category .cat-mobile-toolbar {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  [data-listing-page] .cat-mobile-toolbar__btn,
  #product-category .cat-mobile-toolbar__btn,
  #product-special .cat-mobile-toolbar__btn,
  #product-manufacturer .cat-mobile-toolbar__btn,
  #generator-category .cat-mobile-toolbar__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--cat-toolbar-btn-border, #ddd);
    border-radius: 8px;
    background: #fff;
    color: var(--cat-toolbar-btn-text, #444);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
  }

  [data-listing-page] .cat-mobile-toolbar__btn .fa,
  #product-category .cat-mobile-toolbar__btn .fa,
  #product-special .cat-mobile-toolbar__btn .fa,
  #product-manufacturer .cat-mobile-toolbar__btn .fa,
  #generator-category .cat-mobile-toolbar__btn .fa {
    color: #64748b;
    font-size: 15px;
  }

  [data-listing-page] .cat-mobile-toolbar__btn:active,
  #product-category .cat-mobile-toolbar__btn:active,
  #product-special .cat-mobile-toolbar__btn:active,
  #product-manufacturer .cat-mobile-toolbar__btn:active,
  #generator-category .cat-mobile-toolbar__btn:active {
    background: var(--cat-toolbar-btn-active-bg, #f3f7f1);
    border-color: var(--cat-toolbar-btn-active-border, var(--brand-primary, #51aa1b));
    color: var(--cat-toolbar-btn-active-text, var(--brand-primary, #51aa1b));
  }

  .cat-drawer-root {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
    visibility: hidden;
  }

  .cat-drawer-root.is-visible {
    pointer-events: auto;
    visibility: visible;
  }

  .cat-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .cat-drawer-root.is-visible .cat-drawer-backdrop {
    opacity: 1;
  }

  .cat-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 360px);
    height: 100%;
    max-height: 100vh;
    background: #fff;
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
  }

  .cat-drawer.is-open {
    transform: translateX(0);
  }

  .cat-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex: 0 0 auto;
  }

  .cat-drawer__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
  }

  .cat-drawer__title .fa {
    color: var(--brand-primary, #51aa1b);
  }

  .cat-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .cat-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 20px;
  }

  .cat-drawer-section + .cat-drawer-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
  }

  .cat-drawer-section__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
  }

  .cat-drawer-section__title .fa {
    color: var(--brand-primary, #51aa1b);
  }

  .cat-drawer-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cat-drawer-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
  }

  .cat-drawer-option:hover,
  .cat-drawer-option:focus {
    color: #1f2937;
    background: #fff;
    border-color: color-mix(in srgb, var(--brand-primary, #51aa1b) 35%, #e5e7eb);
  }

  .cat-drawer-option.is-active {
    background: #fff;
    border-color: var(--brand-primary, #c2a009);
    color: var(--brand-primary, #c2a009);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-primary, #c2a009) 25%, transparent);
  }

  .cat-drawer-option__check {
    flex: 0 0 auto;
    color: var(--brand-primary, #51aa1b);
    font-size: 16px;
    opacity: 0;
  }

  .cat-drawer-option.is-active .cat-drawer-option__check {
    opacity: 1;
  }

  .cat-drawer--filter .sf-active-filters-wrap {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f7;
  }

  .cat-drawer--filter .sf-active-filters-wrap .sf-active-filters-card {
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .cat-drawer--filter .sf-active-filters-card__body {
    padding: 0;
  }

  .cat-drawer--filter .sf-active-filters__list {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
  }

  .cat-drawer--filter .sf-filter-stack {
    gap: 10px;
  }

  .cat-drawer--filter .sf-filter-card__toggle {
    padding: 10px 12px;
  }

  .cat-drawer--filter .sf-filter-card__body {
    padding: 10px 12px 12px;
  }

  body.cat-drawer-open {
    overflow: hidden;
  }
}
