/* ===== ROOT VARIABLES ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card: #13131f;
  --bg-card-hover: #1a1a2e;
  --accent-cyan: #00d4ff;
  --accent-purple: #8b5cf6;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --text-primary: #f0f0ff;
  --text-secondary: #9898b8;
  --text-muted: #5a5a7a;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(0,212,255,0.3);
  --glow-cyan: 0 0 20px rgba(0,212,255,0.3);
  --glow-purple: 0 0 20px rgba(139,92,246,0.3);
  --gradient-main: linear-gradient(135deg, #00d4ff, #8b5cf6);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #ef4444);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NOTICE BAR ===== */
.notice-bar {
  background: linear-gradient(90deg, #8b5cf6, #00d4ff, #8b5cf6);
  background-size: 200% 100%;
  animation: noticeGradient 4s linear infinite;
  padding: 10px 0;
  overflow: hidden;
}
@keyframes noticeGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.notice-scroll {
  display: flex;
  gap: 80px;
  animation: scrollText 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.notice-scroll span {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--glow-cyan);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 16px; font-weight: 900; color: var(--text-primary); }
.logo-tm { font-size: 10px; vertical-align: super; color: var(--accent-cyan); }
.logo-sub { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.08);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); }
.search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 13px;
  width: 180px;
  outline: none;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn { background: var(--bg-secondary); border-left: 1px solid var(--border); padding: 8px 12px; color: var(--text-secondary); transition: var(--transition); }
