/* ============================================
   365ka.com - 海外华人中国数字商品充值平台
   Global Stylesheet V2.0
   Pure CSS - No Dependencies
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --c-primary: #954a00;
  --c-primary-light: #ff8515;
  --c-primary-hover: #7a3d00;
  --c-primary-bg: #fff5ec;
  --c-primary-gradient: linear-gradient(135deg, #ff8515, #f34900);
  --c-secondary: #aa3000;
  --c-tertiary: #865300;
  --c-gold: #e89300;

  /* Semantic */
  --c-success: #22c55e;
  --c-success-bg: #ecfdf5;
  --c-warning: #fbbf24;
  --c-warning-bg: #fffbeb;
  --c-error: #ef4444;
  --c-error-bg: #fef2f2;
  --c-info: #3b82f6;
  --c-info-bg: #eff6ff;

  /* Neutrals */
  --c-text: #1a1a1a;
  --c-text-secondary: #574335;
  --c-text-muted: #8a7263;
  --c-text-placeholder: #a89585;
  --c-border: #e4ddd6;
  --c-border-light: #f0ece8;
  --c-bg: #fbf9f8;
  --c-bg-elevated: #ffffff;
  --c-bg-muted: #f6f3f2;
  --c-bg-sunken: #f0eded;

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(149,74,0,0.04);
  --shadow-md: 0 4px 16px rgba(149,74,0,0.06);
  --shadow-lg: 0 12px 40px rgba(149,74,0,0.08);
  --shadow-xl: 0 20px 50px rgba(149,74,0,0.12);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);

  /* Layout */
  --max-w: 1200px;
  --header-h: 64px;
  --sidebar-w: 240px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font: inherit; color: inherit; border: none; outline: none; background: none;
}
button { cursor: pointer; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }

/* ---------- Utilities ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-6); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.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(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }
.grid { display: grid; }
.relative { position: relative; }

/* ---------- Typography ---------- */
.h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 20px; font-weight: 700; }
.h4 { font-size: 16px; font-weight: 600; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--c-text-muted); }
.text-primary { color: var(--c-primary); }
.text-gold { color: var(--c-gold); }
.text-error { color: var(--c-error); }
.text-success { color: var(--c-success); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.price { font-size: 24px; font-weight: 800; color: var(--c-gold); }
.price-sm { font-size: 16px; font-weight: 700; color: var(--c-gold); }
.price-del { font-size: 13px; color: var(--c-text-muted); text-decoration: line-through; }

/* ---------- Material Icons ---------- */
.mi {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; font-size: 20px;
  display: inline-block; line-height: 1; vertical-align: middle;
  text-transform: none; letter-spacing: normal; word-wrap: normal;
  white-space: nowrap; direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.mi-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.mi-sm { font-size: 16px; }
.mi-lg { font-size: 28px; }
.mi-xl { font-size: 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0 var(--sp-6); height: 44px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--c-primary-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(243,73,0,0.2);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(243,73,0,0.3); }
.btn-secondary {
  background: var(--c-bg-elevated);
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-ghost { color: var(--c-primary); padding: 0 var(--sp-3); }
.btn-ghost:hover { text-decoration: underline; }
.btn-danger { background: var(--c-error); color: #fff; }
.btn-sm { height: 36px; padding: 0 var(--sp-4); font-size: 13px; }
.btn-lg { height: 52px;line-height: 52px; padding: 0 var(--sp-10); font-size: 16px; font-weight: 700; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: 0.5; pointer-events: none; }

/* ---------- Form Elements ---------- */
.input, .select, .textarea {
  display: block; width: 100%;
  height: 44px; padding: 0 var(--sp-4);
  background: var(--c-bg-elevated);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(149,74,0,0.1);
}
.input::placeholder { color: var(--c-text-placeholder); }
.input-error { border-color: var(--c-error); }
.textarea { height: auto; min-height: 100px; padding: var(--sp-3) var(--sp-4); resize: vertical; }
.select { appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238a7263'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.form-group { margin-bottom: var(--sp-5); }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--c-text-secondary); margin-bottom: var(--sp-2); }
.form-hint { font-size: 12px; color: var(--c-text-muted); margin-top: var(--sp-1); }
.form-error-msg { font-size: 12px; color: var(--c-error); margin-top: var(--sp-1); }
.checkbox-wrap { display: flex; align-items: flex-start; gap: var(--sp-2); }
.checkbox-wrap input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--c-primary);
}

/* ---------- Cards ---------- */
.card {
  background: var(--c-bg-elevated);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: var(--sp-4); }
.card-flat { border: none; box-shadow: var(--shadow-sm); }
.card-flat:hover { box-shadow: var(--shadow-lg); }

/* ---------- Tags / Badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; font-size: 11px; font-weight: 700;
  border-radius: var(--r-full);
}
.tag-hot { background: var(--c-error); color: #fff; }
.tag-new { background: var(--c-success); color: #fff; }
.tag-sale { background: var(--c-primary-gradient); color: #fff; }
.tag-rec { background: var(--c-primary-light); color: #fff; }
.tag-outline { border: 1px solid var(--c-border); color: var(--c-text-muted); background: var(--c-bg-elevated); }

/* Status Tags */
.status { display: inline-flex; align-items: center; padding: 4px 12px; font-size: 12px; font-weight: 600; border-radius: var(--r-full); }
.status-pending { background: var(--c-primary-bg); color: var(--c-primary); }
.status-paid { background: var(--c-info-bg); color: var(--c-info); }
.status-processing { background: var(--c-warning-bg); color: var(--c-tertiary); }
.status-done { background: var(--c-success-bg); color: var(--c-success); }
.status-fail { background: var(--c-error-bg); color: var(--c-error); }
.status-closed { background: var(--c-bg-sunken); color: var(--c-text-muted); }
.status-refund { background: #f5f5f5; color: #666; }

/* ============================================
   HEADER (Shared Front-end)
   ============================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228,221,214,0.4);
}
.site-header .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--sp-6); height: 100%;
}
.site-header .logo {
  font-size: 24px; font-weight: 900; font-style: italic;
  font-family: var(--font-display);
  color: var(--c-primary-light);
  letter-spacing: -0.03em;
}
.site-header .logo span { color: var(--c-primary); }
.site-header .header-inner > .flex { gap: var(--sp-4); }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: var(--sp-1); }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--c-text-secondary);
  padding: var(--sp-2) var(--sp-3); position: relative;
  transition: color 0.2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--c-primary); font-weight: 600; }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--c-primary-gradient); border-radius: 1px;
}

/* Header Right Area */
.header-actions { display: flex; align-items: center; gap: var(--sp-4); }
.header-search {
  display: flex; align-items: center;
  background: var(--c-bg-muted); border-radius: var(--r-full);
  padding: 0 var(--sp-4); height: 38px; width: 180px;
  transition: width 0.3s, box-shadow 0.3s;
}
.header-search:focus-within { width: 240px; box-shadow: 0 0 0 2px rgba(149,74,0,0.15); }
.header-search input {
  background: none; border: none; width: 100%; height: 100%;
  font-size: 13px; padding: 0 var(--sp-2);
}
.header-search .mi { color: var(--c-text-muted); font-size: 18px; }
.currency-btn, .lang-btn {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--c-text-muted);
  padding: 6px 10px; border-radius: var(--r-full);
  transition: color 0.2s, background 0.2s;
}
.currency-btn:hover, .lang-btn:hover { color: var(--c-primary); background: var(--c-primary-bg); }

/* Currency Dropdown */
.currency-wrap { position: relative; }
.currency-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--c-bg-elevated); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: 280px; z-index: 1000; overflow: hidden;
}
.currency-dropdown.open { display: block; }
.currency-dropdown-title {
  padding: var(--sp-3) var(--sp-4); font-size: 13px; font-weight: 600;
  color: var(--c-text-muted); border-bottom: 1px solid var(--c-border-light);
}
.currency-list {
  max-height: 340px; overflow-y: auto; padding: var(--sp-1);
}
.currency-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
  font-size: 13px; color: var(--c-text-secondary); text-align: left;
  transition: background 0.15s, color 0.15s; cursor: pointer;
  border: none; background: none; width: 100%;
}
.currency-item:hover { background: var(--c-primary-bg); color: var(--c-primary); }
.currency-item.active { background: var(--c-primary-bg); color: var(--c-primary); font-weight: 600; }
.currency-item .ci-check {
  margin-left: auto; font-size: 16px; color: var(--c-primary);
  display: none;
}
.currency-item.active .ci-check { display: inline; }

