.qo-page {
  --qo-ink: #102433;
  --qo-muted: #475c6b;
  --qo-line: #d4dee5;
  --qo-green: #176633;
  padding-block: .5rem 3rem;
  color: var(--qo-ink);
  background: #f5f7f9;
}

.qo-wrap {
  width: min(82rem, calc(100% - clamp(2rem, 7vw, 5rem)));
  margin-inline: auto;
}

.qo-page :focus-visible {
  outline: 2px solid var(--qo-green);
  outline-offset: 3px;
}

.qo-crumbs,
.qo-categories,
.qo-results,
.qo-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.qo-crumbs {
  gap: .1rem .65rem;
  color: var(--qo-muted);
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.qo-crumbs a,
.qo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--qo-green);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.qo-heading {
  padding-block: .5rem 1.25rem;
}

.qo-heading h1,
.qo-product h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  line-height: 1.1;
}

.qo-heading p,
.qo-product-content > p {
  margin: .55rem 0 0;
}

.qo-preview {
  color: var(--qo-muted);
  font-size: .9rem;
}

.qo-categories {
  gap: .2rem clamp(.3rem, 1.5vw, 1.25rem);
  border-bottom: 1px solid var(--qo-line);
}

.qo-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem clamp(.35rem, 1.6vw, 1rem);
  border-bottom: 3px solid transparent;
  color: var(--qo-ink);
  font-weight: 700;
  text-decoration: none;
}

.qo-categories a:hover,
.qo-categories a[aria-current="page"] {
  border-bottom-color: var(--qo-green);
  color: var(--qo-green);
}

.qo-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .9fr) auto;
  align-items: end;
  gap: .8rem;
  padding: 1rem;
  margin-block: 1rem .4rem;
  border: 1px solid var(--qo-line);
  border-radius: .65rem;
  background: #fff;
}

@media (min-width: 55rem) {
  .qo-filters-vehicle-part {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
  }
}

.qo-filters label {
  display: block;
  margin-bottom: .3rem;
  font-size: .9rem;
  font-weight: 700;
}

.qo-filters select,
.qo-filters input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: .5rem .65rem;
  border: 1px solid #788a97;
  border-radius: .4rem;
  color: var(--qo-ink);
  background: #fff;
  font-size: max(1rem, 16px);
}

.qo-filters select {
  appearance: auto;
}

.qo-filters input::placeholder {
  color: #596f7f;
}

.qo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .5rem .95rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.qo-button-primary {
  background: var(--qo-green);
  color: #fff;
}

.qo-button-primary:hover {
  background: #10502a;
  color: #fff;
}

.qo-button-outline {
  border-color: var(--qo-green);
  background: #fff;
  color: var(--qo-green);
}

.qo-button-outline:hover {
  background: #eff8f2;
}

.qo-results {
  min-height: 44px;
  justify-content: space-between;
  gap: .25rem .75rem;
  font-size: .95rem;
}

.qo-results p {
  margin: 0;
  font-weight: 700;
}

.qo-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.qo-cards > li {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qo-cards + .qo-cards {
  margin-top: 1rem;
}

.qo-fitment {
  margin-block: 1.25rem;
}

.qo-fitment h2 {
  font-size: 1.1rem;
  margin-block: 0 .5rem;
}

.qo-fitment details {
  margin-block: .75rem;
}

.qo-fitment summary {
  cursor: pointer;
  color: var(--qo-green);
  font-weight: 650;
}

.qo-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 1px solid var(--qo-line);
  border-radius: .65rem;
  background: #fff;
  color: var(--qo-ink);
  overflow: hidden;
  text-decoration: none;
}

.qo-listing-checkout {
  border: 1px solid var(--qo-line);
  border-radius: .65rem;
  background: #fff;
}

.qo-listing-checkout .qo-card {
  border: 0;
  border-radius: .6rem .6rem 0 0;
}

.qo-card-buy {
  padding: 0 clamp(.8rem, 2vw, 1.15rem) .85rem;
}

.qo-card-buy button {
  width: 100%;
}

.qo-card:hover {
  border-color: var(--qo-green);
  color: var(--qo-ink);
}

.qo-card-image,
.qo-product-media img {
  display: block;
  width: 100%;
  height: auto;
  background: #edf0f2;
}

.qo-card-image {
  border-bottom: 1px solid var(--qo-line);
}

.qo-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(.8rem, 2vw, 1.15rem);
  overflow-wrap: anywhere;
}

.qo-card h2,
.qo-help h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.qo-card-vehicle {
  margin: .3rem 0 0;
  color: var(--qo-muted);
  font-weight: 600;
}

.qo-card-numbers {
  display: grid;
  gap: .45rem;
  margin: .85rem 0;
  font-size: .9rem;
}

.qo-card-numbers dt,
.qo-product-specs dt {
  color: var(--qo-muted);
  font-size: .875rem;
}

.qo-page dd {
  margin: 0;
  font-weight: 650;
}

.qo-card-price {
  display: grid;
  gap: .05rem;
  margin: auto 0 .7rem;
}

.qo-card-price strong {
  font-size: 1.45rem;
  line-height: 1.15;
}

.qo-card-price span {
  color: var(--qo-muted);
  font-size: .875rem;
}

.qo-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  padding-top: .65rem;
  border-top: 1px solid var(--qo-line);
  color: var(--qo-green);
  font-weight: 700;
}

.qo-card-action::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}

.qo-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--qo-line);
  border-radius: .65rem;
  background: #fff;
}

.qo-help p {
  margin: .35rem 0 0;
  color: var(--qo-muted);
}

.qo-product {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 4vw, 3.25rem);
  padding: clamp(1rem, 4vw, 2.5rem);
  margin-top: .6rem;
  border: 1px solid var(--qo-line);
  border-radius: .75rem;
  background: #fff;
}

.qo-product-media {
  margin: 0;
  border: 1px solid var(--qo-line);
  border-radius: .5rem;
  overflow: hidden;
}

.qo-product-media figcaption {
  padding: .45rem .7rem;
  border-top: 1px solid var(--qo-line);
  color: var(--qo-muted);
  font-size: .875rem;
}

.qo-product-content {
  overflow-wrap: anywhere;
}

.qo-product-content .qo-preview {
  margin: 0 0 .5rem;
}

.qo-product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1rem;
  margin-block: 1rem;
}

.qo-product-prices {
  padding: .65rem .9rem;
  margin: 0;
  border-radius: .4rem;
  background: #f5f7f9;
}

.qo-product-prices > div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .25rem;
}

.qo-product-prices .qo-total {
  margin-top: .4rem;
  padding-top: .45rem;
  border-top: 1px solid var(--qo-line);
  font-size: 1.2rem;
  font-weight: 700;
}

.qo-shipping-note {
  color: var(--qo-muted);
  font-size: .9rem;
}

.qo-product-actions {
  gap: .4rem 1rem;
  margin-top: .85rem;
}

@media (max-width: 60rem) {
  .qo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .qo-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qo-product {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 34rem) {
  .qo-filters {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .qo-filters > :nth-child(-n+2) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 375px) {
  .qo-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .qo-card {
    display: grid;
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  }

  .qo-card-image {
    align-self: start;
    width: calc(100% - .65rem);
    margin: .8rem 0 0 .65rem;
    border: 0;
    border-radius: .35rem;
  }
}