.search-btn:hover { color: var(--accent-cyan); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  position: relative;
}
.cart-btn:hover { background: rgba(0,212,255,0.1); box-shadow: var(--glow-cyan); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-btn {
  padding: 8px 20px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.login-btn:hover { opacity: 0.85; box-shadow: var(--glow-cyan); }

.mobile-menu-btn { display: none; background: transparent; color: var(--text-primary); font-size: 22px; padding: 8px; }
.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 12px 0;
  background: var(--bg-secondary);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link { padding: 12px 24px; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.mobile-nav-link:hover { color: var(--accent-cyan); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at top left, rgba(139,92,246,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(0,212,255,0.1) 0%, transparent 50%),
              var(--bg-primary);
  padding: 80px 0;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  animation: floatShape 8s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: var(--accent-purple); top: -100px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: var(--accent-cyan); bottom: -50px; right: 200px; animation-delay: 2s; }
.shape-3 { width: 200px; height: 200px; background: var(--accent-gold); top: 100px; right: -50px; animation-delay: 4s; }
@keyframes floatShape {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.8; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.stat { text-align: center; padding: 0 28px; }
.stat-num { font-size: 26px; font-weight: 900; color: var(--accent-cyan); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-btns { display: flex; gap: 14px; justify-content: center; }
.btn-primary {
  padding: 14px 32px;
  background: var(--gradient-main);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,0.4); }
.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  color: var(--accent-cyan);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}
.btn-secondary:hover { background: rgba(0,212,255,0.08); transform: translateY(-2px); }

/* ===== ANNOUNCEMENT ===== */
.announcement { padding: 20px 0; background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.announcement-box { display: flex; align-items: flex-start; gap: 12px; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); border-radius: var(--radius-md); padding: 14px 20px; }
.announcement-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.announcement-content { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.announcement-content strong { color: var(--accent-gold); }

/* ===== SECTIONS ===== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: clamp(24px, 4vw, 36px); font-weight: 900; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--gradient-main); border-radius: 4px; margin: 10px auto 0; }
.section-sub { color: var(--text-secondary); margin-top: 10px; font-size: 15px; }

/* ===== CATEGORIES ===== */
.categories-section { padding: 80px 0; background: var(--bg-secondary); }
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.category-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}
.category-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0,212,255,0.1);
  box-shadow: var(--glow-cyan), inset 0 0 20px rgba(0,212,255,0.05);
}
.category-card.active .category-icon { filter: drop-shadow(0 0 8px var(--accent-cyan)); }
.category-icon { font-size: 32px; margin-bottom: 10px; }
.category-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.category-count { font-size: 12px; color: var(--text-muted); }

/* ===== PRODUCTS ===== */
.products-section { padding: 80px 0; }
.filter-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}
.filter-tab:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.filter-tab.active { background: var(--gradient-main); border-color: transparent; color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), var(--glow-cyan);
}
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
}
.badge-hot { background: rgba(239,68,68,0.9); color: #fff; }
.badge-new { background: rgba(16,185,129,0.9); color: #fff; }
.badge-sale { background: rgba(245,158,11,0.9); color: #000; }

.product-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.product-img-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  filter: blur(20px);
  font-size: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-body { padding: 16px; }
.product-category { font-size: 11px; color: var(--accent-cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.product-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.product-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { font-size: 18px; font-weight: 900; color: var(--accent-gold); }
.product-price .old-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; font-weight: 400; display: block; margin-bottom: 2px; }
.add-to-cart {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.add-to-cart:hover { opacity: 0.85; transform: scale(1.03); }
.product-stock { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.stock-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); margin-right: 4px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== FEATURES ===== */
.features-section { padding: 80px 0; background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--accent-purple); transform: translateY(-4px); box-shadow: var(--glow-purple); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ===== HOW TO BUY ===== */
.how-to-buy { padding: 80px 0; }
.steps-grid { display: flex; align-items: center; gap: 0; margin-bottom: 60px; }
.step {
  flex: 1;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.step:hover { border-color: var(--accent-cyan); box-shadow: var(--glow-cyan); }
.step-num { font-size: 11px; font-weight: 700; color: var(--accent-cyan); letter-spacing: 2px; margin-bottom: 10px; }
.step-icon { font-size: 36px; margin-bottom: 12px; }
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.step-arrow { font-size: 20px; color: var(--accent-cyan); padding: 0 10px; flex-shrink: 0; }

.faq-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-card);
  transition: var(--transition);
  user-select: none;
}
.faq-question:hover { background: var(--bg-card-hover); color: var(--accent-cyan); }
.faq-arrow { transition: var(--transition); font-size: 12px; color: var(--text-muted); }
.faq-question.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.faq-answer.open { display: block; }

/* ===== CONTACT ===== */
.contact-section { padding: 80px 0; background: var(--bg-secondary); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--accent-cyan); transform: translateY(-4px); box-shadow: var(--glow-cyan); }
.contact-icon { font-size: 36px; margin-bottom: 12px; }
.contact-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.contact-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.contact-note { font-size: 11px; color: var(--accent-green); }
.contact-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.contact-btn:hover { opacity: 0.85; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-bottom: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-cyan); }
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-tag { padding: 4px 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; font-size: 11px; color: var(--text-secondary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 24px; text-align: center; font-size: 12px; color: var(--text-muted); max-width: 1200px; margin: 0 auto; }

/* ===== CART SIDEBAR ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; display: none; }
.cart-overlay.open { display: block; }
.cart-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  height: 100vh;
  width: 380px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 18px; font-weight: 700; }
.cart-close { background: transparent; color: var(--text-secondary); font-size: 18px; padding: 4px 8px; border-radius: 6px; transition: var(--transition); }
.cart-close:hover { background: var(--bg-card); color: var(--text-primary); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 60px 0; font-size: 14px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-icon { font-size: 28px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 14px; color: var(--accent-gold); font-weight: 700; margin-top: 4px; }
.cart-item-remove { background: transparent; color: var(--text-muted); font-size: 16px; padding: 4px; transition: var(--transition); }
.cart-item-remove:hover { color: var(--accent-red); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { font-size: 18px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; }
.cart-total span { color: var(--accent-gold); }
.checkout-btn { width: 100%; padding: 14px; background: var(--gradient-main); border-radius: var(--radius-md); color: #fff; font-size: 15px; font-weight: 700; transition: var(--transition); }
.checkout-btn:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: var(--glow-cyan); }

/* ===== LOGIN MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 300; display: none; }
.modal-overlay.open { display: block; }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 420px;
  max-width: calc(100vw - 40px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: 301;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: all; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { background: transparent; color: var(--text-secondary); font-size: 18px; padding: 4px 8px; border-radius: 6px; transition: var(--transition); }
.modal-close:hover { background: var(--bg-card); color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.modal-input:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.modal-divider { text-align: center; color: var(--text-muted); font-size: 13px; margin: 14px 0; position: relative; }
.modal-divider::before, .modal-divider::after { content: ''; position: absolute; top: 50%; width: 43%; height: 1px; background: var(--border); }
.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }
.modal-note { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.modal-note a { color: var(--accent-cyan); }

/* ===== ONLINE INDICATOR ===== */
.online-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  flex-shrink: 0;
}
.online-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ===== HERO ENHANCEMENTS ===== */
.btn-glow {
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
}
.btn-glow:hover {
  box-shadow: 0 8px 32px rgba(0,212,255,0.6);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 24px;
}
.trust-icon { font-size: 18px; }
.trust-divider { width: 1px; height: 28px; background: var(--border); }

/* ===== PRODUCT CARD ENHANCEMENTS ===== */
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.product-rating span { color: var(--text-muted); margin-left: 2px; }
.product-sold {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.sold-hot { color: var(--accent-red); font-weight: 600; }

/* ===== REVIEWS SECTION ===== */
.reviews-section { padding: 80px 0; background: var(--bg-secondary); }
.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin-bottom: 40px;
}
.score-big { font-size: 64px; font-weight: 900; color: var(--accent-gold); line-height: 1; }
.score-stars { font-size: 22px; color: var(--accent-gold); margin: 4px 0; }
.score-label { font-size: 13px; color: var(--text-muted); }
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.bar-row > span:first-child { width: 24px; text-align: right; flex-shrink: 0; }
.bar-row > span:last-child { width: 28px; flex-shrink: 0; }
.bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent-gold); border-radius: 4px; transition: width 1s ease; }
.total-num { font-size: 36px; font-weight: 900; color: var(--text-primary); text-align: center; }
.total-label { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 4px; }