/* Mobile Menu Toggle */
.mobile-toggle { display: none; padding: var(--sp-2); }
.mobile-toggle .mi { font-size: 26px; }

/* Sub-nav (categories bar) */
.sub-nav {
  background: var(--c-bg-elevated);
  border-bottom: 1px solid var(--c-border-light);
}
.sub-nav-inner {
  display: flex; align-items: center; gap: var(--sp-6);
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--sp-6); height: 44px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav a {
  font-size: 13px; font-weight: 500; color: var(--c-text-muted);
  white-space: nowrap; padding: var(--sp-2) 0;
  transition: color 0.2s;
}
.sub-nav a:hover, .sub-nav a.active { color: var(--c-primary); font-weight: 600; }

/* ============================================
   FOOTER (Shared Front-end)
   ============================================ */
.site-footer {
  background: var(--c-text); color: rgba(255,255,255,0.6);
  margin-top: var(--sp-16);
}
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  max-width: var(--max-w); margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
}
.footer-brand p { margin-top: var(--sp-3); font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); }
.footer-social .mi { font-size: 18px; color: rgba(255,255,255,0.7); }
.footer-col h4 {
  color: #fff; font-size: 14px; font-weight: 700; margin-bottom: var(--sp-4);
}
.footer-col ul li { margin-bottom: var(--sp-3); }
.footer-col ul a { font-size: 13px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--c-primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-5) var(--sp-6);
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.footer-payments { display: flex; gap: var(--sp-4); opacity: 0.4; }
.footer-payments span { font-weight: 800; font-style: italic; font-size: 16px; letter-spacing: -0.02em; }

/* ============================================
   PAGE-SPECIFIC: Home
   ============================================ */
