/* page titles */

.woocommerce-products-header {
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: right;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translatex(-50%);
  padding: 7% 5% !important;
  margin-bottom: 2rem;
}

.page-title {
  font-family: var(--alt-font);
  font-size: 3rem;
  text-align: left;
  transform: translatex(-0.5rem);
  font-weight: 900;
  max-width: 25%;
}

.term-description {
  text-align: left;
  max-width: 25%;
}

@media screen and (max-width: 767px) {
  .woocommerce-products-header {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translatex(-50%);
    padding: 7% 10% !important;
    margin-bottom: 2rem;
    min-height: 150px;
  }

  .page-title {
    /* font-family: var(--alt-font);
    transform: translatex(-0.5rem);
    font-weight: 900;
    color: black !important;
    background-color: white;
    width: fit-content;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 3px 7px;
    border-radius: 5px; */
    display: none;
  }

  .term-description {
    display: none;
  }
}

/* sorting */

.storefront-sorting {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 1rem;
  margin-bottom: 1rem !important;
  display: flex;
  flex-direction: column;
}

.woocommerce-result-count {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* .products  */

.archive .products {
  width: 95vw;
  position: relative;
  left: 50%;
  transform: translatex(-50%);
}

.archive .products .product {
  margin-bottom: 0 !important;
}

@media screen and (min-width: 768px) {
  .archive .products,
  .med-product-carousel .products {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .archive .products .product {
    flex: 0 0 calc(25% - 10px) !important;
    margin: 5px !important;
    box-sizing: border-box !important;
    padding: 3%;
  }

  .archive .products .product.first,
  .med-product-carousel .products .product.first {
    margin-left: 0 !important;
  }

  .archive .products .product.last,
  .med-product-carousel .products .product.last {
    margin-right: 0 !important;
  }

  .products .product a::after,
  .med-product-carousel .products .product a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.02;
    background: #000;
    pointer-events: none;
  }
}

@media screen and (max-width: 767px) {
  .archive .products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .archive .products .product {
    flex-basis: 50%;
    border: 1px solid white;
  }

  .owl-carousel .product {
    margin-bottom: 5px !important;
  }
}

.med-ct_product_brand-carousel .products .product {
  padding: 0;
  background-color: transparent;
}

.med-ct_product_brand-carousel .products .product a::after {
  background: transparent;
}

@media screen and (min-width: 767px) {
  .products .variations {
    position: absolute;
    bottom: 10%;
    background-color: #f9f9f9 !important;
    display: none !important;
    width: 100%;
  }

  .products .product:hover .variations {
    display: flex !important;
  }
}

@media screen and (max-width: 767px) {
  .products .variations {
    display: none !important;
  }
}

.products .product img {
  max-height: 300px;
  min-height: 300px;
  object-fit: contain;
}

.med-product-categories .products .product img {
  max-height: 600px;
  object-fit: cover;
}

/* product badges */

.products .onsale {
  visibility: hidden;
}
.products .onsale,
.products .out-of-stock {
  position: absolute;
  top: 0;
  background: var(--purrple);
  background-image: var(--colorfull1);
  color: white !important;
  left: 0;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0 7px;
  font-size: 0.8rem;
  font-weight: 600;
}

.products .onsale.itsnew {
  background: var(--orange);
  background-image: var(--colorfull2);
  color: black !important;
}

/* stock badge */

.products .in-stock {
  display: none;
}

.products .stock::before {
  display: none;
}

/* Add to cart btn */

.products .product .button {
  background-color: black;
  color: white;
  text-transform: uppercase;
}

@media screen and (min-width: 768px) {
  .products .product form.cart {
    margin-bottom: 0 !important;
  }

  .products .product .button {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .products .product:hover .button {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .products .product .button {
    font-size: 0.8rem;
  }
}

/* added to cart button */

.product .added_to_cart.wc-forward {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
}

/* Filters */

/* filters trigger */

.filters-actions-wrapper {
  display: flex;
  float: left;
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-right: 1rem;
}

.filters-actions-wrapper p {
  padding: 0.327em 0;
  display: inline-block;
  margin: 0 0 0 10px;
}

.filters-actions-wrapper p::before {
  content: "";
  font-family: var(--font-awesome);
  margin-right: 10px;
  color: black;
}

@media screen and (max-width: 767px) {
  .filters-actions-wrapper {
    display: none;
  }
}

/* fixed trigger */

.filters-trigger {
  position: fixed;
  bottom: 20px;
  right: 10px;
  padding: 0.7rem 1rem;
  background-color: var(--black);
  color: var(--grey);
  border-radius: 25px;
}

@media screen and (max-width: 767px) {
  .filters-trigger {
    bottom: 80px;
  }
}

.filters-trigger::before {
  content: "";
  font-family: var(--font-awesome);
  margin-right: 10px;
}

/* sidebar clear */
.clear-filter-btn {
  text-align: center;
}

.filters-trigger:hover,
.filters-inline-trigger:hover,
.clear-filter-btn,
.clear-filter-inline-btn {
  cursor: pointer;
}
