/*
 * Kent & Hudson — Shared Components
 * 共用组件样式 (Product cards, blog cards, etc.)
 */

/* ===== Universal Product Card ===== */
.product-card,
.product-item {
  position: relative;
  background: #fff;
  transition: box-shadow 0.3s;
}
.product-card:hover,
.product-item:hover {
  box-shadow: 0 8px 30px rgba(74,55,40,0.1);
}
.product-card .img-wrap,
.product-card .product-img,
.product-item .img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 3/4;
  text-decoration: none;
  color: inherit;
}
.product-card .img-wrap img,
.product-card .product-img img,
.product-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.product-card:hover .img-wrap img,
.product-card:hover .product-img img,
.product-item:hover .img-wrap img {
  transform: scale(1.05);
}

/* Badges */
.product-card .product-badge,
.product-item .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--style-color);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  z-index: 2;
}
.product-item .badge-new { background: var(--style-color); color: #fff; }
.product-item .badge-sale { background: var(--style-color-gold); color: #fff; }
.product-card .product-badge.sale-badge { background: var(--style-color-gold); color: #fff; }

/* Quick actions / wishlist */
.product-card .product-wishlist,
.product-item .quick-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s;
  z-index: 2;
}
.product-card:hover .product-wishlist,
.product-item:hover .quick-actions {
  opacity: 1;
  transform: translateX(0);
}
.product-card .product-wishlist,
.product-item .quick-actions button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--style-color);
  transition: all 0.25s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-family: inherit;
}
.product-card .product-wishlist:hover,
.product-item .quick-actions button:hover {
  background: var(--style-color);
  color: #fff;
}
.product-item .quick-wishlist.active,
.product-item .quick-actions button.active {
  background: var(--style-color);
  color: #fff;
}

/* Quick add */
.product-card .product-quick-add,
.product-item .add-to-cart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}
.product-card .quick-add-btn,
.product-item .add-to-cart {
  display: block;
  width: 100%;
  padding: 14px;
  background: rgba(255,255,255,0.97);
  color: var(--style-color);
  border: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s, color 0.25s;
  transform: translateY(100%);
}
.product-card:hover .quick-add-btn,
.product-item:hover .add-to-cart {
  transform: translateY(0);
}
.product-card .quick-add-btn:hover,
.product-item .add-to-cart:hover {
  background: var(--style-color);
  color: #fff;
}

/* Info block */
.product-card .product-info,
.product-item .info {
  padding: 18px 4px 8px;
  text-align: center;
}
.product-card .product-brand,
.product-item .brand {
  font-size: 10px;
  color: var(--style-color-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 6px;
  font-weight: 500;
}
.product-card .product-name,
.product-item .name {
  font-size: 14px;
  font-weight: 400;
  color: var(--style-color);
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}
.product-card .product-name a,
.product-item .name a {
  color: inherit;
  text-decoration: none;
}
.product-card .product-name a:hover,
.product-item .name a:hover {
  color: var(--style-color-gold);
}
.product-card .product-price,
.product-item .price {
  font-size: 15px;
  font-weight: 600;
  color: var(--style-color);
  margin: 0;
  letter-spacing: 0.02em;
}
.product-card .price-original,
.product-item .price .old {
  color: var(--style-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 8px;
  font-size: 13px;
}