/* Banner */
/* Hero Banner Carousel */
.hero-banner {
  position: relative; height: 420px;
  overflow: hidden;
}
.hero-slides {
  display: flex; width: 400%;
  height: 100%;
  animation: hero-slide 20s ease-in-out infinite;
}
.hero-slide {
  width: 25%; height: 100%; flex-shrink: 0;
  position: relative;
  background-size: cover; background-position: center;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.hero-slide .hero-content {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 var(--sp-12);
  color: #fff; max-width: var(--max-w); margin: 0 auto;
}
.hero-slide .hero-content h2 { font-size: 42px; font-weight: 800; line-height: 1.15; margin-bottom: var(--sp-3); text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-slide .hero-content p { font-size: 16px; opacity: 0.9; max-width: 480px; margin-bottom: var(--sp-6); text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.hero-dots {
  position: absolute; bottom: var(--sp-5); left: 50%;
  transform: translateX(-50%);
  display: flex; gap: var(--sp-2); z-index: 2;
}
.hero-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.hero-dots span.active { width: 32px; border-radius: 5px; background: #fff; }

@keyframes hero-slide {
  0%, 20%    { transform: translateX(0); }
  25%, 45%   { transform: translateX(-25%); }
  50%, 70%   { transform: translateX(-50%); }
  75%, 95%   { transform: translateX(-75%); }
  100%       { transform: translateX(0); }
}

/* Quick Buy */
.quick-buy {
  background: var(--c-bg-elevated);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
}
.quick-buy-tabs { display: flex; flex-direction: column; gap: var(--sp-2); }
.quick-buy-tab {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.quick-buy-tab:hover { background: var(--c-bg-muted); }
.quick-buy-tab.active {
  background: var(--c-primary-bg);
  color: var(--c-primary); font-weight: 600;
  border: 1px solid rgba(149,74,0,0.15);
}

/* SKU Grid */
.sku-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.sku-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-3) var(--sp-2);
  border: 2px solid var(--c-border-light);
  border-radius: var(--r-md);
  font-weight: 600; transition: all 0.2s;
  position: relative;
}
.sku-btn:hover { border-color: var(--c-primary-light); }
.sku-btn.active { border-color: var(--c-primary); background: var(--c-primary-bg); color: var(--c-primary); }
.sku-btn .sku-name { font-size: 15px; }
.sku-btn .sku-unit { font-size: 11px; color: var(--c-text-muted); font-weight: 400; }
.sku-btn .sku-tag {
  position: absolute; top: -6px; right: -6px;
  font-size: 10px; padding: 1px 6px; border-radius: var(--r-full);
  background: var(--c-error); color: #fff; font-weight: 700;
}

/* Section Title */
.section-title {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--sp-6);
}
.section-title h2 { font-size: 22px; }
.section-title .more { font-size: 13px; color: var(--c-primary); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* Product Grid */
.product-grid { display: grid; gap: var(--sp-5); }
.product-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Product Card */
.product-card { cursor: pointer; }
.product-card .card-img {
  aspect-ratio: 1; overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-bg-sunken);
  position: relative;
}
.product-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .card-img img { transform: scale(1.08); }
.product-card .card-img .tag { position: absolute; top: var(--sp-2); left: var(--sp-2); }
.product-card h3 { font-size: 14px; font-weight: 600; margin: var(--sp-3) 0 var(--sp-1); }
.product-card .product-price { font-size: 16px; font-weight: 700; color: var(--c-gold); }

/* Service Bar */
.service-bar {
  background: var(--c-bg-muted); border-radius: var(--r-lg); padding: var(--sp-8) var(--sp-6);
}
.service-item { display: flex; align-items: center; gap: var(--sp-4); }
.service-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-primary-bg);
  display: flex; align-items: center; justify-content: center;
}
.service-icon .mi { font-size: 24px; color: var(--c-primary); }
.service-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.service-item p { font-size: 12px; color: var(--c-text-muted); }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.news-card .card-img { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r-md); background: var(--c-bg-sunken); }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .card-meta { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-2); }
.news-card .card-meta .tag { font-size: 10px; }
.news-card .card-meta time { font-size: 11px; color: var(--c-text-muted); }
.news-card h3 { font-size: 15px; font-weight: 600; }
.news-card p { font-size: 13px; color: var(--c-text-muted); margin-top: var(--sp-2); }

/* Partners Bar */
.partners-bar {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-8);
  padding: var(--sp-6) 0;
}
.partners-bar span { font-weight: 800; font-style: italic; font-size: 20px; color: var(--c-text-muted); opacity: 0.35; }

/* ============================================
   PAGE-SPECIFIC: Category / Search
   ============================================ */
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: 13px; color: var(--c-text-muted); padding: var(--sp-4) 0; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { font-size: 10px; }

