/**
 * Equsto PLP — Mobile Filter Left Drawer (CafeMarkt tarzı)
 * Breakpoint: ≤768px
 * Filtrele → soldan kayan beyaz panel; Kategoriler açık.
 */
@media (max-width: 768px) {
  /* CafeMarkt: ikon + metin satırı — kutu yok, Alt Kategoriler yok */
  .eq-dept-plp-toolbar,
  .eq-dept-plp-toolbar--marka {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px 22px !important;
    padding: 6px 0 10px !important;
    border-bottom: 1px solid #eee !important;
    background: #fff !important;
  }

  .eq-dept-plp-toolbar__row--primary,
  .eq-dept-plp-toolbar__row--sort {
    display: contents !important;
  }

  .eq-dept-plp-filter-mob,
  .eq-arama-filter-mob,
  .eq-marka-plp-filter-mob {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 10px 4px !important;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px !important;
  }

  .eq-dept-plp-filter-mob::before,
  .eq-arama-filter-mob::before,
  .eq-marka-plp-filter-mob::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 7.25h16v1.5H4zm0 8h16v1.5H4z'/%3E%3Ccircle cx='9' cy='8' r='2.35' fill='black'/%3E%3Ccircle cx='15' cy='16' r='2.35' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 7.25h16v1.5H4zm0 8h16v1.5H4z'/%3E%3Ccircle cx='9' cy='8' r='2.35' fill='black'/%3E%3Ccircle cx='15' cy='16' r='2.35' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .eq-dept-plp-filter-mob:hover,
  .eq-arama-filter-mob:hover,
  .eq-marka-plp-filter-mob:hover,
  .eq-dept-plp-filter-mob:active,
  .eq-arama-filter-mob:active,
  .eq-marka-plp-filter-mob:active {
    background: transparent !important;
    border: 0 !important;
    opacity: 0.72;
  }

  .eq-dept-plp-filter-mob .eq-filter-mob__badge,
  .eq-arama-filter-mob .eq-filter-mob__badge,
  .eq-marka-plp-filter-mob .eq-filter-mob__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }

  .eq-dept-plp-sort {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    margin: 0 !important;
  }

  .eq-dept-plp-sort::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='M6 11l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .eq-dept-plp-sort > span {
    display: none !important;
  }

  .eq-dept-plp-sort select {
    width: auto !important;
    max-width: 58vw;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 8px 18px 8px 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  .eq-dept-plp-count,
  #eq-arama-filter-count,
  .eq-dept-plp-toolbar--marka .eq-dept-plp-count {
    flex: 1 0 100% !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 12px !important;
    line-height: 1.35;
    padding: 2px 4px 0 !important;
    color: #666 !important;
  }

  .eq-dept-plp-count strong {
    color: var(--eq-text, #111);
  }

  .eq-dept-plp-main {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  /* Sol drawer — dept / arama */
  .eq-dept-plp-aside,
  .eq-arama-aside {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1200 !important;
    width: min(300px, 88vw) !important;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
    background: #fff !important;
    border-right: 1px solid #e8e8e8 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(-105%) !important;
    transition: transform 0.22s ease !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.eq-dept-filter-open .eq-dept-plp-aside,
  body.eq-dept-filter-open .eq-arama-aside {
    transform: translateX(0) !important;
  }

  .eq-dept-filter-backdrop {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1190 !important;
    background: rgba(0, 30, 80, 0.35) !important;
  }

  body.eq-dept-filter-open .eq-dept-filter-backdrop {
    display: block !important;
  }

  .eq-dept-plp-aside__hd {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
  }

  .eq-dept-plp-aside__close,
  .eq-filter-drawer-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 28px;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* Eski bottom sheet kapalı */
  .eq-dept-filter-sheet,
  .eq-dept-filter-sheet-backdrop {
    display: none !important;
  }

  /* Marka PLP sol sütun drawer */
  body.eq-marka-plp .eq-filter-col.eq-refine-amazon,
  body.eq-marka-plp-shop .eq-filter-col.eq-refine-amazon {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1200 !important;
    width: min(300px, 88vw) !important;
    max-width: 88vw !important;
    max-height: none !important;
    margin: 0 !important;
    background: #fff !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%) !important;
    transition: transform 0.22s ease !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

  body.eq-marka-plp.eq-dept-filter-open .eq-filter-col.eq-refine-amazon,
  body.eq-marka-plp-shop.eq-dept-filter-open .eq-filter-col.eq-refine-amazon {
    transform: translateX(0) !important;
  }

  body.eq-marka-plp .eq-filter-col-hd,
  body.eq-marka-plp-shop .eq-filter-col-hd {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
  }

  /* Drawer içinde accordion açık görünüm */
  body.eq-dept-filter-open .eq-cm-facet {
    border-bottom: 1px solid var(--eq-border-soft, #e5e7eb);
  }
}
