@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #E63F2E;
  --primary-dark: #C7331F;
  --primary-light: #FF6B5A;
  --primary-bg: #FFF5F4;
  --accent: #D4A853;
  --accent-dark: #B8903E;
  --bg: #F5F3EF;
  --bg-white: #FFFFFF;
  --bg-warm: #FAF8F5;
  --bg-card: #FFFFFF;
  --text-primary: #1A1714;
  --text-secondary: #6B6560;
  --text-muted: #9B9590;
  --text-light: #C5C0BA;
  --border: #E8E4DF;
  --border-light: #F0ECE8;
  --success: #2ECC71;
  --warning: #F39C12;
  --danger: #E74C3C;
  --info: #3498DB;
  --shadow-sm: 0 1px 3px rgba(26,23,20,0.04), 0 1px 2px rgba(26,23,20,0.06);
  --shadow-md: 0 4px 12px rgba(26,23,20,0.06), 0 2px 4px rgba(26,23,20,0.04);
  --shadow-lg: 0 12px 32px rgba(26,23,20,0.08), 0 4px 8px rgba(26,23,20,0.04);
  --shadow-xl: 0 24px 48px rgba(26,23,20,0.12), 0 8px 16px rgba(26,23,20,0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-display: 'Outfit', sans-serif;
  --font-body: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --header-height: 64px;
  --max-width: 1280px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }
