.hp-catalog-view {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.hp-catalog-view__label {
  color: #525252;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hp-shop-menu--sort,
.hp-catalog-view__toggle {
  display: none;
}

.hp-catalog-view__options {
  border: 1px solid #d4d4d4;
  border-radius: 0;
  box-sizing: border-box;
  display: inline-flex;
  height: 2.75rem;
  overflow: hidden;
}

.hp-catalog-view__button {
  align-items: center;
  background: #fff;
  border: 0;
  color: #525252;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 0.4rem;
  height: 100%;
  padding: 0.5rem 0.75rem;
}

.hp-catalog-view__button + .hp-catalog-view__button {
  border-left: 1px solid #d4d4d4;
}

.hp-catalog-view__button svg {
  fill: none;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.5;
  width: 1rem;
}

.hp-catalog-view__button[aria-pressed="true"] {
  background: #171717;
  color: #fff;
}

.hp-catalog-view__button:focus-visible {
  box-shadow: inset 0 0 0 2px #fff;
  outline: 2px solid #171717;
  outline-offset: 1px;
}

.hp-catalog-meta {
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-bottom: 1rem;
}

.hp-catalog-meta .woocommerce-result-count {
  float: none;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.hp-catalog-meta .vs-result-vehicle {
  display: block;
  text-align: center;
}

.hp-catalog-meta .hp-shop-tools {
  display: contents;
}

.hp-catalog-meta .woocommerce-ordering {
  float: none;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin: 0;
}

.hp-catalog-meta .hp-catalog-view {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.hp-catalog-meta .hp-catalog-view__label {
  display: none;
}

.hp-catalog-meta .woocommerce-ordering select {
  background-color: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 0;
  height: 2.75rem;
  min-width: 11rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
}

.hp-catalog-meta + section {
  padding-top: 2rem;
}

.hp-pagination-jump {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  position: relative;
}

.hp-pagination-jump__input,
.hp-pagination-jump__button,
.hp-pagination-jump__toggle {
  border: 1px solid #d4d4d4;
  border-radius: 0;
  height: 2.75rem;
}

.hp-pagination-jump__toggle {
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.hp-pagination-jump__panel {
  align-items: stretch;
  background: #fff;
  border: 1px solid #d4d4d4;
  bottom: calc(100% + 0.5rem);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  display: flex;
  gap: 0.5rem;
  left: 50%;
  padding: 0.75rem;
  position: absolute;
  transform: translateX(-50%);
  z-index: 30;
}

.hp-pagination-jump__panel[hidden] {
  display: none;
}

.hp-pagination-jump__input {
  appearance: textfield;
  background: #fff;
  padding: 0.5rem 0.65rem;
  text-align: center;
  width: 5rem;
}

.hp-pagination-jump__input::-webkit-inner-spin-button,
.hp-pagination-jump__input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.hp-pagination-jump__button {
  background: #171717;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
}

.hp-shop-filter-drawer button,
.hp-shop-filter-drawer input,
.hp-shop-filter-drawer select,
.hp-shop-filter-drawer a[class*="rounded"],
.hp-shop-filters button,
.hp-shop-filters input,
.hp-shop-filters select,
.hp-shop-filters a[class*="rounded"] {
  border-radius: 0 !important;
}

.products.hp-catalog-products--list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.products.hp-catalog-products--list > .product {
  align-items: stretch;
  border: 1px solid #e5e5e5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
  max-width: none;
  padding: 1rem;
  width: 100%;
}

.products.hp-catalog-products--list > .product > .woocommerce-LoopProduct-link {
  display: grid;
  gap: 0 1.25rem;
  grid-column: 1 / -1;
  grid-template-columns: 150px minmax(0, 1fr);
  text-decoration: none;
}

.products.hp-catalog-products--list > .product > .woocommerce-LoopProduct-link > div:first-child {
  align-self: center;
  grid-column: 1;
  grid-row: 1 / 3;
}

.products.hp-catalog-products--list > .product > .woocommerce-LoopProduct-link img {
  border: 0;
  height: auto;
  margin: 0;
  object-fit: contain;
  width: 100%;
}

.products.hp-catalog-products--list > .product > .woocommerce-LoopProduct-link > .min-h-20 {
  align-self: end;
  grid-column: 2;
  min-height: 0;
  text-align: left;
}

.products.hp-catalog-products--list .woocommerce-loop-product__title {
  margin: 0 0 0.4rem;
  padding: 0;
}

.products.hp-catalog-products--list > .product > .woocommerce-LoopProduct-link > .font-bold {
  align-self: start;
  grid-column: 2;
  text-align: left;
}

.products.hp-catalog-products--list .price {
  text-align: left;
}

.products.hp-catalog-products--list .stock {
  margin-top: 0.35rem;
}

@media (max-width: 639px) {
  .woocommerce-pagination ul.page-numbers {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.375rem;
    justify-content: center;
  }

  .woocommerce-pagination ul.page-numbers > li {
    flex: 0 0 auto;
  }

  .woocommerce-pagination ul.page-numbers > li[hidden] {
    display: none !important;
  }

  .woocommerce-pagination ul.page-numbers > li > .page-numbers {
    align-items: center;
    display: flex;
    height: 2.5rem;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.4rem;
  }

  .woocommerce-pagination ul.page-numbers > li > .page-numbers.dots {
    border: 0;
    min-width: 1.25rem;
    padding-left: 0;
    padding-right: 0;
  }

  .hp-shop-header {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hp-catalog-meta {
    border-bottom: 0;
    display: block;
    padding-bottom: 0;
  }

  .hp-catalog-meta .woocommerce-result-count {
    text-align: center;
    width: 100%;
  }

  .hp-catalog-meta .hp-catalog-view {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .hp-catalog-meta + section {
    padding-top: 2rem;
  }

  .hp-shop-header > h1 {
    width: 100%;
  }

  .hp-shop-header > .flex {
    justify-content: flex-start;
    width: 100%;
  }

  .hp-catalog-meta .hp-shop-tools {
    align-items: stretch;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
    position: relative;
  }

  .hp-catalog-meta .hp-shop-tools--no-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-shop-tools .woocommerce-ordering {
    display: none;
  }

  .hp-shop-tools__filter,
  .hp-shop-menu__toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    color: #404040;
    display: flex;
    font-size: 0.875rem;
    font-weight: 600;
    height: 2.75rem;
    gap: 0.35rem;
    justify-content: center;
    margin: 0;
    padding: 0.5rem 0.65rem;
    position: relative;
    text-align: center;
    width: 100%;
  }

  .hp-shop-menu--sort {
    order: 1;
  }

  .hp-shop-tools__filter {
    order: 2;
  }

  .hp-catalog-view {
    order: 3;
  }

  .hp-shop-tools__filter svg,
  .hp-shop-menu__toggle svg {
    fill: none;
    flex: 0 0 auto;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    width: 1rem;
  }

  .hp-shop-tools__filter > svg,
  .hp-shop-menu__toggle > svg:not(.hp-shop-menu__chevron) {
    left: 0.65rem;
    position: absolute;
  }

  .hp-shop-tools__filter svg {
    fill: currentColor;
    stroke: none;
  }

  .hp-shop-menu,
  .hp-catalog-view {
    min-width: 0;
    position: relative;
  }

  .hp-shop-menu--sort,
  .hp-catalog-view__toggle {
    display: block;
  }

  .hp-shop-menu__toggle {
    display: flex;
  }

  .hp-shop-menu__chevron {
    margin-left: 0;
    position: absolute;
    right: 0.5rem;
  }

  .hp-shop-menu__panel,
  .hp-catalog-view__options {
    background: #fff;
    border: 1px solid #d4d4d4;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    height: auto;
    max-width: calc(100vw - 2rem);
    min-width: 12rem;
    overflow: visible;
    position: absolute;
    right: 0;
    top: calc(100% + 0.375rem);
    z-index: 30;
  }

  .hp-shop-menu--sort .hp-shop-menu__panel {
    left: 0;
    right: auto;
  }

  .hp-catalog-view__options {
    left: auto;
    right: 0;
  }

  .hp-shop-menu__panel[hidden],
  .hp-catalog-view__options[hidden] {
    display: none;
  }

  .hp-shop-menu__panel button {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    display: block;
    font-size: 0.875rem;
    padding: 0.75rem;
    text-align: left;
    width: 100%;
  }

  .hp-shop-menu__panel button:last-child {
    border-bottom: 0;
  }

  .hp-shop-menu__panel button:hover,
  .hp-shop-menu__panel button:focus-visible {
    background: #f5f5f5;
  }

  .hp-catalog-view {
    gap: 0;
    justify-content: flex-start;
    margin: 0;
  }

  .hp-catalog-view__label {
    display: none;
  }

  .hp-catalog-view__options {
    display: grid;
    min-width: 9.5rem;
  }

  .hp-catalog-view__button {
    height: 2.75rem;
    justify-content: flex-start;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100%;
  }

  .hp-catalog-view__button + .hp-catalog-view__button {
    border-left: 0;
    border-top: 1px solid #d4d4d4;
  }

  .products.hp-catalog-products--list > .product {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.75rem;
  }

  .products.hp-catalog-products--list > .product > .woocommerce-LoopProduct-link {
    gap: 0 0.9rem;
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .products.hp-catalog-products--list .woocommerce-loop-product__title {
    font-size: 0.9375rem;
    line-height: 1.35;
  }

  .products.hp-catalog-products--list .price,
  .products.hp-catalog-products--list .stock {
    font-size: 0.8125rem;
    line-height: 1.35;
  }

}
