/* Myntra-style product listing filters. Brand color stays purple. */
body.category-page .horizontal-filter-bar { display: none !important; }

body.category-page .main-container > .sidebar {
  width: 232px !important;
  min-width: 232px !important;
  padding: 4px 16px 24px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}
body.category-page .sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9e9ed;
  padding-bottom: 10px;
  margin-bottom: 0;
}
body.category-page .sidebar h2 {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #282c3f;
}
body.category-page .clear-filters-btn {
  border: 0;
  background: none;
  color: #6e1597;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
body.category-page .filter-section,
body.category-page #color-options,
body.category-page #filter_size_option,
body.category-page .filter-brand-section { display: none !important; }

.myn-sec { border-bottom: 1px solid #e9e9ed; padding: 14px 0 8px; }
.myn-sec h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #282c3f; }
.myn-search {
  width: 100%;
  height: 32px;
  border: 1px solid #d4d5d9;
  border-radius: 2px;
  padding: 0 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.myn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 14px;
  color: #282c3f;
  cursor: pointer;
}
.myn-row input { width: 16px; height: 16px; accent-color: #6e1597; flex: 0 0 16px; }
.myn-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myn-row b { color: #94969f; font-weight: 400; font-size: 12px; }
.myn-list { max-height: 220px; overflow: auto; }

.myn-sortbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  color: #282c3f;
}
.myn-sortbar select {
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  color: #282c3f;
  cursor: pointer;
}

@media (max-width: 820px) {
  body.category-page .main-container > .sidebar,
  body.category-page .close-filter-sidebar,
  body.category-page .close-filter-sidebars,
  body.category-page .myn-sortbar { display: none !important; }

  body.category-page #mobile-filter-overlay.open,
  body.category-page #mobile-sort-overlay.open {
    z-index: 100000 !important;
    background: rgba(0,0,0,.45) !important;
  }
  body.category-page #mobile-filter-sheet {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
    transform: none !important;
    z-index: 100001 !important;
    display: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  body.category-page #mobile-filter-sheet.open {
    display: flex !important;
    flex-direction: column !important;
  }
  body.category-page #mobile-filter-sheet .mobile-sheet-handle,
  body.category-page #mobile-filter-sheet .mobile-sheet-header { display: none !important; }
  .myn-filter-head {
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .4px;
    border-bottom: 1px solid #e9e9ed;
  }
  .myn-filter-body { flex: 1; display: flex; min-height: 0; }
  .myn-filter-nav {
    width: 42%;
    background: #f5f5f6;
    overflow: auto;
  }
  .myn-filter-nav button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 16px 14px;
    font-size: 14px;
    color: #282c3f;
    border-bottom: 1px solid #e9e9ed;
  }
  .myn-filter-nav button.on { background: #fff; font-weight: 700; }
  .myn-filter-pane { width: 58%; overflow: auto; padding: 8px 12px 16px; background: #fff; }
  .myn-filter-foot {
    display: flex;
    border-top: 1px solid #e9e9ed;
    height: 52px;
  }
  .myn-filter-foot button {
    flex: 1;
    border: 0;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
  }
  .myn-filter-foot .myn-close { color: #282c3f; border-right: 1px solid #e9e9ed; }
  .myn-filter-foot .myn-apply { color: #6e1597; }

  body.category-page #mobile-sort-sheet {
    left: 7% !important;
    right: 7% !important;
    bottom: 18% !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 2px !important;
    padding: 8px 0 !important;
    z-index: 100001 !important;
    box-shadow: 0 8px 28px rgba(40,44,63,.28) !important;
    transform: translateY(140%) !important;
    visibility: hidden !important;
  }
  body.category-page #mobile-sort-sheet.open {
    transform: translateY(0) !important;
    visibility: visible !important;
  }
  body.category-page #mobile-sort-sheet .mobile-sheet-handle,
  body.category-page #mobile-sort-sheet .mobile-sheet-header,
  body.category-page #mobile-sort-apply { display: none !important; }
  body.category-page #mobile-sort-sheet .mobile-sort-options { padding: 0; }
  .myn-sort-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 13px 18px;
    font-size: 15px;
    color: #282c3f;
  }
  .myn-sort-opt.on { font-weight: 700; }
.myn-sort-opt i {
  width: 18px;
  text-align: center;
  color: #7e818c;
  font-style: normal;
}
}

.myn-more {
  border: 0;
  background: none;
  color: #6e1597;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0 4px;
  cursor: pointer;
}
.myn-slider { position: relative; height: 28px; margin: 8px 6px 0; }
.myn-slider input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  appearance: none;
  background: transparent;
  height: 28px;
}
.myn-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: #6e1597;
  border-radius: 2px;
}
.myn-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #6e1597;
  cursor: pointer;
}
.myn-price-lab {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #282c3f;
  margin-top: 2px;
}

@media (min-width: 821px) {
  body.category-page .category-sidebar-rail { display: none !important; }
  body.category-page .category-page-shell { display: block !important; width: min(100%, 1480px); }
  body.category-page .main-container {
    display: flex !important;
    align-items: flex-start;
    gap: 28px;
    padding: 12px 28px 48px !important;
  }
  body.category-page .main-container > .sidebar {
    display: block !important;
    position: sticky !important;
    top: 90px;
    height: auto !important;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }
  body.category-page .content { flex: 1; min-width: 0; }
}

body.category-page,
body.category-page #products .product,
body.category-page #products .product *:not(i):not(.fa):not(.fas):not(.far) {
  font-family: Assistant, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
body.category-page #products .discount-label { color: #ff905a !important; }
body.category-page #products .add-to-cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 34px !important;
  margin-top: 8px !important;
  padding: 0 !important;
  background: #fff !important;
  color: #6e1597 !important;
  border: 1px solid #6e1597 !important;
  border-radius: 2px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .4px !important;
  text-transform: uppercase;
  cursor: pointer;
  position: static !important;
}
body.category-page #products .add-to-cart:active {
  background: #6e1597 !important;
  color: #fff !important;
}
body.category-page #products .compare-toggle { display: none !important; }
body.category-page #products .action-row {
  position: absolute !important;
  top: 8px;
  right: 8px;
  width: auto !important;
  margin: 0 !important;
  background: transparent !important;
}
