.post-type-archive-product .omega-commerce-main {
  align-items: start;
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(245px, 285px) minmax(0, 1fr);
}

.post-type-archive-product .woocommerce-products-header,
.post-type-archive-product .omega-shop-hero,
.post-type-archive-product .omega-department-nav,
.post-type-archive-product .omega-shop-categories,
.post-type-archive-product .omega-shop-assurance,
.post-type-archive-product .omega-shop-catalog-heading {
  grid-column: 1 / -1;
}

.omega-shop-tools {
  align-self: start;
  background: #fff;
  border: 1px solid var(--omega-border);
  border-radius: var(--omega-radius);
  box-shadow: 0 14px 34px rgba(7, 0, 0, 0.08);
  grid-column: 1;
  grid-row: span 4;
  padding: 1.25rem;
  position: sticky;
  top: 150px;
}

.omega-shop-tools__header {
  align-items: center;
  border-bottom: 1px solid var(--omega-border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
}

.omega-shop-tools__header .omega-eyebrow {
  margin-bottom: 0.25rem;
}

.omega-shop-tools__header h2 {
  font-size: 1.35rem;
  margin: 0;
}

.omega-shop-tools__toggle {
  background: var(--omega-black);
  border: 0;
  border-radius: var(--omega-radius-sm);
  color: #fff;
  display: none;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0.65rem 0.8rem;
}

.omega-shop-tools__active {
  align-items: center;
  background: #fff0f0;
  border-radius: var(--omega-radius-sm);
  display: flex;
  font-size: 0.78rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.7rem 0.8rem;
}

.omega-shop-tools__active a,
.omega-shop-filter-form__reset {
  color: var(--omega-red-dark);
  font-weight: 800;
}

.omega-shop-filter-form {
  display: grid;
  gap: 1rem;
}

.omega-shop-field,
.omega-shop-price,
.omega-shop-checks {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.omega-shop-field > span,
.omega-shop-price legend {
  color: var(--omega-black);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.omega-shop-field input,
.omega-shop-field select,
.omega-shop-price input {
  background: #fff;
  border: 1px solid var(--omega-border);
  border-radius: var(--omega-radius-sm);
  color: var(--omega-text);
  font: inherit;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.omega-shop-field input:focus,
.omega-shop-field select:focus,
.omega-shop-price input:focus {
  border-color: var(--omega-red);
  box-shadow: 0 0 0 3px rgba(218, 12, 12, 0.12);
  outline: 0;
}

.omega-shop-price {
  border: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}

.omega-shop-price legend {
  grid-column: 1 / -1;
  padding: 0;
}

.omega-shop-price label {
  display: grid;
  gap: 0.3rem;
}

.omega-shop-price label span {
  color: var(--omega-muted);
  font-size: 0.72rem;
}

.omega-shop-checks {
  background: var(--omega-canvas);
  border-radius: var(--omega-radius-sm);
  padding: 0.8rem;
}

.omega-shop-checks label {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 0.55rem;
}

.omega-shop-checks input {
  accent-color: var(--omega-red);
  height: 18px;
  width: 18px;
}

.omega-shop-filter-form__submit {
  border: 0;
  cursor: pointer;
  justify-content: center;
  width: 100%;
}

.omega-shop-filter-form__reset {
  font-size: 0.82rem;
  text-align: center;
}

.post-type-archive-product .woocommerce-result-count,
.post-type-archive-product .woocommerce-info,
.post-type-archive-product ul.products,
.post-type-archive-product nav.woocommerce-pagination {
  grid-column: 2;
}

.post-type-archive-product .woocommerce-result-count {
  align-self: center;
  background: var(--omega-canvas);
  border-radius: 999px;
  color: var(--omega-muted);
  font-size: 0.82rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.85rem;
  width: fit-content;
}

.post-type-archive-product nav.woocommerce-pagination {
  margin-top: 2rem;
}

#omega-shop-tools {
  scroll-margin-top: 150px;
}

@media (max-width: 980px) {
  .post-type-archive-product .omega-commerce-main {
    display: block;
  }

  .omega-shop-tools {
    margin-bottom: 1.5rem;
    position: static;
  }

  .omega-shop-tools__toggle {
    display: inline-flex;
  }

  .omega-shop-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .omega-shop-field--search,
  .omega-shop-checks,
  .omega-shop-filter-form__submit,
  .omega-shop-filter-form__reset {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .omega-shop-tools {
    border-radius: 0;
    margin-inline: calc(var(--omega-gutter) * -1);
    padding-inline: var(--omega-gutter);
  }

  .omega-shop-filter-form {
    grid-template-columns: 1fr;
  }

  .omega-shop-filter-form > * {
    grid-column: 1;
  }
}
