:root {
  --toublab-black: #0a0a0a;
  --toublab-cream: #f1eee4;
  --toublab-white: #fffef8;
  --toublab-acid: #b8ff00;
  --toublab-muted: #77776f;
  --toublab-line: rgba(10, 10, 10, 0.16);
}

.toublab-filter,
.toublab-blog-grid {
  color: var(--toublab-black);
  font-family: Arial, Helvetica, sans-serif;
}

.toublab-filter * {
  box-sizing: border-box;
}

.toublab-filter {
  width: 100%;
}

.toublab-filter__intro {
  align-items: end;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin: 0 0 30px;
}

.toublab-eyebrow {
  color: #5f7e00;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.toublab-filter__intro h2 {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}

.toublab-filter__intro p {
  color: var(--toublab-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 600px;
}

.toublab-filter__panel {
  border-bottom: 1px solid var(--toublab-line);
  border-top: 1px solid var(--toublab-line);
  padding: 22px 0;
}

.toublab-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toublab-filter__chip,
.toublab-filter__mobile-toggle,
.toublab-filter__reset {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.toublab-filter__more {
  background: var(--toublab-black);
  border: 1px solid var(--toublab-black);
  border-radius: 0;
  color: var(--toublab-acid);
  cursor: pointer;
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  margin: 54px auto 0;
  min-height: 48px;
  padding: 15px 22px;
  text-transform: uppercase;
}

.toublab-filter__more:hover {
  background: var(--toublab-acid);
  color: var(--toublab-black);
}

.toublab-filter__more[hidden] {
  display: none;
}

.toublab-filter__chip {
  align-items: center;
  background: transparent;
  border: 1px solid var(--toublab-black);
  border-radius: 999px;
  color: var(--toublab-black);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 9px;
  letter-spacing: 0.035em;
  min-height: 38px;
  padding: 8px 13px;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.toublab-filter__chip:hover {
  transform: translateY(-2px);
}

.toublab-filter__chip small {
  align-items: center;
  background: rgba(10, 10, 10, 0.1);
  border-radius: 50%;
  display: inline-flex;
  font-size: 9px;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 5px;
}

.toublab-filter__chip.is-active {
  background: var(--toublab-black);
  color: var(--toublab-acid);
}

.toublab-filter__chip.is-active small {
  background: var(--toublab-acid);
  color: var(--toublab-black);
}

.toublab-filter__tools {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto;
  margin-top: 18px;
}

.toublab-filter__search input,
.toublab-filter__sort select {
  appearance: none;
  background: var(--toublab-white);
  border: 1px solid var(--toublab-line);
  border-radius: 0;
  color: var(--toublab-black);
  font: inherit;
  font-size: 13px;
  height: 46px;
  outline: 0;
  padding: 0 15px;
  width: 100%;
}

.toublab-filter__search input:focus,
.toublab-filter__sort select:focus {
  border-color: var(--toublab-black);
  box-shadow: inset 0 -2px 0 var(--toublab-acid);
}

.toublab-filter__sort {
  position: relative;
}

.toublab-filter__sort::after {
  content: "↓";
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 13px;
}

.toublab-filter__reset {
  background: transparent;
  color: var(--toublab-black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 14px 5px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.toublab-filter__result-bar {
  align-items: center;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  letter-spacing: 0.08em;
  min-height: 64px;
  text-transform: uppercase;
}

.toublab-filter__result-bar p {
  margin: 0;
}

.toublab-filter__state {
  color: var(--toublab-muted);
}

.toublab-filter__grid {
  display: grid;
  gap: 38px 16px;
  grid-template-columns: repeat(var(--toublab-columns, 4), minmax(0, 1fr));
  min-height: 240px;
  opacity: 1;
  transition: opacity 180ms ease;
}

.toublab-filter.is-loading .toublab-filter__grid {
  opacity: 0.35;
  pointer-events: none;
}

.toublab-product-card {
  min-width: 0;
}

.toublab-product-card__visual {
  background: #e9e5da;
  display: block;
  overflow: hidden;
  position: relative;
}

.toublab-product-card__visual::after {
  border: 1px solid rgba(255, 255, 255, 0.55);
  bottom: 9px;
  content: "";
  left: 9px;
  pointer-events: none;
  position: absolute;
  right: 9px;
  top: 9px;
}

.toublab-product-card__visual img {
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 100%;
}

.toublab-product-card:hover .toublab-product-card__visual img {
  transform: scale(1.035);
}

.toublab-product-card__placeholder {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #dfdbcf, #faf8f0);
  display: flex;
  justify-content: center;
}

.toublab-product-card__placeholder span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.06em;
  transform: rotate(-8deg);
}

.toublab-product-card__badge {
  background: var(--toublab-acid);
  color: var(--toublab-black);
  font-size: 10px;
  font-weight: 900;
  left: 14px;
  letter-spacing: 0.1em;
  padding: 8px 10px;
  position: absolute;
  top: 14px;
  z-index: 2;
}

.toublab-product-card__body {
  padding-top: 14px;
}

.toublab-product-card__terms {
  color: #657e12;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 7px;
  min-height: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.toublab-product-card h3 {
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.toublab-product-card h3 a,
.toublab-blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.toublab-product-card__bottom {
  align-items: center;
  border-top: 1px solid var(--toublab-line);
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 11px;
}

.toublab-product-card__price {
  font-size: 13px;
  font-weight: 800;
}

.toublab-product-card__link {
  align-items: center;
  background: var(--toublab-black);
  color: var(--toublab-acid) !important;
  display: inline-flex;
  font-size: 16px;
  height: 34px;
  justify-content: center;
  text-decoration: none;
  width: 34px;
}

.toublab-no-results {
  background: var(--toublab-black);
  color: var(--toublab-white);
  grid-column: 1 / -1;
  padding: clamp(38px, 7vw, 90px);
  text-align: center;
}

.toublab-no-results strong {
  color: var(--toublab-acid);
  font-size: clamp(24px, 4vw, 48px);
}

.toublab-no-results p {
  color: rgba(255, 255, 255, 0.7);
}

.toublab-filter__mobile-toggle {
  background: var(--toublab-black);
  color: var(--toublab-white);
  display: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 14px 16px;
  text-transform: uppercase;
}

.toublab-filter__active-count {
  align-items: center;
  background: var(--toublab-acid);
  border-radius: 50%;
  color: var(--toublab-black);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  margin-left: 6px;
  min-width: 22px;
}

.toublab-blog-grid {
  display: grid;
  gap: 44px 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.toublab-blog-card__image {
  background: #e9e5da;
  display: block;
  margin-bottom: 16px;
  overflow: hidden;
}

.toublab-blog-card__image img {
  aspect-ratio: 16 / 11;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.toublab-blog-card:hover img {
  transform: scale(1.025);
}

.toublab-blog-card > p {
  color: #657e12;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.toublab-blog-card h3 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 14px;
}

.toublab-blog-card > div {
  color: var(--toublab-muted);
  font-size: 14px;
  line-height: 1.6;
}

.toublab-blog-card__link {
  color: var(--toublab-black) !important;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 18px;
  text-underline-offset: 5px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
}

@media (max-width: 1024px) {
  .toublab-filter__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toublab-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .toublab-filter__intro {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .toublab-filter__mobile-toggle {
    display: inline-flex;
  }

  .toublab-filter__panel {
    display: none;
    padding-bottom: 18px;
  }

  .toublab-filter.is-panel-open .toublab-filter__panel {
    display: block;
  }

  .toublab-filter__chips {
    flex-wrap: nowrap;
    margin-left: -16px;
    margin-right: -16px;
    overflow-x: auto;
    padding: 0 16px 10px;
    scrollbar-width: none;
  }

  .toublab-filter__chips::-webkit-scrollbar {
    display: none;
  }

  .toublab-filter__chip {
    flex: 0 0 auto;
  }

  .toublab-filter__tools {
    grid-template-columns: 1fr;
  }

  .toublab-filter__reset {
    justify-self: start;
  }

  .toublab-filter__result-bar {
    min-height: 56px;
  }

  .toublab-filter__state {
    display: none;
  }

  .toublab-filter__grid {
    gap: 30px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toublab-product-card__visual::after {
    inset: 6px;
  }

  .toublab-product-card__terms {
    font-size: 8px;
  }

  .toublab-blog-grid {
    grid-template-columns: 1fr;
  }
}
