/* ═══════════════════════════════════════════
   FashionHub — Global Styles
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:   #1a1a2e;
  --brand2:  #16213e;
  --accent:  #e94560;
  --accent2: #0f3460;
  --gold:    #f5a623;
  --green:   #27a06a;
  --text:    #1a1a2e;
  --text-muted: #6b7280;
  --bg:      #f8f7f4;
  --bg-card: #ffffff;
  --border:  rgba(0,0,0,0.08);
  --radius:  12px;
  --shadow:  0 2px 16px rgba(0,0,0,0.07);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }

/* ─── NAV ─────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--brand); border-bottom: 2px solid var(--accent); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; gap: 2rem; }
.nav-logo { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; white-space: nowrap; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; flex: 1; }
.nav-links a { color: rgba(255,255,255,0.72); font-size: 14px; transition: color var(--transition); cursor: pointer; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.aws-live { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 20px; color: rgba(255,255,255,0.8); font-size: 12px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.btn-nav { background: var(--accent); color: #fff; border: none; padding: 8px 20px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: opacity var(--transition); }
.btn-nav:hover { opacity: 0.88; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; margin-left: auto; }

/* ─── BUTTONS ─────────────────────────────── */
.btn-primary { display: inline-block; background: var(--accent); color: #fff; padding: 12px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); }
.btn-primary:hover { background: #c73550; transform: translateY(-1px); }
.btn-outline { display: inline-block; background: transparent; color: var(--brand); padding: 11px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 500; border: 1.5px solid var(--accent2); cursor: pointer; transition: all var(--transition); }
.btn-outline:hover { background: var(--accent2); color: #fff; }

/* ─── HERO ─────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--accent2) 100%); padding: 5rem 2rem 4rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; min-height: 520px; overflow: hidden; position: relative; }
.hero::before { content:''; position:absolute; right:-10%; top:-20%; width:60%; height:160%; background:rgba(233,69,96,0.05); border-radius:50%; pointer-events:none; }
.hero-content { max-width: 560px; }
.hero-tag { display: inline-block; background: rgba(233,69,96,0.2); color: var(--accent); font-size: 12px; padding: 5px 14px; border-radius: 20px; margin-bottom: 1.25rem; border: 1px solid rgba(233,69,96,0.4); }
.hero h1 { color: #fff; font-size: 40px; font-weight: 700; line-height: 1.18; margin-bottom: 1rem; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.65); font-size: 16px; line-height: 1.65; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btns .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-btns .btn-outline:hover { background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stat .stat-num { color: #fff; font-size: 26px; font-weight: 700; }
.hero-stat .stat-label { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 2px; }
.hero-visual { display: flex; flex-direction: column; gap: 12px; min-width: 200px; }
.hero-card-float { background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 14px 18px; animation: floatY 4s ease-in-out infinite; }
.card1 { animation-delay: 0s; }
.card2 { animation-delay: 1.5s; }
.card3 { animation-delay: 3s; }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.fc-label { color: rgba(255,255,255,0.6); font-size: 11px; margin-bottom: 4px; }
.fc-value { color: #fff; font-size: 22px; font-weight: 700; }
.fc-trend { font-size: 12px; margin-top: 4px; }
.fc-trend.up { color: #5dde8f; }

/* ─── SECTION ──────────────────────────────── */
.section { padding: 4rem 2rem; }
.section-alt { background: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.section-header h2 span { color: var(--accent); }
.section-header p { color: var(--text-muted); font-size: 15px; }

/* ─── METRICS ──────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 2rem; }
.metric-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); transition: transform var(--transition); }
.metric-card:hover { transform: translateY(-2px); }
.metric-icon { font-size: 32px; }
.metric-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.metric-value { font-size: 26px; font-weight: 700; color: var(--text); }
.metric-change { font-size: 12px; margin-top: 4px; }
.metric-change.up { color: var(--green); }
.metric-change.down { color: #e74c3c; }

/* ─── CHARTS ────────────────────────────────── */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; box-shadow: var(--shadow); }
.chart-card.span2 { grid-column: span 2; }
.chart-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.leg-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-wrap { position: relative; width: 100%; height: 200px; }

/* ─── PRODUCTS ─────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2rem; justify-content: center; }
.filter-tab { background: #fff; border: 1.5px solid var(--border); padding: 8px 20px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: all var(--transition); color: var(--text-muted); }
.filter-tab.active, .filter-tab:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all var(--transition); box-shadow: var(--shadow); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.product-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px; }
.product-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.product-cat { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.product-footer { display: flex; align-items: flex-end; justify-content: space-between; }
.product-price { font-size: 18px; font-weight: 700; color: var(--brand); }
.product-moq { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.badge-hot { background: #fff3e0; color: #e67e22; }
.badge-new { background: #e8f5e9; color: #27a06a; }
.load-more-wrap { text-align: center; margin-top: 2rem; }

/* ─── ORDERS TABLE ─────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.orders-table { width: 100%; border-collapse: collapse; background: var(--bg-card); font-size: 14px; }
.orders-table th { background: var(--brand); color: rgba(255,255,255,0.85); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; }
.orders-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: rgba(233,69,96,0.03); }
.status-pill { font-size: 11px; padding: 3px 12px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.status-Delivered { background: #e8f5e9; color: #27a06a; }
.status-InTransit { background: #e3f2fd; color: #1565c0; }
.status-Pending { background: #fff3e0; color: #e67e22; }
.status-Processing { background: #f3e5f5; color: #7b1fa2; }
.status-Shipped { background: #e0f7fa; color: #00796b; }
.status-Cancelled { background: #fce4ec; color: #c62828; }

/* ─── CONTACT ──────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; font-size: 15px; }
.contact-item span { font-size: 24px; }
.contact-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; transition: border-color var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; }

/* ─── FOOTER ────────────────────────────────── */
.footer { background: var(--brand); padding: 3rem 2rem 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-logo { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 0.75rem; }
.footer-logo span { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 13px; line-height: 1.6; margin-bottom: 1rem; }
.aws-status { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.5); font-size: 12px; }
.footer-col h4 { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,0.45); font-size: 13px; margin-bottom: 8px; cursor: pointer; transition: color var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 2rem; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ─── MODAL ─────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: none; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); padding: 2rem; width: 380px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.modal-close { position: absolute; right: 16px; top: 16px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }
.modal h3 { font-size: 22px; margin-bottom: 1.5rem; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.modal input { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; }
.modal input:focus { outline: none; border-color: var(--accent); }
.demo-hint { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 1rem; }
.form-error { color: #e74c3c; font-size: 13px; text-align: center; }

/* ─── SKELETON LOADING ─────────────────────── */
.loading { position: relative; overflow: hidden; }
.loading::after { content:''; position:absolute; inset:0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 900px) {
  .hero { flex-direction: column; }
  .hero-visual { flex-direction: row; }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-card.span2 { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
}