.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) 0;
}
.filter-group { display: flex; align-items: center; gap: var(--sp-2); }
.filter-group label { font-size: 12px; font-weight: 600; color: var(--c-text-muted); margin-right: var(--sp-2); }
.filter-btn {
  padding: 6px 16px; font-size: 13px; font-weight: 500;
  border-radius: var(--r-full); color: var(--c-text-secondary);
  background: var(--c-bg-muted);
  transition: all 0.2s;
}
.filter-btn:hover { background: var(--c-bg-sunken); }
.filter-btn.active { background: var(--c-primary); color: #fff; }

.sort-group { margin-left: auto; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-10) 0; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  background: var(--c-bg-elevated); border: 1px solid var(--c-border-light);
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.page-info { font-size: 12px; color: var(--c-text-muted); text-align: center; margin-top: var(--sp-3); }

/* ============================================
   PAGE-SPECIFIC: Product Detail
   ============================================ */
.product-gallery { display: flex; flex-direction: column; gap: var(--sp-3); }
.product-main-img {
  aspect-ratio: 1; border-radius: 20%;
  overflow: hidden; background: var(--c-bg-sunken);
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.product-thumbs button {
  aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden;
  border: 2px solid transparent; transition: border-color 0.2s;
}
.product-thumbs button.active { border-color: var(--c-primary); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info { display: flex; flex-direction: column; gap: var(--sp-6); }
.product-info .product-title { font-size: 26px; font-weight: 800; }
.product-info .product-desc { font-size: 14px; color: var(--c-text-secondary); line-height: 1.7; }

.price-box {
  background: var(--c-primary-bg); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; justify-content: space-between;
}

.qty-control {
  display: flex; align-items: center;
  border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden;
}
.qty-control button {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--c-bg-muted); transition: background 0.2s;
}
.qty-control button:hover { background: var(--c-bg-sunken); }
.qty-control input {
  width: 56px; height: 40px; text-align: center; font-weight: 700;
  border: none; border-left: 1px solid var(--c-border); border-right: 1px solid var(--c-border);
}

.guarantee-row { display: flex; align-items: center; justify-content: center; gap: var(--sp-8); padding: var(--sp-3) 0; }
.guarantee-item { display: flex; align-items: center; gap: var(--sp-1); font-size: 12px; color: var(--c-text-muted); }
.guarantee-item .mi { font-size: 16px; }

/* Tabs */
.tab-nav { display: flex; border-bottom: 2px solid var(--c-border-light); }
.tab-nav button {
  padding: var(--sp-3) var(--sp-6); font-size: 14px; font-weight: 500;
  color: var(--c-text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.2s;
}
.tab-nav button.active { color: var(--c-primary); font-weight: 600; border-bottom-color: var(--c-primary); }
.tab-content { padding: var(--sp-6) 0; }

/* ============================================
   PAGE-SPECIFIC: Checkout / Payment
   ============================================ */
.steps {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
}
.step { display: flex; align-items: center; gap: var(--sp-2); }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--c-bg-muted); color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.step.active .step-num { background: var(--c-primary-gradient); color: #fff; border: none; }
.step.done .step-num { background: var(--c-success); color: #fff; border: none; }
.step-label { font-size: 13px; font-weight: 600; color: var(--c-text-muted); }
.step.active .step-label { color: var(--c-primary); }
.step.done .step-label { color: var(--c-success); }
.step-line { width: 48px; height: 1px; background: var(--c-border); }
.step-line.done { background: var(--c-success); }

.order-section {
  background: var(--c-bg-elevated); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-5);
}
.order-section h3 {
  font-size: 16px; font-weight: 700;
  padding-left: var(--sp-3);
  border-left: 3px solid var(--c-primary);
  margin-bottom: var(--sp-5);
}

/* Payment Method Cards */
.pay-option {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 2px solid var(--c-border-light);
  border-radius: var(--r-md);
  cursor: pointer; transition: all 0.2s;
}
.pay-option:hover { border-color: var(--c-primary-light); }
.pay-option.active { border-color: var(--c-primary); background: var(--c-primary-bg); }
.pay-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--c-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pay-option.active .pay-radio { border-color: var(--c-primary); }
.pay-option.active .pay-radio::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-primary);
}

/* Summary Sidebar */
.summary-box {
  background: var(--c-bg-elevated); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--shadow-lg);
  position: sticky; top: calc(var(--header-h) + var(--sp-6));
}
.summary-row { display: flex; justify-content: space-between; padding: var(--sp-2) 0; font-size: 14px; }
.summary-total { font-size: 22px; font-weight: 800; color: var(--c-primary); }
.summary-divider { border: none; border-top: 1px solid var(--c-border-light); margin: var(--sp-3) 0; }

/* ============================================
   PAGE-SPECIFIC: Payment Result
   ============================================ */
.result-box {
  text-align: center; padding: var(--sp-16) var(--sp-6);
  max-width: 480px; margin: 0 auto;
}
.result-icon {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
}
.result-icon.success { background: var(--c-success-bg); color: var(--c-success); }
.result-icon.fail { background: var(--c-error-bg); color: var(--c-error); }
.result-icon.pending { background: var(--c-warning-bg); color: var(--c-tertiary); }
.result-icon .mi { font-size: 40px; }
.result-title { font-size: 24px; font-weight: 700; margin-bottom: var(--sp-3); }
.result-desc { font-size: 14px; color: var(--c-text-muted); margin-bottom: var(--sp-8); }
.result-actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); }

/* ============================================
   PAGE-SPECIFIC: Auth (Login / Register)
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  background: var(--c-bg-muted);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--c-bg-elevated);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  box-shadow: var(--shadow-lg);
}
.auth-card .logo { text-align: center; margin-bottom: var(--sp-8); }
.auth-card h2 { text-align: center; font-size: 22px; margin-bottom: var(--sp-6); }
.auth-footer { text-align: center; font-size: 13px; color: var(--c-text-muted); margin-top: var(--sp-5); }
.auth-footer a { color: var(--c-primary); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0; color: var(--c-text-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border-light); }

/* ============================================
   PAGE-SPECIFIC: Help Center
   ============================================ */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.help-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  padding: var(--sp-6); background: var(--c-bg-elevated);
  border-radius: var(--r-lg); border: 1px solid var(--c-border-light);
  text-align: center; transition: all 0.2s; cursor: pointer;
}
.help-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.help-card .mi { font-size: 32px; color: var(--c-primary); }
.help-card h3 { font-size: 14px; font-weight: 600; }

