#collection-anchor {
  width: 100%;
  max-width: 1700px;
  display: block;
  margin: 0 auto;
}

#collection-header{
  display: flex;
  width: 100%;
  margin: 0 auto 10px;
  flex-direction: row;
  justify-content: space-between;
}

#product-collection-div {
  width: 100%;
  height: auto;
  margin: 0 auto 60px;
  display: flex;
  justify-content: center;
}

#collection-content {
  width: auto;
  background-color: white;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  align-content: first baseline;
  margin: 10px auto;
  height: 100%;
  min-height: 0;
}

.collection-title {
  width: 50%;
  margin: 0 auto 0 0;
  text-align: left;
  font-size: 36px;
  white-space: nowrap;
}

.collection-product a {
  height: 100%;
  width: 100%;
}

.collection-product {
  position: relative;
  align-self: flex-start;
  display: inline-block;
  width: 25%;
  min-width: 200px;
  max-width: 50%;
  min-height: 450px;
  height: auto;
  max-height: 375px;
  overflow: hidden;
  text-align: center;
  border: 1px solid #dadada;
  margin: 1px 1px;
  background-color: white;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -ms-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  transform-origin: center;
  vertical-align: top;
  white-space: normal;
  flex: 1 0 21%;
  margin: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 5px;
}

.buy-btn{
  position: absolute;
  bottom: 50px;
  height: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background-color: #363636;
  color: white;
  padding: 5px 0;
  border-radius: 8px;

}


.add-to-cart-btn-card{
  position: absolute;
  bottom: 10px;
  height: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background-color: #363636;
  color: white;
  padding: 5px 0;
  border-radius: 8px;
}

.buy-btn:hover{
  background-color: #545353;
  box-shadow: inset 0px 0px 50px -10px rgba(0,0,0,0.6);
}
.add-to-cart-btn-card:hover{
  background-color: #545353;
  box-shadow: inset 0px 0px 50px -10px rgba(0,0,0,0.6);
}


.chassis-card{
  min-height: 325px;
}
.chassis-card-price{
  bottom: 10px;
}
.collection-product:hover {
  transition: 0.5s;
}
.collection-product-overlay {
  background-color: #ffffffaa;
  position: absolute;
  top:0;
  left: 0;
  height: 100%;
  width: 100%;
  padding-top: 80%;
  display: none;
}

.collection-product-overlay button {
  display: block;
  margin: 5px auto;
  width: 80%;
  font-size: 16px;
}

.collection-product:hover > .collection-product-overlay {
  display: block;
}

#collection-preferences{
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  height: 30px;
  font-size: 14px;
}

.collection-product.list-view {
  position: relative;
  align-self: center;
  display: block;
  min-width: 94%;
  max-width: 96%;
  height: auto;
  overflow: hidden;
  text-align: center;
  border: 1px solid #dadada;
  padding: 10px;
  border-radius: 3px;
  margin: 2px auto;
  padding: 5px;
  background-color: white;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -ms-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  transform-origin: center;
  white-space: normal;
}

.collection-product.grid-view .product-data {
  display: block;
  
}


.collection-product.list-view .product-data {
  display: inline-block;
  height: auto;
  width: 60%;
  vertical-align: top;
  margin-left: 5px;
}

.collection-product::before {
  box-sizing: border-box;
}

.collection-product.out-of-stock img {
  opacity: 0.5;
}

.collection-product.grid-view:hover {
  border: solid 1px #9c9c9c;
  cursor: pointer;
  transition: 0.5s;
}

.collection-product.list-view:hover {
  border: solid 1px #9c9c9c;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.collection-product.grid-view img {
  width: 100%;
  max-height: 300px;
  max-width: 300px;
  height: auto;
  margin: 0;
  padding: 0;
}
.collection-product.grid-view img:hover{
  -webkit-transform: scale(1.1) translateY(-5%);
  -moz-transform: scale(1.1) translateY(-5%);
  -o-transform: scale(1.1) translateY(-5%);
  transform: scale(1.1) translateY(-5%);
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
}
.collection-product.list-view img {
  height: 100%;
  width: auto;
  max-width: 30%;
  max-height: 300px;
  margin: 0 2% 0 0;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
}
.img-unavailable{
  opacity: 0.5;
}
.collection-product.grid-view h6 {
  line-height: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 600;

}

.collection-product.list-view h6 {
  line-height: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  margin: 5px 0;
}

.collection-product p {
  line-height: 1;
  margin: 0;
  max-height: 70px;
  overflow: hidden;
}


.collection-product.grid-view .product-title-div {
  height: 55px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  width: 100%;
  margin: 0 auto 20px;
}

