/* Masdar listing filters — modern, brand-forward */
.noon-filters {
  --ml-red: #e32b09;
  --ml-ink: #141414;
  --ml-muted: #6b6b6b;
  --ml-line: rgba(20, 20, 20, 0.08);
  --ml-soft: #f7f5f3;
  font-family: "Public Sans", system-ui, sans-serif;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(227, 43, 9, 0.06), transparent 60%),
    #fff;
  border: 1px solid var(--ml-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.04);
}

.noon-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ml-line);
  background: linear-gradient(180deg, #fff, var(--ml-soft));
}

.noon-filters__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ml-ink);
}

.noon-filters__clear {
  border: 0;
  background: transparent;
  color: var(--ml-red);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.noon-filters__clear:hover {
  text-decoration: underline;
}

.noon-filter-section {
  border-bottom: 1px solid var(--ml-line);
  background: transparent;
}

.noon-filter-section:last-child {
  border-bottom: 0;
}

.noon-filter-section__toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 18px !important;
  margin: 0;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ml-ink) !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
}

.noon-filter-section__toggle::after {
  font-size: 10px;
  opacity: 0.45;
}

.noon-filter-section__body {
  padding: 0 14px 16px;
}

.noon-filter-section .aiz-checkbox-list,
.noon-filter-section #category_filter,
.noon-filter-section #category_filter_preorder {
  max-height: 280px;
  overflow: auto;
}

/* Modern category tree */
.ml-cat-tree {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 300px;
  padding-right: 2px;
}

.ml-cat-node__row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ml-cat-node__row:hover {
  background: rgba(227, 43, 9, 0.05);
}

.ml-cat-node.is-active > .ml-cat-node__row {
  background: rgba(227, 43, 9, 0.08);
}

.ml-cat-node__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ml-cat-node__check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid #cfcfcf;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}

.ml-cat-node__input:checked + .ml-cat-node__check {
  background: var(--ml-red);
  border-color: var(--ml-red);
  box-shadow: 0 4px 10px rgba(227, 43, 9, 0.25);
}

.ml-cat-node__input:checked + .ml-cat-node__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.ml-cat-node__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.ml-cat-node__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ml-ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ml-cat-node--level-0 > .ml-cat-node__row .ml-cat-node__name {
  font-size: 14px;
  font-weight: 700;
}

.ml-cat-node__count {
  flex-shrink: 0;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ml-soft);
  color: var(--ml-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.ml-cat-node.is-active .ml-cat-node__count {
  background: rgba(227, 43, 9, 0.12);
  color: var(--ml-red);
}

.ml-cat-node__children {
  margin-left: 14px;
  padding-left: 10px;
  border-left: 2px solid rgba(227, 43, 9, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ml-cat-node--level-1 > .ml-cat-node__row,
.ml-cat-node--level-2 > .ml-cat-node__row,
.ml-cat-node--level-3 > .ml-cat-node__row {
  padding-left: 8px;
}

.noon-filters .aiz-checkbox {
  margin-bottom: 8px !important;
  align-items: center;
}

.noon-filters .aiz-square-check {
  width: 16px !important;
  height: 16px !important;
  border-radius: 5px !important;
  border: 1.5px solid #cfcfcf !important;
  margin-top: 0;
  flex-shrink: 0;
}

.noon-filters .aiz-checkbox input:checked ~ .aiz-square-check,
.noon-filters .aiz-checkbox input:checked + .aiz-square-check {
  background: var(--ml-red) !important;
  border-color: var(--ml-red) !important;
}

.noon-filters .hover-effect-list-item,
.noon-filters .fs-14 {
  font-size: 13px !important;
  color: #3a3a3a !important;
  line-height: 1.35;
}

.noon-price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.noon-price-inputs input {
  width: 100%;
  height: 38px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ml-ink);
  background: #fff;
}

.noon-price-inputs input:focus {
  outline: none;
  border-color: var(--ml-red);
  box-shadow: 0 0 0 3px rgba(227, 43, 9, 0.12);
}

.noon-price-inputs__sep {
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 600;
}

.noon-filters .aiz-range-slider {
  padding: 6px 4px 0;
}

.noon-filters .noUi-connect {
  background: var(--ml-red) !important;
}

.noon-filters .noUi-handle {
  border-color: var(--ml-red) !important;
  box-shadow: 0 2px 8px rgba(227, 43, 9, 0.25);
}

.noon-brand-search {
  width: 100%;
  height: 38px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 12px;
  margin-bottom: 10px;
  background: var(--ml-soft);
}

.noon-brand-search:focus {
  outline: none;
  border-color: var(--ml-red);
  background: #fff;
}

.noon-rating-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #404040;
  transition: background 0.15s ease;
}

.noon-rating-option:hover {
  background: rgba(227, 43, 9, 0.05);
}

.noon-rating-option input {
  accent-color: var(--ml-red);
}

.noon-rating-stars {
  color: #f5a623;
  letter-spacing: 1px;
  font-size: 12px;
}

.noon-express-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ml-line);
  background: linear-gradient(90deg, #fff8db, #fff);
}

.noon-express-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ml-ink);
}

.noon-express-badge__mark {
  display: inline-block;
  background: #ffe566;
  color: #1c1c1c;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.noon-express-row .aiz-square-check {
  margin: 0 !important;
}

.aiz-filter-sidebar .collapse-sidebar {
  background: transparent;
}

/* Listing page polish */
.ml-listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.06);
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.03);
}

.breadcrumb {
  font-size: 12px !important;
  letter-spacing: 0.02em;
}

#products-row .masdar-product-card {
  border-radius: 18px !important;
  border: 1px solid rgba(20, 20, 20, 0.06) !important;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.04);
}

#products-row .masdar-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.08);
}

#products-row .masdar-product-media {
  border-radius: 0 !important;
  background: #f6f6f6;
}

@media (min-width: 1200px) {
  .aiz-filter-sidebar.collapse-sidebar-wrap {
    position: sticky;
    top: 12px;
  }
}

@media (max-width: 1199.98px) {
  .noon-filters {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
}
