/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--color-title); font-weight: 700; line-height: var(--line-height-tight); }
h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }
a:hover { color: var(--color-primary); }

/* Utility classes */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-muted); }
.text-title { color: var(--color-title); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.price { color: var(--color-primary); font-weight: 700; }
.price-lg { font-size: var(--font-size-2xl); }
.price-original { color: var(--color-muted); text-decoration: line-through; font-size: var(--font-size-sm); font-weight: 400; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--color-border); margin: var(--space-6) 0; }

/* Section title */
.section-title { font-size: var(--font-size-2xl); font-weight: 700; color: var(--color-title); margin-bottom: var(--space-2); }
.section-subtitle { color: var(--color-muted); font-size: var(--font-size-base); margin-bottom: var(--space-8); }
.section-header { text-align: center; margin-bottom: var(--space-10); }
.section-header .section-title { position: relative; display: inline-block; }
.section-header .section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--color-primary); margin: var(--space-3) auto 0; border-radius: var(--radius-full); }

/* Stars */
.stars { color: var(--color-secondary); font-size: var(--font-size-sm); letter-spacing: 1px; }

/* Tag / badge */
.tag { display: inline-flex; align-items: center; padding: 2px var(--space-2); border-radius: var(--radius-sm); font-size: var(--font-size-xs); font-weight: 600; }
.tag-red { background: #FEE2E2; color: var(--color-primary); }
.tag-gold { background: #FEF3C7; color: #92400E; }
.tag-green { background: #D1FAE5; color: #065F46; }
.tag-blue { background: #DBEAFE; color: #1E40AF; }
.tag-gray { background: var(--color-bg-light); color: var(--color-muted); }

/* Empty state */
.empty-state { text-align: center; padding: var(--space-20) var(--space-6); color: var(--color-muted); }
.empty-state-icon { font-size: 64px; margin-bottom: var(--space-4); }
.empty-state-title { font-size: var(--font-size-xl); font-weight: 600; color: var(--color-title); margin-bottom: var(--space-2); }
.empty-state-desc { font-size: var(--font-size-sm); margin-bottom: var(--space-6); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--font-size-sm); color: var(--color-muted); margin-bottom: var(--space-6); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { color: var(--color-border); }
.breadcrumb-current { color: var(--color-title); }

/* Loading spinner */
.spinner { width: 40px; height: 40px; border: 3px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: var(--space-8) auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Overlay */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: var(--z-overlay); opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.overlay.active { opacity: 1; pointer-events: all; }

/* Sichuan decorative border pattern */
.sichuan-border { border-top: 3px solid var(--color-primary); position: relative; }
.sichuan-border::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: var(--color-primary); transform: translateX(-50%) rotate(45deg); }