ul, ol { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  height: 32px;
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  padding: 0 10px;
}
.top-bar a:hover { color: #fff; }
.top-bar-links { display: flex; align-items: center; gap: 4px; }
.top-bar-links span { color: rgba(255,255,255,0.3); }
.top-bar .highlight { color: var(--accent); }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-main {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-text em {
  font-style: normal;
  color: var(--primary);
}

/* Search */
.search-box {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-box input {
  width: 100%;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 21px;
  padding: 0 52px 0 20px;
  font-size: 14px;
  transition: border-color var(--transition);
  background: var(--bg-warm);
}
.search-box input:focus {
  border-color: var(--primary);
  background: #fff;
}
.search-box .search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--transition);
}
.search-box .search-btn:hover { background: var(--primary-dark); }
.search-hot {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  padding-left: 20px;
  font-size: 11px;
}
.search-hot span { color: var(--text-muted); }
.search-hot a { color: var(--text-secondary); transition: color var(--transition); }
.search-hot a:hover { color: var(--primary); }
.search-hot a.hot::before {
  content: 'HOT';
  font-size: 9px;
  background: var(--primary);
  color: #fff;
  padding: 1px 3px;
  border-radius: 2px;
  margin-right: 3px;
  font-family: var(--font-display);
  font-weight: 700;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.header-action-btn:hover { color: var(--primary); }
.header-action-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===== NAV BAR ===== */
.nav-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}
.nav-bar .container {
  display: flex;
  align-items: center;
  height: 44px;
  gap: 0;
}
.nav-all-cats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  position: relative;
  min-width: 200px;
  justify-content: center;
}
.nav-all-cats svg { width: 16px; height: 16px; }
.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-links a {
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* ===== CATEGORY DROPDOWN ===== */
.cat-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  display: none;
}
.cat-dropdown.show { display: block; }
.cat-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  transition: background var(--transition);
  cursor: pointer;
}
.cat-dropdown-item:hover { background: var(--primary-bg); }
.cat-dropdown-item .cat-icon {
  width: 20px;
  margin-right: 10px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat-dropdown-item .cat-icon svg {
  width: 18px;
  height: 18px;
}
.cat-dropdown-item .cat-subs {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.cat-dropdown-item .cat-subs a {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0;
  height: auto;
}
.cat-dropdown-item .cat-subs a:hover { color: var(--primary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230,63,46,0.3); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  background: var(--bg-white);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--primary); background: var(--primary-bg); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== PRODUCT CARD ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card-img {
  position: relative;
  padding-top: 100%;
  background: var(--bg);
  overflow: hidden;
}
.product-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  z-index: 1;
}
.product-card-body { padding: 12px; }
.product-card-title {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 36px;
}
.product-card-shop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.product-card-shop svg { width: 12px; height: 12px; color: var(--accent); }
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.product-card-price .current {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.product-card-price .current small {
  font-size: 12px;
  font-weight: 600;
}
.product-card-price .original {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
}
.product-card-sales {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== SECTION ===== */
.section { padding: 32px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.section-more {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.section-more:hover { color: var(--primary); }

/* ===== HERO BANNER ===== */
.hero-section {
  padding: 16px 0 0;
}
.hero-layout {
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  gap: 12px;
  height: 400px;
}
.hero-cats {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 8px 0;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.hero-cat-item {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-cat-item:hover {
  background: var(--primary-bg);
  color: var(--primary);
}
.hero-cat-item span svg { width: 16px; height: 16px; margin-right: 8px; flex-shrink: 0; }
.hero-cat-item > svg:last-child { width: 14px; margin-left: auto; opacity: 0.4; }
.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.45), rgba(0,0,0,0.2));
  pointer-events: none;
}
.hero-slide-content {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.hero-slide-content h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-slide-content p {
  font-size: 16px;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active {
  background: #fff;
  width: 24px;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-user-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.hero-user-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hero-user-btns {
  display: flex;
  gap: 8px;
}
.hero-news {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-light);
  flex: 1;
}
.hero-news h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-news-item {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color var(--transition);
}
.hero-news-item:hover { color: var(--primary); }

/* ===== FLASH SALE ===== */
.flash-sale-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.flash-sale-header .section-title { margin-bottom: 0; }
.flash-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.flash-timer span {
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ===== ICON GRID ===== */
.icon-nav-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  padding: 24px 0;
}
.icon-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  transition: transform var(--transition);
}
.icon-nav-item:hover { transform: translateY(-2px); }
.icon-nav-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-primary);
}
.icon-nav-icon svg {
  width: 24px;
  height: 24px;
}
.icon-nav-item span {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== SHOP CARD ===== */
.shop-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}
.shop-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.shop-list-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.shop-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}
.shop-info { flex: 1; }
.shop-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shop-badge {
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.shop-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}
.shop-rating {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.6);
  margin-top: 48px;
}
.footer-top {
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-contact p {
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-contact .phone {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.4; }

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 14px;
  transition: all var(--transition);
  background: var(--bg-white);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,63,46,0.08);
}
.form-input::placeholder { color: var(--text-light); }
textarea.form-input { height: auto; padding: 12px 14px; resize: vertical; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239B9590' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.tab-item {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.tab-item:hover { color: var(--primary); }
.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.tab-content { display: none; padding: 20px 0; }
.tab-content.active { display: block; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg); color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 0;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.page-btn:hover { border-color: var(--border); }
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-success { background: #E8F8F0; color: var(--success); }
.badge-warning { background: #FFF8E8; color: var(--warning); }
.badge-danger { background: #FDE8E8; color: var(--danger); }
.badge-info { background: #E8F0FD; color: var(--info); }

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
.data-table tr:hover td { background: var(--bg-warm); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  animation: toastIn 0.3s ease;
  border-left: 3px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== QUANTITY INPUT ===== */
.qty-input {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-input button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.qty-input button:hover { background: var(--bg); color: var(--primary); }
.qty-input input {
  width: 40px;
  height: 30px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}
.step.active { color: var(--primary); font-weight: 600; }
.step.active .step-num { background: var(--primary); color: #fff; }
.step.done { color: var(--success); }
.step.done .step-num { background: var(--success); color: #fff; }
.step-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
}
.step-line.done { background: var(--success); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state h3 {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== SIDEBAR LAYOUT ===== */
.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 20px 0;
}
.page-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  align-self: start;
}
.sidebar-title {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: var(--bg-warm); color: var(--text-primary); }
.sidebar-nav a.active {
  background: var(--primary-bg);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.sidebar-nav a svg { width: 16px; height: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; height: auto; }
  .hero-cats { display: none; }
  .hero-side { display: none; }
  .hero-banner { height: 300px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .icon-nav-grid { grid-template-columns: repeat(5, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .merchant-stats { grid-template-columns: repeat(2, 1fr); }
  .user-quick-actions { grid-template-columns: repeat(3, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .cat-page-layout { grid-template-columns: 1fr; }
  .cat-tree { display: none; }
  .cart-header, .cart-item { grid-template-columns: 30px 1fr 80px 120px 80px 40px; font-size: 11px; }
  .payment-methods { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-bar { font-size: 11px; }
  .top-bar-links { display: none; }
  .header-main { gap: 10px; }
  .logo-text { font-size: 18px; }
  .search-hot { display: none; }
  .nav-all-cats { display: none; }
  .nav-links { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .nav-links a { padding: 0 10px; font-size: 13px; flex-shrink: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card-body { padding: 8px; }
  .product-card-price .current { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .hero-banner { height: 200px; }
  .hero-slide-content h2 { font-size: 22px; }
  .hero-slide-content p { font-size: 13px; }
  .section-title { font-size: 18px; }
  .merchant-benefits { grid-template-columns: 1fr; }
  .merchant-hero { padding: 32px 20px; }
  .merchant-hero h1 { font-size: 24px; }
  .user-header-card { flex-direction: column; text-align: center; padding: 24px; }
  .user-header-card > div:last-child { margin-left: 0; }
  .user-quick-actions { grid-template-columns: repeat(3, 1fr); }
  .auth-card { margin: 0 12px; }
  .auth-body { padding: 20px; }
  .auth-tabs { margin: 0 20px; }
  .form-row { grid-template-columns: 1fr; }
  .steps { flex-wrap: wrap; gap: 4px; }
  .step-line { width: 24px; margin: 0 4px; }
  .cart-header { display: none; }
  .cart-item { grid-template-columns: 30px 1fr; grid-template-rows: auto auto; gap: 8px; }
  .cart-item-price, .cart-item > div:nth-child(4), .cart-item > div:nth-child(5) { font-size: 12px; }
  .checkout-section { padding: 16px; }
  .icon-nav-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .icon-nav-icon { width: 40px; height: 40px; font-size: 18px; }
  .container { padding: 0 12px; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== UTILITY ===== */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-700 { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ===== MERCHANT DASHBOARD ===== */
.merchant-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
}
.stat-card-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-card-change {
  font-size: 12px;
  margin-top: 4px;
}
.stat-card-change.up { color: var(--success); }
.stat-card-change.down { color: var(--danger); }

/* ===== ORDER STATUS ===== */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.order-status.pending { background: #FFF8E8; color: var(--warning); }
.order-status.paid { background: #E8F0FD; color: var(--info); }
.order-status.shipped { background: #F0E8FD; color: #8B5CF6; }
.order-status.done { background: #E8F8F0; color: var(--success); }
.order-status.cancelled { background: #F5F3EF; color: var(--text-muted); }

/* ===== CHECKOUT ===== */
.checkout-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 24px;
  margin-bottom: 16px;
}
.checkout-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.address-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
}
.address-card.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.address-card .name-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.address-card .addr-detail {
  font-size: 13px;
  color: var(--text-secondary);
}
.address-card .addr-default {
  display: inline-block;
  font-size: 11px;
  background: var(--primary);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
}

/* ===== PAYMENT ===== */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.payment-method {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.payment-method:hover { border-color: var(--primary); }
.payment-method.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.payment-method-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.payment-method-name {
  font-size: 14px;
  font-weight: 600;
}

/* ===== LOGIN PAGE ===== */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--bg) 50%, #F0E8FD 100%);
}
.auth-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}
.auth-header {
  padding: 32px 32px 0;
  text-align: center;
}
.auth-header .logo { justify-content: center; margin-bottom: 20px; }
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin: 0 32px;
}
.auth-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.auth-body { padding: 24px 32px 32px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 12px;
  color: var(--text-light);
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-social {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.auth-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}
.auth-social-btn:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.phone-input-group {
  display: flex;
  gap: 8px;
}
.phone-input-group .form-input { flex: 1; }
.sms-btn {
  white-space: nowrap;
  padding: 0 16px;
  font-size: 13px;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: all var(--transition);
}
.sms-btn:hover { background: var(--primary); color: #fff; }
.sms-btn:disabled { opacity: 0.5; color: var(--text-muted); border-color: var(--border); }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 20px 0;
}
.pd-gallery {
  position: sticky;
  top: 120px;
  align-self: start;
}
.pd-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1;
  margin-bottom: 12px;
}
.pd-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumbs {
  display: flex;
  gap: 8px;
}
.pd-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding-top: 8px; }
.pd-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}
.pd-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.pd-price-box {
  background: linear-gradient(135deg, #FFF5F4, #FFF0ED);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.pd-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}
.pd-price small { font-size: 16px; }
.pd-price-orig {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 12px;
}
.pd-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.pd-meta span strong { color: var(--text-primary); font-weight: 600; }
.pd-spec-group {
  margin-bottom: 16px;
}
.pd-spec-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.pd-spec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-spec-btn {
  padding: 6px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: all var(--transition);
}
.pd-spec-btn:hover { border-color: var(--primary); color: var(--primary); }
.pd-spec-btn.active {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}
.pd-spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.pd-spec-row {
  display: contents;
}
.pd-spec-row:nth-child(odd) {
  background: var(--bg-card);
}
.pd-spec-row:nth-child(even) {
  background: var(--bg);
}
.pd-spec-name,
.pd-spec-value {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.pd-spec-name {
  color: var(--text-muted);
  border-right: 1px solid var(--border-light);
}
.pd-spec-value {
  color: var(--text-secondary);
}
.pd-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.pd-shop-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== CART ===== */
.cart-table {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.cart-header {
  display: grid;
  grid-template-columns: 40px 1fr 120px 160px 100px 60px;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.cart-shop-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
}
.cart-shop-header svg { width: 18px; height: 18px; color: var(--accent); }
.cart-item {
  display: grid;
  grid-template-columns: 40px 1fr 120px 160px 100px 60px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.cart-item:hover { background: var(--bg-warm); }
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { display: flex; gap: 12px; }
.cart-item-name {
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-spec {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 4px;
  display: inline-block;
}
.cart-item-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}
.cart-item-remove {
  color: var(--text-light);
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }
.cart-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}
.cart-total-price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.cart-total-price small { font-size: 14px; }

/* ===== USER CENTER ===== */
.user-header-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.user-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-display);
}
.user-greeting h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.user-greeting p { opacity: 0.8; font-size: 14px; }
.user-quick-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.quick-action {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  cursor: pointer;
}
.quick-action:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.quick-action-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.quick-action span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== MERCHANT APPLY ===== */
.merchant-hero {
  background: linear-gradient(135deg, #1A1714 0%, #2D2520 100%);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.merchant-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,83,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.merchant-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: var(--font-display);
}
.merchant-hero p {
  font-size: 16px;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto 24px;
}
.merchant-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.benefit-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.benefit-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.benefit-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.apply-form-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.apply-form-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.apply-form-section h3 .num {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

/* ===== CATEGORY PAGE ===== */
.cat-page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 20px 0;
}
.cat-tree {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 8px 0;
  align-self: start;
}
.cat-tree-group { margin-bottom: 4px; }
.cat-tree-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}
.cat-tree-parent:hover { background: var(--bg-warm); }
.cat-tree-parent.active { color: var(--primary); background: var(--primary-bg); }
.cat-tree-parent svg { width: 18px; height: 18px; flex-shrink: 0; }
.cat-tree-children { padding: 0 16px 8px 36px; }
.cat-tree-child {
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition);
}
.cat-tree-child:hover { color: var(--primary); }
.cat-tree-child.active { color: var(--primary); font-weight: 600; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}
.filter-sort-group, .filter-price-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filter-sort-btn, .filter-price-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-white);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-sort-btn:hover, .filter-price-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-sort-btn.active, .filter-price-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.filter-bar select {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 30px 0 12px;
  font-size: 13px;
  background: var(--bg-white);
  cursor: pointer;
  color: var(--text-primary);
}

/* ===== LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-warm) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  text-align: center;
  padding: 60px 20px;
}
.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #E8F8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  color: var(--success);
}
.success-page h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.success-page p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }
