.nmw-design-filter {
  --nmw-df-navy: #0b1f33;
  --nmw-df-blue: #0977d1;
  --nmw-df-blue-dark: #075ca2;
  --nmw-df-orange: #fc7010;
  --nmw-df-text: #172536;
  --nmw-df-muted: #627283;
  --nmw-df-border: #d8e2ec;
  --nmw-df-soft: #f4f8fb;
  width: 100%;
  color: var(--nmw-df-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.nmw-design-filter *,
.nmw-design-filter *::before,
.nmw-design-filter *::after {
  box-sizing: border-box;
}

.nmw-design-filter__header {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.nmw-design-filter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--nmw-df-blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nmw-design-filter__eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--nmw-df-orange);
  content: "";
}

.nmw-design-filter__header h2 {
  margin: 0;
  color: var(--nmw-df-navy);
  font-size: clamp(32px, 4.5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.nmw-design-filter__header p {
  margin: 14px auto 0;
  color: var(--nmw-df-muted);
  font-size: 17px;
}

.nmw-design-filter__toolbar {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--nmw-df-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(11, 31, 51, 0.07);
}

.nmw-design-filter__search {
  max-width: 680px;
  margin: 0 auto 22px;
}

.nmw-design-filter__search label {
  display: block;
  margin-bottom: 8px;
  color: var(--nmw-df-navy);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.nmw-design-filter__search-control {
  position: relative;
}

.nmw-design-filter__search-control svg {
  position: absolute;
  top: 50%;
  right: 17px;
  left: auto;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--nmw-df-muted);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.nmw-design-filter__search-control input {
  display: block;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 51px 0 18px;
  border: 1px solid #bdcbd9;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--nmw-df-text);
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.nmw-design-filter__search-control input:focus {
  border-color: var(--nmw-df-blue);
  box-shadow: 0 0 0 3px rgba(9, 119, 209, 0.14);
}

.nmw-design-filter__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.nmw-design-filter__categories button,
.nmw-design-filter__summary button,
.nmw-design-filter__pagination button {
  margin: 0;
  box-shadow: none;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.nmw-design-filter__categories button {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--nmw-df-border);
  border-radius: 999px;
  background: var(--nmw-df-soft);
  color: #385069;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nmw-design-filter__categories button:hover,
.nmw-design-filter__categories button:focus-visible,
.nmw-design-filter__categories button.is-active {
  border-color: var(--nmw-df-blue);
  background: var(--nmw-df-blue);
  color: #fff;
}

.nmw-design-filter__categories button:hover {
  transform: translateY(-1px);
}

.nmw-design-filter__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 16px;
}

.nmw-design-filter__summary p {
  margin: 0;
  color: var(--nmw-df-muted);
  font-size: 14px;
  font-weight: 650;
}

.nmw-design-filter__summary button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--nmw-df-blue-dark);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nmw-design-filter__results-wrap {
  position: relative;
  min-height: 240px;
}

.nmw-design-filter__results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  transition: opacity 160ms ease;
}

.nmw-design-filter--cols-2 .nmw-design-filter__results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nmw-design-filter--cols-3 .nmw-design-filter__results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nmw-design-filter.is-loading .nmw-design-filter__results {
  opacity: 0.38;
}

.nmw-design-filter__loading {
  position: absolute;
  z-index: 3;
  top: 80px;
  left: 50%;
  display: flex;
  gap: 6px;
  padding: 13px 17px;
  border: 1px solid var(--nmw-df-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(11, 31, 51, 0.12);
  transform: translateX(-50%);
}

.nmw-design-filter__loading[hidden] {
  display: none;
}

.nmw-design-filter__loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nmw-df-blue);
  animation: nmw-design-filter-pulse 800ms infinite alternate;
}

.nmw-design-filter__loading span:nth-child(2) { animation-delay: 120ms; }
.nmw-design-filter__loading span:nth-child(3) { animation-delay: 240ms; }
.nmw-design-filter__loading span:nth-child(4) { animation-delay: 360ms; }

@keyframes nmw-design-filter-pulse {
  to { opacity: 0.25; transform: translateY(-4px); }
}

.nmw-design-filter__card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--nmw-df-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(11, 31, 51, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nmw-design-filter__card:hover {
  border-color: #b8cde0;
  box-shadow: 0 18px 42px rgba(11, 31, 51, 0.11);
  transform: translateY(-4px);
}

.nmw-design-filter__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eaf1f7;
}

.nmw-design-filter__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 420ms ease;
}

.nmw-design-filter__card:hover .nmw-design-filter__image {
  transform: scale(1.045);
}

.nmw-design-filter__card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 19px;
}

