.post-type-archive-product .sgc-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 .sgc-shop-hero,
.post-type-archive-product .sgc-search-results-hero,
.post-type-archive-product .sgc-department-nav,
.post-type-archive-product .sgc-shop-categories,
.post-type-archive-product .sgc-shop-assurance,
.post-type-archive-product .sgc-shop-catalog-heading {
  grid-column: 1 / -1;
}

.sgc-search-results-hero {
  background: #10191f;
  border-radius: var(--sgc-radius);
  color: #fff;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  position: relative;
}

.sgc-search-results-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  content: "CMYK";
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0.12;
  padding: 0.25em;
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
}

.sgc-search-results-hero > * {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.sgc-search-results-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
}

.sgc-search-results-hero > p:not(.sgc-eyebrow) {
  color: #dce6eb;
  margin-bottom: 0;
}

.sgc-search-results-hero__interpretation {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--sgc-red);
  margin-top: 0.9rem;
  padding: 0.6rem 0.75rem;
}

.sgc-shop-tools {
  align-self: start;
  background: #fff;
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-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;
}

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

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

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

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

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

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

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

.sgc-shop-filter-form[hidden] {
  display: none !important;
}

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

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

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

.sgc-shop-field input:focus,
.sgc-shop-field select:focus,
.sgc-shop-price input:focus {
  border-color: var(--sgc-red);
  box-shadow: 0 0 0 3px rgba(0, 109, 153, 0.14);
  outline: 0;
}

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

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

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

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

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

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

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

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

.sgc-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(--sgc-canvas);
  border-radius: 999px;
  color: var(--sgc-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;
}

.sgc-search-empty {
  background: var(--sgc-canvas);
  border: 1px solid var(--sgc-border);
  border-radius: var(--sgc-radius);
  grid-column: 2;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.sgc-search-empty h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.sgc-search-empty > p {
  color: var(--sgc-muted);
  max-width: 680px;
}

.sgc-search-empty__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.sgc-search-empty__categories a {
  background: #fff;
  border: 1px solid var(--sgc-border);
  border-radius: 999px;
  color: var(--sgc-text);
  font-size: 0.8rem;
  font-weight: 750;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.sgc-search-empty__categories a:hover,
.sgc-search-empty__categories a:focus-visible {
  border-color: var(--sgc-red);
  color: var(--sgc-red-dark);
}

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

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

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

  .sgc-search-empty {
    margin-bottom: 1.5rem;
  }

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

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

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

@media (max-width: 620px) {
	.sgc-search-results-hero {
		border-radius: 0;
		margin-inline: calc(var(--sgc-gutter) * -1);
	}

	.sgc-search-results-hero::after {
		right: -8%;
	}

  .sgc-shop-tools {
    border-radius: 0;
    margin-inline: calc(var(--sgc-gutter) * -1);
    padding-inline: var(--sgc-gutter);
  }

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

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