/* fakalao custom styles */
:root { --primary: #E53333; --primary-dark: #c02929; --bg: #f5f5f5; --card-bg: #fff; --text: #333; --text-muted: #888; --border: #e8e8e8; --success: #28a745; --warning: #ff9800; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
.container { max-width: 900px; margin: 0 auto; padding: 16px; }
.topbar { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; height: 56px; display: flex; align-items: center; padding: 0 16px; position: sticky; top: 0; z-index: 100; }
.topbar-brand { color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.topbar-nav { display: flex; gap: 4px; margin-left: auto; }
.topbar-nav a { color: rgba(255,255,255,0.7); text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 0.9rem; }
.topbar-nav a:hover, .topbar-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.breadcrumb { padding: 12px 16px; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.detail-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.detail-grid { display: grid; grid-template-columns: 400px 1fr; gap: 0; }
.detail-image { background: #f8f8f8; display: flex; align-items: center; justify-content: center; min-height: 300px; position: relative; }
.detail-image img { max-width: 100%; max-height: 400px; object-fit: contain; }
.detail-image i { font-size: 5rem; color: #ddd; }
.detail-info { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.goods-title { font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.goods-cat { display: inline-block; background: #f0f0f0; color: var(--text-muted); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; }
.price-box { background: #fff9f9; border: 1px solid #ffe0e0; border-radius: 8px; padding: 16px; }
.price-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; }
.price-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.price-value small { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.goods-stats { display: flex; gap: 24px; }
.stat { text-align: center; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-num { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.qty-control { display: flex; align-items: center; gap: 12px; }
.qty-label { font-size: 0.9rem; color: var(--text-muted); }
.qty-btn { width: 36px; height: 36px; border: 1px solid var(--border); background: #fff; border-radius: 6px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input { width: 60px; height: 36px; border: 1px solid var(--border); border-radius: 6px; text-align: center; font-size: 1rem; }
.pay-methods { display: flex; gap: 10px; }
.pay-method { flex: 1; padding: 12px; border: 2px solid var(--border); border-radius: 8px; text-align: center; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s; }
.pay-method:hover { border-color: var(--primary); }
.pay-method.active { border-color: var(--primary); background: #fff9f9; color: var(--primary); }
.contact-box { }
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; }
.form-input:focus { outline: none; border-color: var(--primary); }
.total-price { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.buy-form { display: flex; flex-direction: column; gap: 16px; }
.btn-pay { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; }
.btn-pay:hover { background: var(--primary-dark); }
.btn-pay:disabled { background: #ccc; cursor: not-allowed; }
.goods-desc-section { background: var(--card-bg); border-radius: 12px; padding: 24px; margin-top: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.desc-content { font-size: 0.95rem; line-height: 1.8; color: var(--text); }
.footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: 0.85rem; }
.alert { padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.alert-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #1565c0; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-image { min-height: 220px; }
  .container { padding: 12px; }
}
