
/* ============================================================================
   CARD
============================================================================ */

.pcat-card {
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  position: relative;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.pcat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgb(0 0 0 / 43%);
}

.badge-sale {
  position: absolute;
  top: 8px;
  left: 8px;
  background: red;
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 2;
}

.card-img {
  aspect-ratio: 1;
  background: #f5f5f5;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
span.rating-text {
    display: flex;
    align-items: center;
    /* height: 20px; */
    padding-top: 4px;
}
.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta-left {
    flex-basis: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}
span.total_sales {
    padding-top: 4px;
}
span.rating {
  align-items: center;
  display: flex;
  gap: 5px;
 
}
.card-title {
  font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    min-height: 63px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.card-title a{
     color: #333;
}
.card-price {
  margin-bottom: 12px;
}
span.price-sale.is_variable {
    width: 100%;
    display: block;
}

span.price-regular.is_variable {
    margin: 0;
    width: 100%;
    display: block;
}
.price-sale {
  color: #ea0000;
  font-size: clamp(12px, 4vw, 16px);
  font-weight: 700;
  white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-regular {
  color: #333333;
  text-decoration: line-through;
  margin-left: 5px;
  font-size: 13px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #edf1f5;
  padding-top: 10px;
  margin-top: auto;
  font-size: 12px;
  flex-wrap: wrap;
}

.btn-add-compare {
  background: none;
  border: none;
  color: #0056ad;
  cursor: pointer;
  font-size: 12px;
  margin: 0;
  padding: 0;
}

.btn-add-compare.is-added {
  color: red;
  font-weight: 700;
}
span.rating svg {
    width: 20px;
    height: 20px;
}
@media(max-width:1451px){
  span.price-sale {
    display: block;
}

span.price-regular {
    display: block;
    margin: 0;
}
  
}
@media(max-width:1106px){
  span.price-sale {
    display: block;
}

span.price-regular {
    display: block;
    margin: 0;
}
}
@media(max-width:934px){
  .card-meta-left {
    flex-wrap: wrap;
}

span.rating {
    flex-basis: 100%;
}
}
@media(max-width:600px){
      .card-meta-left {
        flex-wrap: initial;
    }
    span.rating {
        flex-basis: auto;
    }

}