* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:host {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 200px;
  border: 1px solid rgb(211, 211, 211);
  flex-shrink: 0;
  cursor: pointer;
}

.card-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  height: 100%;
}

/* Member banner */
.members-banner {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background-color: #0a2240;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.5rem;
  font-weight: 500;
  border-radius: 20px;
  z-index: 2;
}

/* Image container with fixed dimensions */
.image-container {
  width: 100%;
  height: 200px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow: hidden;
}

.image-container img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.product-info {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0.75rem;
}

/* Brand name */
.brand {
  color: #666;
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 500;
  /* margin-bottom: 0.25rem; */
}

/* Product name */
.product-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
  margin: 0;
  /* margin-bottom: 0.5rem; */

  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

/* Star rating */
.rating {
  display: flex;
  align-items: center;
  /* margin: 0.25rem 0 0.5rem 0; */
}

.star {
  color: #ffd700; /* Bright yellow color for stars */
  font-size: 1.125rem;
  letter-spacing: -1px;
}

.star.empty {
  color: #d3d3d3;
}

.star.half {
  position: relative;
  color: #d3d3d3;
}

.star.half:before {
  content: '★';
  position: absolute;
  left: 0;
  color: #ffd700;
  width: 50%;
  overflow: hidden;
}

/* Price section */
.price-section {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.member-price,
.non-member-price {
  display: flex;
  flex-direction: column;
}

.price {
  font-size: 0.875rem; /* Larger size for prices */
  font-weight: 600;
  line-height: 1.1;
}

.member-price .price {
  color: #1976d2; /* Blue color for member price */
}

.non-member-price .price {
  color: #666; /* Darker gray for non-member price */
}

.price-label {
  font-size: 0.875rem;
  color: #666;
  /* margin-top: 0.25rem; */
}

/* Talents section */
.talents-section {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  /* margin-top: 0.5rem; */
  color: #666;
  font-size: 0.875rem;
}

.earn-text {
  font-weight: 500;
}

.talents-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.talents-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.talents-value {
  font-weight: 500;
}