.collection-product.list-view .product-title-div {
  height: auto;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  margin: 0 auto 5px;
}

.collection-product.list-view .product-description-div {
  height: auto;
  min-height: 180px;
}

.product-description-div {
  height: 0;
  line-height: 0.9em;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  margin-bottom: 5px;
  color: black;
}

.related-product-price {
  color: black;
  font-size: 14px;
  font-weight: 400;
  padding: 0 5px;
}

.related-product-price:before {
  content: "$";
}

.collection-product.list-view .product-price {
  margin: 5px 0;
}

.product-price {
  color: black;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  padding: 0 5px;
}

.grid-view .product-price {
  position: absolute;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
}

.collection-product br {
  line-height: 16px;
}

.product-price::before {
  content: "$";
}

.load-more {
  height: 30px;
  width: 100px;
  background-color: black;
  padding: 2px;
  display: block;
  margin: 20px auto 50px;
  text-align: center;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.load-more:hover {
  cursor: pointer;
  transform-origin: center;
  transform: scale(1.1);
}

.ajax-loader {
  width: 32px;
  display: block;
  margin: 50px auto;
}

#pref-views-div {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#pref-views-div img.selected {
  filter: brightness(0) saturate(100%) invert(94%) sepia(100%) saturate(1682%) hue-rotate(8deg) brightness(91%) contrast(102%);
}
#pages-div {
  text-align: center;
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
}

#pages-div * {
  display: inline-block;
  vertical-align: middle;
  height: 18px;
  font-size: 18px;
  line-height: 1;
  margin: 10px 5px;
}

#pages-div a {
  color: #363636;
}

#pages-div a:hover {
  cursor: pointer;
}

#pages-div p {
  color: black;
  font-weight: 800;
}

#pages-div img {
  height: 20px;
  margin-left: 10px;
  margin-right: 10px;
}

#pages-div img:hover {
  cursor: pointer;
}

.product-discounted-price {
  font-size: 14px;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  color: #777777;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}


.product-discounted-price::before {
  content: "$";
}

.grid-view .discount-tag {
  background-color: #cdea00;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: black;
  font-weight: 600;
  width: 100%;
  z-index: 2;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.list-view .discount-tag {
  background-color: #cdea00;
  border-radius: 3px;
  color: black;
  font-weight: 600;
  width: auto;
  z-index: 2;
  padding: 0 5px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.buy-now-btn {
  text-align: center;
  width: 40%;
  background-color: #363636;
  border-radius: 3px;
  color: white;
  padding: 5px 0;
  margin-bottom: 10px;
  z-index: 10;
}

.buy-now-btn:hover {
  background-color: #444444;
  transition: 0.5s;
}


.collection-product.list-view .buy-now-btn {
  display: block;
  margin: 5px auto;

}

@media screen and (max-width: 1200px) {
  .product-title-div {
    width: 100%;
  }

  .collection-product.grid-view .product-title-div {
    max-height: 60px;
  }
}

@media screen and (max-width: 1000px) {
  .collection-product.list-view {
    min-width: calc(98% - 10px);
    margin: 0 auto;
  }

  .collection-title {
    font-size: 24px;
  }

  #pref-views-div {
    width: 95%;
  }
}

@media screen and (max-width: 800px) {
  #collection-content {
    justify-content: center;
    margin: 0 2px;
  }

  #collection-header{ 
    width: 90%;
  }

  .collection-product.grid-view {
    width: 45vw;
  }

  .collection-product.list-view {
    width: 95%;
  }

  .collection-product h6 {
    font-size: 12;
  }

  .qty-div button {
    height: 30px;
    width: 30px;
  }

  .product-price {
    font-size: 14px;
  }

  .collection-product.list-view img {
    display: none !important;
  }

  .collection-product.list-view .product-data {
    display: block;
    height: auto;
    width: 100%;
    margin-left: 5px;
  }

  .list-view .product-description-div {
    font-size: 12px;
    min-height: 50px !important;
  }

  .collection-product.grid-view img {
    min-height: 150px;
    min-width: 150px;
  }
}

@media screen and (max-width: 600px){
  #pref-views-div img {
    width: 30px;
  }
}

@media screen and (max-width: 550px) {
  .collection-product {
    width: 40vw;
  }
}

.break {
  width: 100vw;
  height: 0;
}

.best-seller-product-type {
  margin-top: 30px;
  margin-bottom: 10px;
  border-top: solid 1px black;
  padding-top: 10px;
  width: 100%;
  text-align: center;
}
@media screen and (max-width: 393px){
  .collection-product{
   min-width: 193px;
  }
}