.accordion-item { border-bottom: 1px solid var(--c-border-light); }
.accordion-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: var(--sp-4) 0; font-size: 14px; font-weight: 600;
  text-align: left;
}
.accordion-btn .mi { transition: transform 0.2s; }
.accordion-item.open .accordion-btn .mi { transform: rotate(180deg); }
.accordion-body { padding: 0 0 var(--sp-4); font-size: 14px; color: var(--c-text-secondary); line-height: 1.7; display: none; }
.accordion-item.open .accordion-body { display: block; }

/* ============================================
   USER CENTER LAYOUT
   ============================================ */
.user-layout { display: flex; min-height: calc(100vh - var(--header-h)); }

/* User Sidebar */
.user-sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--c-bg-elevated);
  border-right: 1px solid var(--c-border-light);
  padding: var(--sp-6) 0;
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  align-self: flex-start;
  overflow-y: auto;
  z-index: 40;
}
.user-profile {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--sp-5) var(--sp-5);
  border-bottom: 1px solid var(--c-border-light);
  margin-bottom: var(--sp-4);
}
.user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-primary-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px;
}
.user-name { font-size: 14px; font-weight: 700; }
.user-email { font-size: 11px; color: var(--c-text-muted); }

.user-menu { padding: 0 var(--sp-3); }
.user-menu a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); font-size: 14px; font-weight: 500;
  color: var(--c-text-secondary);
  transition: all 0.2s;
  margin-bottom: 2px;
}
.user-menu a:hover { background: var(--c-bg-muted); color: var(--c-text); }
.user-menu a.active {
  background: var(--c-primary-bg); color: var(--c-primary);
  font-weight: 600; border-left: 3px solid var(--c-primary);
}
.user-menu a .mi { font-size: 20px; }

/* User Main Content */
.user-main {
  flex: 1;
  padding: var(--sp-6) var(--sp-8);
  max-width: 960px;
  min-width: 0;
}
.user-page-title { font-size: 22px; font-weight: 700; margin-bottom: var(--sp-2); }
.user-page-desc { font-size: 14px; color: var(--c-text-muted); margin-bottom: var(--sp-6); }

/* User Header (simplified for user center) */
.user-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-6);
}
.user-header .header-path { font-size: 13px; color: var(--c-text-muted); }
.user-header .header-right { display: flex; align-items: center; gap: var(--sp-4); }

/* Order Cards */
.order-card {
  background: var(--c-bg-elevated); border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg); padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.order-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.order-header .order-no { font-size: 13px; color: var(--c-text-muted); }
.order-body { display: flex; align-items: center; gap: var(--sp-4); }
.order-thumb { width: 56px; height: 56px; border-radius: var(--r-md); overflow: hidden; background: var(--c-bg-sunken); flex-shrink: 0; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-info { flex: 1; }
.order-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.order-info p { font-size: 12px; color: var(--c-text-muted); }
.order-amount { text-align: right; }
.order-amount .price-sm { font-size: 18px; }
.order-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3);
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border-light);
}

/* Coupon Cards */
.coupon-card {
  display: flex; border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg); overflow: hidden;
}
.coupon-left {
  width: 120px; flex-shrink: 0;
  background: var(--c-primary-gradient); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-4);
  position: relative;
}
.coupon-left::before, .coupon-left::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-bg-elevated);
}
.coupon-left::before { top: -8px; right: -8px; }
.coupon-left::after { bottom: -8px; right: -8px; }
.coupon-amount { font-size: 28px; font-weight: 800; }
.coupon-unit { font-size: 11px; opacity: 0.8; }
.coupon-right { flex: 1; padding: var(--sp-4); display: flex; flex-direction: column; justify-content: space-between; }
.coupon-right h4 { font-size: 14px; font-weight: 600; margin-bottom: var(--sp-2); }
.coupon-right p { font-size: 12px; color: var(--c-text-muted); }
.coupon-card.used, .coupon-card.expired { opacity: 0.5; filter: grayscale(0.6); }

/* Timeline */
.timeline { padding-left: var(--sp-6); border-left: 2px solid var(--c-border-light); }
.timeline-item { position: relative; padding-bottom: var(--sp-5); padding-left: var(--sp-5); }
.timeline-item::before {
  content: ''; position: absolute;
  left: calc(-1 * var(--sp-6) - 5px); top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-border); border: 2px solid var(--c-bg-elevated);
}
.timeline-item.active::before { background: var(--c-primary); }
.timeline-item.done::before { background: var(--c-success); }
.timeline-time { font-size: 12px; color: var(--c-text-muted); }
.timeline-text { font-size: 14px; font-weight: 500; }

/* Tabs (generic) */
.tabs { display: flex; gap: var(--sp-1); margin-bottom: var(--sp-5); }
.tab-btn {
  padding: var(--sp-2) var(--sp-5); font-size: 14px; font-weight: 500;
  border-radius: var(--r-full); color: var(--c-text-muted);
  transition: all 0.2s; border: 1px solid transparent;
}
.tab-btn:hover { background: var(--c-bg-muted); }
.tab-btn.active {
  background: var(--c-primary); color: #fff;
  font-weight: 600;
}

/* Empty State */
.empty-state {
  text-align: center; padding: var(--sp-16) var(--sp-6);
  color: var(--c-text-muted);
}
.empty-state .mi { font-size: 64px; color: var(--c-border); margin-bottom: var(--sp-4); display: block; }
.empty-state p { font-size: 14px; margin-bottom: var(--sp-5); }

/* ============================================
   FAB (Floating Action Button)
   ============================================ */
