.product-card {
  margin-left: 12px;
}
.rtl .product-card {
  margin-left: 0;
  margin-right: 12px;
}
@media (max-width: 991px) {
  .product-card {
    margin-left: 8px;
  }
  .rtl .product-card {
    margin-left: 0;
    margin-right: 8px;
  }
}
.product-card__mask {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: -8px;
  border-radius: 16px;
  opacity: 0.5;
  background: var(--white);
  z-index: 1;
  transition: all 0.3s ease;
}
.profile-container .product-card, .profile-container .product-card__mask {
  border: 1px solid var(--gray-200);
  border-radius: 16px;
}
.product-card:hover .product-card__mask {
  top: -8px;
  bottom: 8px;
}
.product-card__image {
  width: 124px;
  height: 124px;
  margin-left: -24px;
}
.rtl .product-card__image {
  margin-left: 0;
  margin-right: -24px;
}
@media (max-width: 991px) {
  .product-card__image {
    width: 100px;
    height: 100px;
  }
}
.product-card__content {
  width: calc(100% - 124px);
  overflow: hidden;
}
@media (max-width: 991px) {
  .product-card__content {
    width: calc(100% - 100px);
  }
}
.product-card__title {
  max-height: 42px;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ===== restored VX custom product card ===== */
/* ===== restored VX custom product card ===== */
/* VexaCourse Product Card - Matching Reference Design */
.vx-product-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vx-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ===== Image Section ===== */
.vx-product-card__img-section {
  position: relative;
  background: #f0f0f0;
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vx-product-card__img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

.vx-product-card__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.vx-product-card:hover .vx-product-card__img {
  transform: scale(1.04);
}

/* Wishlist Heart - top left */
.vx-product-card__wishlist {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.rtl .vx-product-card__wishlist {
  left: auto;
  right: 14px;
}

.vx-product-card__wishlist:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.vx-product-card__wishlist svg {
  color: #9ca3af;
}

.vx-product-card__wishlist:hover svg,
.vx-product-card__wishlist.active svg {
  color: #ef4444;
  fill: #ef4444;
}

/* Discount Badge - top right */
.vx-product-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  z-index: 3;
  letter-spacing: 0.3px;
}

.rtl .vx-product-card__badge {
  right: auto;
  left: 14px;
}

/* ===== Card Body ===== */
.vx-product-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

/* Title */
.vx-product-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 8px;
  width: 100%;
}

.vx-product-card__title:hover {
  color: #333;
  text-decoration: none;
}

/* Tag/Category */
.vx-product-card__tag-row {
  margin-bottom: 10px;
}

.vx-product-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 0;
}

.vx-product-card__tag:hover {
  color: #15803d;
  text-decoration: none;
}

.vx-product-card__tag-check {
  color: #16a34a;
  flex-shrink: 0;
}

/* Instructor */
.vx-product-card__instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
  justify-content: center;
}

.vx-product-card__instructor-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid #e5e7eb;
}

.vx-product-card__instructor-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.vx-product-card__instructor-name {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.4;
  text-align: start;
}

.vx-product-card__instructor-name:hover {
  color: #374151;
  text-decoration: none;
}

/* Price Block */
.vx-product-card__price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 16px;
  margin-top: auto;
}

.vx-product-card__price {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.3px;
}

.vx-product-card__price--old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}

/* ===== Action Buttons ===== */
.vx-product-card__actions {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.vx-product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 12px 16px;
}

/* Buy Now - BLACK background like reference */
.vx-product-card__btn--buy {
  flex: 1;
  background: #111;
  color: #fff;
}

.vx-product-card__btn--buy:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
}

/* Cart icon button - light gray */
.vx-product-card__btn--cart {
  flex: 0 0 50px;
  width: 50px;
  background: #f3f4f6;
  color: #374151;
  padding: 0;
  border: 1px solid #e5e7eb;
}

.vx-product-card__btn--cart:hover {
  background: #e5e7eb;
  color: #111;
}

.vx-product-card__btn--cart svg {
  width: 22px;
  height: 22px;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .vx-product-card__img-section {
    aspect-ratio: 4/3;
  }
  .vx-product-card__body {
    padding: 12px 14px 16px;
  }
  .vx-product-card__title {
    font-size: 14px;
  }
  .vx-product-card__price {
    font-size: 18px;
  }
}
