:root {
  --color-status-success: #16803c;
  --color-status-success-light: #F0FDF4;
}

/* Product Card */
.pro-price {
  display: flex;
  justify-content: space-between;
  
}

.price-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.price-change {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.price-change .price-trend {
  font-size: 0.875rem;
}

.price-trend.trend-up {
  color: var(--color-status-success);
  background-color: var(--color-status-success-light);
  padding: 0.0625rem 0.25rem;
  border-radius: 0.25rem;


}

/* A price drop is good news for buyers, so it gets the same "success" treatment as trend-up. */
.price-trend.trend-down {
  color: var(--color-status-success);
  background-color: var(--color-status-success-light);
  padding: 0.0625rem 0.25rem;
  border-radius: 0.25rem;
}

.price-change .product-discount {
  background-color: var(--color-red);
  padding: 0.0625rem 0.25rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
}

.product-discount p {
  font-size: 0.75rem;
  color: var(--color-white);
}

.listing-price {
  font-weight: 600;
}

.orgin-price {
  text-decoration: line-through;
  font-size: 0.875rem;
  color: #747474;
}


.pro-container {
  display: flex;
  /* flex-basis: 100%; */
  margin: 0 5rem;
  gap: 1.5rem;
  padding: 20px 0;
  overflow-y: hidden;
  overflow-x: auto;
}

.pro-container .pro {
  border: 2px solid red;
}

/* Card */
.pro,
#product1 .pro {
  flex: 0 0 auto;
  width: 320px;
  padding: 10px 12px;
  border: 3px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  text-align: left;
  color: #000;
}

.pro:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}


/* Image */

.product-image {
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
}

.image-custom {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 1rem;
}


/* Description  */

#product1 .pro .des {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 10px;
}


.pro-brand {
  text-transform: capitalize;
  font-size: 1rem;
  font-weight: 500;
  word-wrap: break-word;
  margin-bottom: 5px;

}

 .pro-brand-txt {
  font-weight: 500;
  word-wrap: break-word;
  letter-spacing: 0.004rem;
  font-size: 0.75rem;
}

/* Short Description */

.short-desc {
  width: 100%;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  opacity: 0.5;
  text-transform: capitalize;
  margin: 5px 0;
}

#product1 .pro h5 {
  padding-top: 7px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
}

#product1 .pro h4 {
  padding-top: 7px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-red);
}


#product1 {
  text-align: center;
  padding: 40px 0;
}

/* discount */

.discount {
  display: inline-block;
  background-color: #DC2A2A;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.discount p {
  font-size: 12px;
  color: white;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}


/* Hide scrollbar (optional) */
.pro-container::-webkit-scrollbar {
  height: 8px;
}

.pro-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.pro-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.pro-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}


/* Like Icon */

.liked {
  font-weight: 500;
  border-radius: 50%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
  right: 10px;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.8);
  height: 40px;
  width: 40px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.liked i {
  font-size: 1.2rem;
  color: #333;
}

.liked i.active {
  color: var(--color-red);
};

.liked:hover {
  transform: scale(1.15);
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.liked:hover i {
  color: #DC2A2A;
}



/* Tablet */
@media (max-width: 768px) {
  .pro-container {
    margin: 0 2rem;
  }
  
  .pro,
  #product1 .pro {
    width: 280px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .pro-container {
    margin: 0 1rem;
    gap: 1rem;
  }
  
  .pro,
  #product1 .pro {
    width: 100%;
  }
}