/* ============================================================
   🍷 UI Components - 极简高档
   ============================================================ */

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-6);
  height: 44px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-sm);
  transition: all var(--transition-base);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-gold {
  background: var(--color-gold-gradient);
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-text-primary);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-border-gold);
}
.btn-outline-gold:hover {
  background: rgba(197, 160, 89, 0.06);
  border-color: var(--color-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
}
.btn-ghost:hover {
  background: var(--color-bg-tertiary);
}

.btn-lg { height: 52px; padding: 0 var(--space-8); font-size: var(--font-size-base); }
.btn-sm { height: 36px; padding: 0 var(--space-4); font-size: var(--font-size-xs); }
.btn-block { width: 100%; }

/* ---- Card ---- */
.card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-elevated {
  box-shadow: var(--shadow-md);
  border: none;
}

/* ---- Product Card 商品卡片 ---- */
.product-card {
  position: relative;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-tertiary);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 2px 10px;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  color: white;
}

.product-card__badge--new { background: var(--color-text-primary); }
.product-card__badge--hot { background: var(--color-error); }
.product-card__badge--vip {
  background: var(--color-gold-gradient);
}

.product-card__body {
  padding: var(--space-4);
}

.product-card__category {
  font-size: 11px;
  color: var(--color-gold);
  letter-spacing: var(--letter-spacing-md);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.product-card__name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
}

.product-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.product-card__price-now {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.product-card__price-now .symbol {
  font-size: var(--font-size-sm);
  margin-right: 1px;
  font-weight: var(--font-weight-normal);
}

.product-card__price-original {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  text-decoration: line-through;
}

.product-card__cart-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-text-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.product-card__cart-btn:hover {
  background: var(--color-gold);
  transform: scale(1.1);
}

/* ---- Section Title 区块标题 ---- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-xl);
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-medium);
}

.section-header__title {
  font-family: var(--font-serif);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-light);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: 2px;
}

.section-header__divider {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 0 auto var(--space-4);
}

.section-header__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-light);
}

/* ---- Category Pill 分类标签 ---- */
.category-list {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.category-pill {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-pill:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}

.category-pill.active {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-text-primary);
}

/* ---- Input ---- */
.input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: all var(--transition-fast);
  outline: none;
}

.input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.input::placeholder {
  color: var(--color-text-tertiary);
}

/* ---- Tag ---- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 11px;
  border-radius: var(--radius-full);
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
}

.tag-gold {
  background: rgba(197, 160, 89, 0.1);
  color: var(--color-gold);
}

/* ---- Bottom Bar (移动端) ---- */
.bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-bar-height);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
    z-index: var(--z-sticky);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .bottom-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: color var(--transition-fast);
  }
  
  .bottom-bar__item.active {
    color: var(--color-gold);
  }
  
  .bottom-bar__icon {
    font-size: 20px;
  }
}

/* ---- Fade In Animation ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-tertiary) 25%,
    var(--color-bg-secondary) 50%,
    var(--color-bg-tertiary) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
