/**
 * 产品信息展示组件样式
 * 作者: 阿瑞
 * 版本: 1.0.0
 */

/* 产品卡片 */
.productCard {
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 120px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.productCard.light {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.productCard.dark {
  background-color: #1f2937;
  border: 1px solid #374151;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.productCard:hover {
  transform: translateY(-2px);
}

.productCard.light:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.productCard.dark:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 产品图片容器 */
.productImageContainer {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 宽高比 */
  overflow: hidden;
}

/* 产品图片 */
.productImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.productImageContainer:hover .productImage {
  transform: scale(1.05);
}

/* 产品图片占位符 */
.productImagePlaceholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productImagePlaceholder.light {
  background-color: #f3f4f6;
}

.productImagePlaceholder.dark {
  background-color: #374151;
}

/* 通用标签样式 */
.supplierTag,
.brandCategoryTag,
.priceTag,
.quantityTag,
.exampleTag {
  z-index: 10;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.1rem 0.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 0.6rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 4px;
}

/* 供应商标签 */
.supplierTag {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  max-width: 45%;
}

/* 品牌分类标签 */
.brandCategoryTag {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  max-width: 80%;
  text-align: right;
}

/* 价格标签 */
.priceTag {
  position: absolute;
  bottom: 0.3rem;
  left: 0.3rem;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.6);
}

/* 数量标签 */
.quantityTag {
  position: absolute;
  bottom: calc(0.3rem + 18px);
  left: 0.3rem;
  background-color: rgba(0, 0, 0, 0.6);
}

/* 物流状态标签 */
.exampleTag {
  position: absolute;
  bottom: 0.1rem;
  right: 0rem;
  color: white;
  background: none; /* 移除背景，因为使用Antd Tag */
  padding: 0;
}

/* 为不同状态的标签添加样式 */
.statusTag {
  line-height: 1.2;
  padding: 0 4px;
  font-size: 10px;
  height: auto;
  border-radius: 2px;
} 