.fab-support {
  position: fixed; bottom: var(--sp-8); right: var(--sp-8);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--c-primary-gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab-support:hover { transform: scale(1.08); box-shadow: var(--shadow-xl); }
.fab-support .mi { font-size: 26px; }

/* Back to Top */
.fab-top {
  position: fixed; bottom: calc(var(--sp-8) + 68px); right: var(--sp-8);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-bg-elevated); color: var(--c-text-muted);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 90;
  transition: opacity 0.2s;
  opacity: 0; pointer-events: none;
}
.fab-top.show { opacity: 1; pointer-events: auto; }

/* ============================================
   Announcement Bar
   ============================================ */
.announce-bar {
  background: var(--c-text);
  color: rgba(255,255,255,0.85);
  font-size: 13px; text-align: center;
  padding: var(--sp-2) var(--sp-4);
  position: relative;
}
.announce-close {
  position: absolute; right: var(--sp-4); top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
}

/* ============================================
   Two-column Layout Helper
   ============================================ */
.layout-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8);
  align-items: start;
}
.layout-main-side {
  display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-8);
  align-items: start;
}
.layout-side-main {
  display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-8);
  align-items: start;
}
.layout-5-7 {
  display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-8);
  align-items: start;
}

/* ============================================
   Article Page
   ============================================ */
.article-content {
  max-width: 780px; margin: 0 auto;
  font-size: 15px; line-height: 1.8; color: var(--c-text-secondary);
}
.tab-content.article-content {
  max-width: none; margin: 0;
}
.article-content h2 { font-size: 20px; margin: var(--sp-8) 0 var(--sp-4); }
.article-content h3 { font-size: 17px; margin: var(--sp-6) 0 var(--sp-3); }
.article-content p { margin-bottom: var(--sp-4); }
.article-content img { border-radius: var(--r-md); margin: var(--sp-5) 0; }
.article-content ul, .article-content ol { padding-left: var(--sp-6); margin-bottom: var(--sp-4); }
.article-content li { margin-bottom: var(--sp-2); }
.article-meta { display: flex; align-items: center; gap: var(--sp-4); font-size: 13px; color: var(--c-text-muted); margin-bottom: var(--sp-6); }

/* ============================================
   RESPONSIVE: Tablet (<=1024px)
   ============================================ */
@media (max-width: 1024px) {
  .product-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .service-bar { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .layout-main-side { grid-template-columns: 1fr; }
  .layout-5-7 { grid-template-columns: 1fr; }
  .layout-side-main { grid-template-columns: 1fr; }
  .sku-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-search { width: 180px; }
}

/* ============================================
   RESPONSIVE: Mobile (<=768px)
   ============================================ */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .container { padding: 0 var(--sp-4); }
  .h1 { font-size: 24px; }
  .h2 { font-size: 20px; }

  /* Header */
  .header-search { display: none; }
  .currency-btn span:last-child, .lang-btn span:last-child { display: none; }
  .currency-dropdown { width: 260px; right: -20px; }

  /* Hero */
  .hero-banner { height: 240px; }
  .hero-slide .hero-content { padding: 0 var(--sp-5); }
  .hero-slide .hero-content h2 { font-size: 22px; }
  .hero-slide .hero-content p { font-size: 13px; max-width: 300px; }
  .hero-slide .hero-content .btn { height: 40px; font-size: 13px; padding: 0 var(--sp-6); }

  /* Quick Buy */
  .quick-buy { padding: var(--sp-5); }
  .quick-buy .flex { flex-direction: column; }
  .sku-grid { grid-template-columns: repeat(2, 1fr); }

  /* Product Grids */
  .product-grid.cols-6,
  .product-grid.cols-4,
  .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }

  /* Service Bar */
  .service-bar { grid-template-columns: 1fr 1fr; gap: var(--sp-4); padding: var(--sp-5); }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); }

  /* Layout */
  .layout-2col { grid-template-columns: 1fr; }

  /* User Center Mobile */
  .user-sidebar { display: none; }
  .user-sidebar.open {
    display: flex; flex-direction: column;
    position: fixed; left: 0; top: var(--header-h); bottom: 0;
    width: var(--sidebar-w); z-index: 200;
    box-shadow: var(--shadow-xl);
  }
  .user-main { margin-left: 0; padding: var(--sp-4); }

  /* User mobile nav */
  .user-mobile-nav {
    display: flex; overflow-x: auto; gap: var(--sp-2);
    padding: var(--sp-3) 0; margin-bottom: var(--sp-4);
    -webkit-overflow-scrolling: touch;
  }
  .user-mobile-nav::-webkit-scrollbar { display: none; }
  .user-mobile-nav a {
    flex-shrink: 0; padding: var(--sp-2) var(--sp-4);
    font-size: 13px; font-weight: 500; border-radius: var(--r-full);
    background: var(--c-bg-muted); white-space: nowrap;
  }
  .user-mobile-nav a.active { background: var(--c-primary); color: #fff; }

  /* Checkout mobile */
  .steps { gap: var(--sp-1); }
  .step-line { width: 20px; }
  .step-label { font-size: 11px; }

  /* Auth */
  .auth-card { padding: var(--sp-6); border-radius: var(--r-lg); }

  /* FAB */
  .fab-support { width: 48px; height: 48px; bottom: var(--sp-4); right: var(--sp-4); }
  .fab-support .mi { font-size: 22px; }
  .fab-top { bottom: calc(var(--sp-4) + 56px); right: var(--sp-4); width: 36px; height: 36px; }

  /* Filter */
  .filter-bar { gap: var(--sp-2); }
  .sort-group { margin-left: 0; width: 100%; }

  /* Partners */
  .partners-bar { flex-wrap: wrap; gap: var(--sp-4); }

  /* Help */
  .help-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE: Small Mobile (<=480px)
   ============================================ */
@media (max-width: 480px) {
  .product-grid.cols-6,
  .product-grid.cols-4,
  .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .help-grid { grid-template-columns: 1fr; }
  .hero-banner { height: 160px; }
  .coupon-card { flex-direction: column; }
  .coupon-left { width: 100%; flex-direction: row; gap: var(--sp-2); padding: var(--sp-3); }
  .coupon-left::before, .coupon-left::after { display: none; }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4);
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 280px; background: var(--c-bg-elevated);
  padding: var(--sp-6); z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .logo { margin-bottom: var(--sp-6); }
.mobile-menu nav a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  font-size: 15px; font-weight: 500; margin-bottom: 2px;
}
.mobile-menu nav a:hover { background: var(--c-bg-muted); }
.mobile-menu nav a.active { color: var(--c-primary); font-weight: 600; background: var(--c-primary-bg); }

