/* Catalog/product card styles extracted from theme.css */

.card-img-top {
  width: auto;
  max-width: 150px;
}

.card-product {
  overflow: hidden;
  /*border: #ddd solid 1px;*/
  transition: all 0.3s;
  display: flex;
  height: 100%;
  flex-direction: column;
}

.card-product-img {
  height: 100%;
}
.card-product:hover {
  transition: all 0.3s;
  /*box-shadow: 0px 0px 0px 5px rgba(0,0,0,0.03);*/
}
.card-product .quick-view {
  right: 0px;
  bottom: -20px;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  z-index: 99;
  background: #888;
  padding: 5px 10px;
}
.card-product:hover .quick-view {
  opacity: 1;
  visibility: visible;
  bottom: 0px;
  background: #f4f4f4;
  transition: all 0.3s ease 0s;
  border-radius: 5px;
}
.card-product .quick-view a {
  color: #888;
}

.card-product .product-info {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 99;
  bottom: -150%;
  background: white;
  padding: 20px 20px 0 20px;
  opacity: 0;
  transition: all 0.3s ease 0s;
}
.card-product:hover .product-info {
  bottom: 0;
  opacity: 1;
  transition: all 0.3s ease 0s;
}
.card-group.card-product .product-info {
  display: none;
}
.imagemode .card-group.card-product:hover .product-info {
  display: block;
}
.card-product .service-name,
.card-product .truncate-text {
  color: black;
}

.imagemode .card-product {
  padding: 0;
  border-radius: 15px;
  min-height: 150px;
}
.imagemode .card-img-top {
  margin-top: 0 !important;
}
.imagemode .card-product .card-body {
  padding: 0;
}
.imagemode .card-product:not(.card-group) .card-info {
  display: none !important;
}
.imagemode .hot {
  top: 6px;
}
.imagemode .card-product .product-info {
  background: #ffffffeb;
}
.imagemode .card-product:hover .quick-view {
  border-radius: 10px 0 0;
}
.imagemode .card-group .card-info {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-bottom: 1rem;
  background: white;
}
.imagemode .card-group:hover .card-info {
  opacity: 1;
  visibility: visible;
}

.hot {
  font-weight: normal;
  right: 10px;
  position: absolute;
  top: -10px;
  transform: rotate(90deg);
}
.free {
  font-weight: normal;
}
.free,
.hot {
  text-transform: uppercase;
  border-radius: 0px;
}

.price {
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
  font-size: 16px;
  font-weight: bold;
}
.prefix,
.suffix {
  opacity: 0.6;
  font-weight: 300;
}
header .prefix,
header .suffix {
  opacity: 1;
}
.btn-addtocart {
  text-transform: uppercase;
  transition: all 0.3s;
  position: absolute;
  left: -100px;
  background: white;
}
.card-product:hover .btn-addtocart {
  left: 0;
  transition: all 0.3s;
}

.card-retail-order .retail-item {
  border-bottom: #ddd solid 1px;
  padding-top: 1rem;
}
.card-retail-order .retail-item .track-order {
  margin-top: 1.2rem;
}
.card-retail-order .retail-item:last-child {
  border: none;
}

.set-track {
  margin-left: 12px;
}

/* Product grid column sizing (moved from legacy theme.css) */
.col-lg-9 .col-lg-3.col-product {
  -ms-flex: 0 0 33.33%;
  flex: 0 0 33.33%;
  max-width: 33.33%;
}

#productdetails div:first-child {
  margin-top: 1.5rem;
}

.related-products .quick-view {
  display: none !important;
}
