a {
  text-decoration: none;
  color: unset;
}
a:hover {
  text-decoration: none;
  color: unset;
}

#product_cards_grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* grid-auto-rows: 1fr; */
  gap: 1.5rem;
  justify-content: center;
  padding: 1rem;
  width: 100%;
}

.product_card{
  background:#FFF;
  border-radius: 5px;
  padding:10px;
  width: 100%;
  text-align: center;
  border: 1px solid #ccc;
}

.product_card:hover {
  text-decoration: none;
  transition-duration: .3s;
  box-shadow: 0px 0px 15px 3px #3c7ca3;
  border-radius: 8px;
}

.product_card.unpublished{
 border: 1px dashed red;
}
.product_card .unpublished{
 color:red;
}
.product_card_inner{
  width:100%;
  z-index:10;
}
.product_description{
  display:none;
  margin: 20px 25px 0px 25px;
  font-size: 13px;
}
.product_type{
  margin:0 25px 6px 25px;
  font-size:11px;
  color:#aaa;
  max-height: 22px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product_card_inner:hover .product_type{
  max-height: unset;
  white-space: unset;
}
.product_card_inner:hover .product_description{
  display:block;
}
.product_card .usage {
  border-top: 1px solid #ccc;
  margin-top: auto;
  padding: 10px 15px 0 15px;
  width: 100%;
  font-size: 10px;
  line-height: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.no_card{
  font-weight:300;
  color:#000;
  grid-column: 1 / -1;
  line-height: 40px;
  margin: 20px;
  text-align: center;
}

.product_img_wrapper {
  display: flex;
  align-items: center;
  min-height: 200px;
}

.product_img img{
  width: 100%;
  height: 100%;
  max-height: 210px;
  margin: 10px auto;
  padding: 10px 20px;
  max-width: 250px;
  object-fit: contain;
}
.product_card:hover  .product_img {
  transition-duration: .3s;
  transform: scale(1.2);
  border-radius: 8px;
}

.product_name{
  font-size: 1em;
  font-family: Open Sans;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0em;
  text-align: center;
  line-height: normal;
  color: #616060;
  padding: 0.5em 0;
  margin: 0;
}

.product_price{
  font-weight: 400;
  margin-bottom: 0.5em;
  font-size: .857em;
}
.cart_button{
  height: 45px;
  width:auto;
  border-radius: 25px;
  color: #fff;
  background-color:#1e97c3;
  margin:0 25px;
  text-align: center;
  line-height: 46px;
  font-size: 11px;
  cursor:pointer;
}

.product_display_attribute_images{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  gap: 4px;
 }

.attribute_value {
  width: 30px;
  height: 30px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 2px;
  margin-bottom: 1em;
  position: relative;
}

.attribute_value.active {
  border-radius: 2px;
  box-shadow: 0 0 0 2px #000!important;
}

.attribute_value:hover {
  box-shadow: 0 0 0 3px #ddd;
}

.attribute_value img {
  width: 100%;
  height: 100%;
}
.tooltip {
	top: -1.5rem;
	left: 50%;
	white-space: nowrap;
	background: #616060;
	color: white;
	border-radius: 2px;
	padding: 2px;
	transform: translate(-50%, 0);
}
.attribute_value:hover > .tooltip {
  opacity: 0.9;
  top: -1.5rem;
  white-space: nowrap;
  background: #616060;
  color: white;
  border-radius: 2px;
  padding: 2px;
}


@media (max-width: 768px) {
  .container.maincontent {
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 10px;
    padding-right: 10px;
  }
  #product_cards_grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.5rem;
      padding: 1rem 0;
  }
  .product_card {
      padding: 4px;
  }
  .product_img img {
      margin: auto;
      padding: 5px 10px;
  }
  .product_card .usage {
    padding: 10px 15px 10px 15px;
  }
}