/* H5 bottom purchase bar (product detail) */
.mobile-buy-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px; background: var(--c-bg-elevated);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  align-items: center; justify-content: space-between;
  padding: 0 var(--sp-4); z-index: 80;
}
@media (max-width: 768px) {
  .mobile-buy-bar { display: flex; }
}
.mobile-buy-bar .price { font-size: 20px; }
.mobile-buy-bar .btn { height: 40px; font-size: 14px; }

/* ============================================
   BRIDGE: Additional classes used in HTML
   ============================================ */

/* -- Header is sticky, announce-bar is in normal flow above it -- */

/* -- Section Helpers -- */
.section { padding: var(--sp-10) 0; }
.section-gray { background: var(--c-bg-muted); }
.section-more {
  font-size: 13px; color: var(--c-primary); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  transition: opacity 0.2s;
}
.section-more:hover { opacity: 0.75; }

/* -- Quick Buy Layout -- */
.quick-buy-inner { display: flex; gap: var(--sp-6); }
.quick-buy-left { width: 200px; flex-shrink: 0; }
.quick-buy-right { flex: 1; }
.quick-tabs { display: flex; flex-direction: column; gap: var(--sp-2); }
.quick-tab {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); font-size: 14px; font-weight: 500;
  transition: all 0.2s; text-align: left;
}
.quick-tab:hover { background: var(--c-bg-muted); }
.quick-tab.active {
  background: var(--c-primary-bg); color: var(--c-primary);
  font-weight: 600; border: 1px solid rgba(149,74,0,0.15);
}
.quick-form { display: flex; flex-direction: column; gap: var(--sp-4); }

/* -- SKU Item (alias for sku-btn) -- */
.sku-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--sp-3) var(--sp-2);
  border: 2px solid var(--c-border-light); border-radius: var(--r-md);
  font-weight: 600; font-size: 14px; transition: all 0.2s;
}
.sku-item:hover { border-color: var(--c-primary-light); }
.sku-item.active { border-color: var(--c-primary); background: var(--c-primary-bg); color: var(--c-primary); }

/* -- Form Input/Select aliases -- */
.form-input, .form-select {
  display: block; width: 100%;
  height: 44px; padding: 0 var(--sp-4);
  background: var(--c-bg-elevated);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(149,74,0,0.1);
}
.form-input::placeholder { color: var(--c-text-placeholder); }
.form-select {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238a7263'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* -- Price Display (Quick Buy) -- */
.price-display {
  background: var(--c-bg-muted); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
}
.price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-1) 0; font-size: 14px;
}
.price-label { color: var(--c-text-muted); font-size: 13px; }
.price-original { text-decoration: line-through; color: var(--c-text-muted); font-size: 14px; }
.price-actual { font-size: 22px; font-weight: 800; color: var(--c-primary); }