.nmw-design-filter__meta {
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--nmw-df-blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nmw-design-filter__card h3 {
  margin: 0;
  color: var(--nmw-df-navy);
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.nmw-design-filter__card h3 a {
  color: inherit;
  text-decoration: none;
}

.nmw-design-filter__card h3 a:hover {
  color: var(--nmw-df-blue-dark);
}

.nmw-design-filter__card-body > p {
  display: -webkit-box;
  margin: 11px 0 15px;
  overflow: hidden;
  color: var(--nmw-df-muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.nmw-design-filter__price {
  margin: auto 0 12px;
  color: var(--nmw-df-orange);
  font-size: 16px;
  font-weight: 800;
}

.nmw-design-filter__view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: auto;
  color: var(--nmw-df-blue-dark);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.nmw-design-filter__view span {
  color: var(--nmw-df-orange);
  font-size: 18px;
  transition: transform 160ms ease;
}

.nmw-design-filter__view:hover span {
  transform: translateX(3px);
}

.nmw-design-filter__empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 34px;
  border: 1px dashed #b8c8d8;
  border-radius: 16px;
  background: var(--nmw-df-soft);
  color: var(--nmw-df-muted);
  text-align: center;
}

.nmw-design-filter__empty strong {
  color: var(--nmw-df-navy);
  font-size: 19px;
}

.nmw-design-filter__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 32px;
}

.nmw-design-filter__pagination[hidden] {
  display: none;
}

.nmw-design-filter__pagination button {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--nmw-df-border);
  border-radius: 8px;
  background: #fff;
  color: var(--nmw-df-navy);
  font-size: 14px;
  font-weight: 750;
}

.nmw-design-filter__pagination button:hover,
.nmw-design-filter__pagination button:focus-visible,
.nmw-design-filter__pagination button.is-current {
  border-color: var(--nmw-df-blue);
  background: var(--nmw-df-blue);
  color: #fff;
}

.nmw-design-filter__pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nmw-design-filter button:focus-visible,
.nmw-design-filter a:focus-visible {
  outline: 3px solid rgba(252, 112, 16, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1099px) {
  .nmw-design-filter__results,
  .nmw-design-filter--cols-4 .nmw-design-filter__results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 849px) {
  .nmw-design-filter__results,
  .nmw-design-filter--cols-3 .nmw-design-filter__results,
  .nmw-design-filter--cols-4 .nmw-design-filter__results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 549px) {
  .nmw-design-filter__header {
    margin-bottom: 22px;
  }

  .nmw-design-filter__header h2 {
    font-size: 34px;
  }

  .nmw-design-filter__header p {
    font-size: 15px;
  }

  .nmw-design-filter__toolbar {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .nmw-design-filter__search label {
    text-align: left;
  }

  .nmw-design-filter__categories {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 0 -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nmw-design-filter__categories button {
    flex: 0 0 auto;
  }

  .nmw-design-filter__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 20px;
  }

  .nmw-design-filter__results,
  .nmw-design-filter--cols-2 .nmw-design-filter__results,
  .nmw-design-filter--cols-3 .nmw-design-filter__results,
  .nmw-design-filter--cols-4 .nmw-design-filter__results {
    grid-template-columns: minmax(0, 1fr);
  }

  .nmw-design-filter__card-body {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nmw-design-filter *,
  .nmw-design-filter *::before,
  .nmw-design-filter *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