.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}
.review-card:hover { border-color: var(--accent-cyan); transform: translateY(-3px); box-shadow: var(--glow-cyan); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-name { font-size: 13px; font-weight: 700; }
.review-stars { font-size: 12px; color: var(--accent-gold); margin-top: 2px; }
.review-date { font-size: 11px; color: var(--text-muted); margin-left: auto; flex-shrink: 0; }
.review-product { font-size: 11px; color: var(--accent-cyan); font-weight: 600; margin-bottom: 8px; background: rgba(0,212,255,0.08); padding: 3px 8px; border-radius: 4px; display: inline-block; }
.review-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ===== FOOTER SOCIAL ===== */
.footer-social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.social-btn {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ===== LIVE PURCHASE NOTIFICATION ===== */
.live-notif {
  position: fixed;
  bottom: 90px;
  left: 24px;
  background: var(--bg-card);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 400;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transform: translateX(-120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.live-notif.show { transform: translateX(0); }
.live-notif-icon { font-size: 24px; flex-shrink: 0; }
.live-notif-text { font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.live-notif-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.live-notif-price { color: var(--accent-gold); font-weight: 700; }
.live-notif-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
  max-width: 320px;
  box-shadow: var(--glow-cyan);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-summary { grid-template-columns: auto 1fr; }
  .reviews-total { display: none; }
}

@media (max-width: 768px) {
  .nav, .search-box, .login-btn { display: none; }
  .online-indicator { display: none; }
  .mobile-menu-btn { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .hero-btns { flex-direction: column; align-items: center; }
  .trust-bar-inner { gap: 0; }
  .trust-item { padding: 6px 12px; font-size: 12px; }
  .trust-divider { display: none; }
  .hero-title { font-size: clamp(28px, 7vw, 56px); }
  .hero-sub { font-size: 14px; }
  .section-title { font-size: 22px; }
  .product-card { padding: 14px; }
  .product-name { font-size: 13px; }
  .cart-sidebar { width: 100vw; }
  .modal { width: calc(100vw - 24px); max-height: 90vh; overflow-y: auto; }
  .faq-question { font-size: 14px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100vw; }
  .live-notif { max-width: calc(100vw - 48px); }
  .product-card { padding: 10px; }
  .product-price { font-size: 16px; }
  .hero-title { font-size: clamp(24px, 8vw, 40px); }
  .header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 24px; }
}

/* ===== PRODUCT DETAIL OVERLAY ===== */
.pd-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.88);
  z-index: 900; display: none; align-items: flex-start;
  justify-content: center; overflow-y: auto; padding: 20px;
}
.pd-overlay.open { display: flex; }
.pd-modal {
  background: var(--bg-card); border: 1px solid var(--border-accent);
  border-radius: 16px; width: 100%; max-width: 1020px;
  margin: auto; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.pd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  background: var(--bg-secondary); position: sticky; top: 0; z-index: 10;
}
.pd-breadcrumb {
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.pd-breadcrumb a { color: var(--accent-cyan); cursor: pointer; }
.pd-breadcrumb a:hover { text-decoration: underline; }
.pd-close {
  background: transparent; color: var(--text-secondary);
  font-size: 20px; padding: 4px 10px; border-radius: 8px;
  transition: var(--transition); line-height: 1; flex-shrink: 0;
}
.pd-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.pd-body { display: grid; grid-template-columns: 360px 1fr; }
.pd-left {
  padding: 28px 24px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.pd-image-box {
  width: 100%; aspect-ratio: 1; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; border: 1px solid var(--border);
}
.pd-image-icon { font-size: 100px; position: relative; z-index: 1; }
.pd-image-bg {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 160px; opacity: 0.07; filter: blur(6px);
}
.pd-image-box img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; position: absolute; inset: 0; }
.pd-right {
  padding: 28px 28px; display: flex; flex-direction: column; gap: 14px;
}
.pd-category-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3); border-radius: 100px;
  font-size: 12px; color: var(--accent-cyan); font-weight: 700;
}
.pd-badge-inline { padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.pd-name { font-size: 20px; font-weight: 900; line-height: 1.3; }
.pd-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent-gold); }
.pd-rating span { color: var(--text-secondary); font-size: 13px; }
.pd-divider { height: 1px; background: var(--border); flex-shrink: 0; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price { font-size: 26px; font-weight: 900; color: var(--accent-gold); }
.pd-old-price { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.pd-desc-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.pd-desc-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.pd-desc-list li::before { content: "v"; color: var(--accent-cyan); font-weight: 900; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.pd-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.pd-option-select {
  width: 100%; padding: 10px 14px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-primary); font-size: 14px; outline: none;
  font-family: inherit; cursor: pointer; transition: var(--transition);
}
.pd-option-select:focus { border-color: var(--accent-cyan); }
.pd-qty-row { display: flex; align-items: center; gap: 12px; }
.pd-qty-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.pd-qty-btn { width: 40px; height: 40px; background: var(--bg-secondary); color: var(--text-primary); font-size: 18px; transition: var(--transition); }
.pd-qty-btn:hover { background: var(--bg-card-hover); }
.pd-qty-num { width: 50px; text-align: center; font-size: 15px; font-weight: 700; background: transparent; border: none; color: var(--text-primary); outline: none; font-family: inherit; }
.pd-btn-row { display: flex; gap: 10px; }
.pd-add-btn { flex: 1; padding: 13px; background: transparent; border: 2px solid var(--accent-cyan); color: var(--accent-cyan); border-radius: 10px; font-size: 14px; font-weight: 700; transition: var(--transition); }
.pd-add-btn:hover { background: rgba(0,212,255,0.1); }
.pd-buy-btn { flex: 1; padding: 13px; background: var(--gradient-main); color: #fff; border-radius: 10px; font-size: 14px; font-weight: 700; transition: var(--transition); }
.pd-buy-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.pd-stock-row { display: flex; gap: 16px; font-size: 13px; flex-wrap: wrap; }
.pd-stock-item { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.pd-tabs-section { border-top: 1px solid var(--border); }
.pd-tabs-nav { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.pd-tab-btn { padding: 13px 24px; font-size: 14px; font-weight: 700; color: var(--text-secondary); background: transparent; border: none; border-bottom: 3px solid transparent; transition: var(--transition); cursor: pointer; font-family: inherit; }
.pd-tab-btn.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }
.pd-tab-btn:hover { color: var(--text-primary); }
.pd-tab-content { padding: 24px 28px; display: none; }
.pd-tab-content.active { display: block; }
.pd-full-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.9; white-space: pre-wrap; }
.pd-info-table { width: 100%; border-collapse: collapse; }
.pd-info-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.pd-info-table td:first-child { color: var(--text-muted); width: 120px; font-weight: 700; }
.pd-info-table td:last-child { color: var(--text-secondary); }
@media (max-width: 768px) {
  .pd-body { grid-template-columns: 1fr; }
  .pd-left { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
  .pd-image-box { max-width: 240px; }
  .pd-right { padding: 20px; }
  .pd-name { font-size: 18px; }
  .pd-price { font-size: 22px; }
}