/* -- Product Card (alternate class names) -- */
.product-card .product-img {
  aspect-ratio: 1; overflow: hidden; border-radius: 20%;
  background: var(--c-bg-sunken); position: relative;
}
.product-card .product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-card .product-tag {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  display: inline-flex; align-items: center; padding: 2px 10px;
  font-size: 11px; font-weight: 700; border-radius: var(--r-full);
  background: var(--c-primary-gradient); color: #fff;
}
.product-card .product-info { padding: var(--sp-3) 0; }
.product-card .product-name {
  font-size: 14px; font-weight: 600; margin-bottom: var(--sp-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .product-desc {
  font-size: 12px; color: var(--c-text-muted); margin-bottom: var(--sp-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .product-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--sp-2);
}

/* -- News Card (alternate class names used in index.html) -- */
.news-card .news-img {
  aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r-md);
  background: var(--c-bg-sunken);
  background-size: cover; background-position: center;
}
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-info { padding: var(--sp-3) 0; }
.news-tag {
  display: inline-flex; align-items: center; padding: 2px 10px;
  font-size: 11px; font-weight: 700; border-radius: var(--r-full);
  background: var(--c-primary-bg); color: var(--c-primary);
}
.news-card .news-info h3 { font-size: 15px; font-weight: 600; margin: var(--sp-2) 0 var(--sp-1); }
.news-card .news-info p {
  font-size: 13px; color: var(--c-text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-date { font-size: 12px; color: var(--c-text-muted); margin-top: var(--sp-2); display: block; }

/* -- Partners (index.html) -- */
.partners-inner { display: flex; align-items: center; gap: var(--sp-8); }
.partners-stat { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.partners-num { font-size: 36px; font-weight: 900; color: var(--c-primary); line-height: 1; }
.partners-stat span { font-size: 13px; color: var(--c-text-muted); }
.partners-list { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.partner-logo {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md);
  font-weight: 800; font-size: 14px; color: var(--c-text-muted);
  min-width: 80px; text-align: center;
}

/* -- Service Grid (index.html uses .service-grid inside .service-bar) -- */
.service-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6);
}
.service-grid .service-item .mi {
  font-size: 28px; color: var(--c-primary);
}

/* -- Sub Nav with .container -- */
.sub-nav .container {
  display: flex; align-items: center; gap: var(--sp-6);
  height: 44px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.sub-nav .container::-webkit-scrollbar { display: none; }

/* -- Breadcrumb with .container -- */
.breadcrumb .container {
  display: flex; align-items: center; gap: var(--sp-2);
}

/* -- Page Title Section (category.html) -- */
.page-title-section { padding: var(--sp-5) 0 var(--sp-2); }
.page-title { font-size: 26px; font-weight: 800; }
.page-desc { font-size: 14px; color: var(--c-text-muted); margin-top: var(--sp-2); }

/* -- Filter Section -- */
.filter-section { padding-bottom: var(--sp-2); }
.filter-label {
  font-size: 13px; font-weight: 600; color: var(--c-text-muted);
  margin-right: var(--sp-2); white-space: nowrap;
}

/* -- Pagination Extras -- */
.pagination-btns { display: flex; align-items: center; gap: var(--sp-2); }
.page-dots { color: var(--c-text-muted); font-size: 14px; padding: 0 var(--sp-1); }
.page-next .mi { font-size: 18px; }
.pagination-info { font-size: 12px; color: var(--c-text-muted); margin-left: var(--sp-4); }

/* -- Search Page -- */
.search-hero {
  background: var(--c-primary-gradient); padding: var(--sp-12) 0 var(--sp-10);
}
.search-box {
  display: flex; align-items: center;
  background: var(--c-bg-elevated); border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
  max-width: 640px; margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.search-box .mi { color: var(--c-text-muted); font-size: 22px; margin-right: var(--sp-2); }
.search-input {
  flex: 1; border: none; background: none; font-size: 16px;
  height: 44px; outline: none;
}
.search-input::placeholder { color: var(--c-text-placeholder); }
.search-box .btn { border-radius: var(--r-full); height: 44px; }
.hot-keywords {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
  max-width: 640px; margin: var(--sp-4) auto 0;
}
.hot-label { font-size: 13px; color: rgba(255,255,255,0.7); white-space: nowrap; }
.hot-tag {
  display: inline-block; padding: 4px 14px; font-size: 13px;
  border-radius: var(--r-full); background: rgba(255,255,255,0.15);
  color: #fff; transition: background 0.2s;
}
.hot-tag:hover { background: rgba(255,255,255,0.25); }
.search-results { padding-top: var(--sp-6); }
.search-result-title { font-size: 15px; color: var(--c-text-secondary); margin-bottom: var(--sp-6); }
.search-result-title strong { color: var(--c-primary); font-weight: 700; }
.search-empty { padding-top: var(--sp-6); }
.empty-icon { font-size: 64px !important; color: var(--c-border) !important; }
.empty-recommend { margin-top: var(--sp-8); text-align: left; }
.empty-recommend h4 { font-size: 16px; font-weight: 700; margin-bottom: var(--sp-4); }

/* -- Password Strength (register.html) -- */
.pw-strength { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); align-items: center; }
.pw-strength-seg {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--c-border-light); transition: background 0.3s;
}
.pw-strength-seg.weak { background: var(--c-error); }
.pw-strength-seg.medium { background: var(--c-warning); }
.pw-strength-seg.strong { background: var(--c-success); }
.pw-strength-label { font-size: 12px; color: var(--c-text-muted); white-space: nowrap; }

/* -- Code Row (forgot-password.html) -- */
.code-row { display: flex; gap: var(--sp-3); }
.code-row .input, .code-row .form-input { flex: 1; }
.code-row .btn { flex-shrink: 0; white-space: nowrap; }

/* -- Sidebar Toggle -- */
.sidebar-toggle { display: none; padding: var(--sp-2); }

/* ============================================
   RESPONSIVE: Quick Buy Mobile Fix
   ============================================ */
@media (max-width: 768px) {
  .quick-buy-inner { flex-direction: column; }
  .quick-buy-left { width: 100%; }
  .quick-tabs { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .quick-tabs::-webkit-scrollbar { display: none; }
  .quick-tab { white-space: nowrap; flex-shrink: 0; }
  .search-hero { padding: var(--sp-8) 0 var(--sp-6); }
  .search-box { margin: 0 var(--sp-4); }
  .hot-keywords { margin: var(--sp-3) var(--sp-4) 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .partners-inner { flex-direction: column; gap: var(--sp-4); }
  .sidebar-toggle { display: block !important; }
}
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .search-box { flex-direction: column; border-radius: var(--r-lg); padding: var(--sp-3); }
  .search-box .mi { display: none; }
  .search-input { width: 100%; }
  .search-box .btn { width: 100%; border-radius: var(--r-full); }
}
