/* ═══════════════════════════════════════════════════
   CSMG Shop — 全面重设计
   Professional B2B Sourcing Marketplace
   Mobile-First · Premium · Trustworthy
   ═══════════════════════════════════════════════════ */

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

:root {
  /* Brand Colors */
  --csmg-navy:       #0A1628;
  --csmg-navy-light: #1A2A4A;
  --csmg-gold:       #C8963E;
  --csmg-gold-light: #F5E6C8;
  --csmg-gold-bg:    #FBF6EC;

  /* Neutrals */
  --white:           #FFFFFF;
  --bg-main:         #FAFBFC;
  --bg-card:         #FFFFFF;
  --bg-subtle:       #F3F5F8;
  --border:          #E6EAF0;
  --border-light:    #F0F2F5;

  /* Text */
  --text-primary:    #0A1628;
  --text-secondary:  #4A5568;
  --text-muted:      #8896AA;
  --text-inverse:    #FFFFFF;

  /* Functional */
  --accent-blue:     #3B82F6;
  --accent-green:    #10B981;
  --accent-red:      #EF4444;
  --accent-amber:    #F59E0B;
  --rating:          #F6B83D;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(10,22,40,0.04);
  --shadow-md:  0 4px 12px rgba(10,22,40,0.06);
  --shadow-lg:  0 8px 30px rgba(10,22,40,0.08);
  --shadow-xl:  0 16px 48px rgba(10,22,40,0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ══════════════════════════════════════════════
   TOP BAR — Compact info strip
   ══════════════════════════════════════════════ */
.top-bar {
  background: var(--csmg-navy);
  height: 32px;
  display: flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar span { color: rgba(255,255,255,0.55); }
.top-bar a {
  color: rgba(255,255,255,0.5);
  margin-left: 16px;
  transition: color 0.2s;
}
.top-bar a:hover { color: var(--csmg-gold); }
.top-bar-links { display: none; }
@media (min-width: 768px) { .top-bar-links { display: flex; } }

/* ══════════════════════════════════════════════
   HEADER — Sticky, clean
   ══════════════════════════════════════════════ */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
}
.main-header .container {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 12px;
}

/* Logo */
.site-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--csmg-navy);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.site-logo .logo-accent {
  color: var(--csmg-gold);
  font-weight: 300;
}
.site-logo .logo-dot {
  width: 6px; height: 6px;
  background: var(--csmg-gold);
  border-radius: 50%;
  display: inline-block;
}

/* Search */
.search-wrap {
  flex: 1;
  max-width: 420px;
  display: none;
}
@media (min-width: 640px) { .search-wrap { display: block; } }

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: all 0.25s var(--ease-out);
}
.search-box:focus-within {
  border-color: var(--csmg-gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,150,62,0.1);
}
.search-box .search-icon {
  color: var(--text-muted);
  font-size: 14px;
  margin-right: 8px;
  flex-shrink: 0;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 0;
  font-size: 13px;
  outline: none;
  color: var(--text-primary);
}
.search-box input::placeholder { color: var(--text-muted); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}
.header-btn i { font-size: 18px; margin-bottom: 1px; color: var(--text-primary); }
.header-btn span { line-height: 1; }
.header-btn:hover { color: var(--csmg-gold); }
.header-btn:hover i { color: var(--csmg-gold); }

.header-btn .btn-label-desktop { display: none; }
@media (min-width: 768px) { .header-btn .btn-label-desktop { display: inline; } }
@media (max-width: 767px) { .header-btn .btn-label-mobile { display: inline; } }
@media (min-width: 768px) { .header-btn .btn-label-mobile { display: none; } }

/* Cart Badge */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: 0;
  right: 2px;
  background: var(--csmg-gold);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
}
@media (min-width: 768px) { .mobile-toggle { display: none; } }

/* Mobile Search (shown on small screens) */
.mobile-search-bar {
  display: block;
  padding: 8px 16px 12px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
@media (min-width: 640px) { .mobile-search-bar { display: none; } }

/* ══════════════════════════════════════════════
   NAV — Category navigation
   ══════════════════════════════════════════════ */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav .container {
  display: flex;
  align-items: center;
  gap: 0;
  height: 40px;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  height: 100%;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--csmg-navy);
  border-bottom-color: var(--csmg-gold);
}
.main-nav a i { font-size: 13px; }

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--csmg-navy) 0%, var(--csmg-navy-light) 100%);
  padding: 48px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(200,150,62,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(59,130,246,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-inverse);
  margin-bottom: 8px;
  position: relative;
}
.hero h1 .hero-highlight {
  color: var(--csmg-gold);
}
.hero p {
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
  position: relative;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--csmg-gold);
  color: var(--csmg-navy);
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  transition: all 0.3s var(--ease-out);
  position: relative;
}
.hero-btn:hover {
  background: #D4A84B;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,150,62,0.25);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  position: relative;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-inverse);
}
.hero-stat span {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════
   SECTION COMMON
   ══════════════════════════════════════════════ */
.section {
  margin-bottom: 24px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.section-header .section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--csmg-gold);
  transition: color 0.2s;
}
.section-header .section-link:hover { color: #B8863A; }

/* ══════════════════════════════════════════════
   CATEGORY GRID
   ══════════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}
.cat-card:hover {
  border-color: var(--csmg-gold-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--csmg-gold-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--csmg-gold);
  margin-bottom: 8px;
  transition: all 0.3s;
}
.cat-card:hover .cat-icon {
  background: var(--csmg-gold);
  color: var(--white);
}
.cat-card h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.cat-card p {
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   PRODUCT GRID
   ══════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 480px) { .product-grid { gap: 14px; } }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card .card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-subtle);
}
.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .card-image img { transform: scale(1.06); }

.product-card .card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--csmg-gold);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.product-card .card-badge.sale {
  background: var(--accent-red);
}

.product-card .card-body {
  padding: 12px 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.product-card .card-title:hover { color: var(--csmg-gold); }

.product-card .card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 10px;
}
.product-card .card-rating .stars { color: var(--rating); }
.product-card .card-rating .count { color: var(--text-muted); }

.product-card .card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 4px;
}
.product-card .card-price {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--csmg-navy);
  letter-spacing: -0.02em;
}
.product-card .card-price-original {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-card .card-price-discount {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(16,185,129,0.1);
  padding: 1px 6px;
  border-radius: 3px;
}

.product-card .card-shipping {
  font-size: 11px;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.product-card .btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 0;
  background: var(--csmg-navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  margin-top: auto;
}
.product-card .btn-add-cart:hover {
  background: var(--csmg-navy-light);
}
.product-card .btn-add-cart i { font-size: 14px; }

/* ══════════════════════════════════════════════
   FLASH DEAL BAR
   ══════════════════════════════════════════════ */
.deal-bar {
  background: linear-gradient(135deg, #FBF6EC 0%, #F5E6C8 100%);
  border: 1px solid var(--csmg-gold-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.deal-bar h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--csmg-navy);
}
.deal-bar h4 i { color: var(--csmg-gold); }
.deal-bar .countdown {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.05em;
}
.deal-bar .deal-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--csmg-gold);
  transition: color 0.2s;
}
.deal-bar .deal-cta:hover { color: #B8863A; }

/* ══════════════════════════════════════════════
   PRODUCT DETAIL
   ══════════════════════════════════════════════ */
.detail-page { padding: 20px 0 40px; }

.detail-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.detail-breadcrumb a { color: var(--text-muted); }
.detail-breadcrumb a:hover { color: var(--csmg-gold); }
.detail-breadcrumb span { color: var(--text-secondary); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Gallery */
.detail-gallery {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.detail-gallery .main-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}
.detail-gallery .main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.detail-gallery .thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.detail-gallery .thumb {
  width: 52px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--white);
  transition: border-color 0.2s;
}
.detail-gallery .thumb.active { border-color: var(--csmg-gold); }
.detail-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.detail-meta .rating-stars { color: var(--rating); }

.detail-buy-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.detail-buy-box .price-main {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--csmg-navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.detail-buy-box .price-original {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 10px;
}
.detail-buy-box .price-save {
  font-size: 13px;
  color: var(--accent-green);
  margin: 4px 0 8px;
}
.detail-buy-box .shipping-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.detail-buy-box .stock-status {
  font-size: 13px;
  color: var(--accent-green);
  font-weight: 500;
  margin-bottom: 14px;
}
.detail-buy-box .qty-select {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.detail-buy-box .qty-select select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  background: var(--white);
}
.btn-primary-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--csmg-gold);
  color: var(--csmg-navy);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  margin-bottom: 8px;
}
.btn-primary-lg:hover {
  background: #D4A84B;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,150,62,0.2);
}
.btn-secondary-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--csmg-navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary-lg:hover { border-color: var(--csmg-gold); color: var(--csmg-gold); }

.detail-description {
  margin-top: 24px;
}
.detail-description h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.detail-description p, .detail-description li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════════
   CART
   ══════════════════════════════════════════════ */
.cart-page { padding: 24px 0; min-height: 60vh; }
.cart-page h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin-bottom: 20px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .cart-layout { grid-template-columns: 1fr 340px; } }

.cart-items { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; }
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-subtle);
}
.cart-item .item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .item-body { flex: 1; min-width: 0; }
.cart-item .item-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item .item-title:hover { color: var(--csmg-gold); }
.cart-item .item-stock { font-size: 11px; color: var(--accent-green); margin-bottom: 8px; }
.cart-item .item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cart-item .item-actions select {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  background: var(--white);
}
.cart-item .item-actions .remove-link {
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.cart-item .item-actions .remove-link:hover { color: var(--accent-red); }
.cart-item .item-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  align-self: flex-start;
}

.cart-summary {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 80px;
}
.cart-summary h5 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.cart-summary .summary-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--csmg-navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.25s var(--ease-out);
}
.btn-checkout:hover { background: var(--csmg-navy-light); }

/* ══════════════════════════════════════════════
   CHECKOUT & ORDER
   ══════════════════════════════════════════════ */
.checkout-page { padding: 24px 0; }
.checkout-page h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin-bottom: 20px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .checkout-layout { grid-template-columns: 1fr 360px; } }

.checkout-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}
.checkout-form .form-section {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-form .form-section i { color: var(--csmg-gold); }
.checkout-form .form-group { margin-bottom: 14px; }
.checkout-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.checkout-form .form-input, .checkout-form .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s;
}
.checkout-form .form-input:focus, .checkout-form .form-select:focus {
  border-color: var(--csmg-gold);
  box-shadow: 0 0 0 3px rgba(200,150,62,0.1);
}
.btn-place-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--csmg-navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  margin-top: 8px;
}
.btn-place-order:hover { background: var(--csmg-navy-light); }

.order-review {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.order-review h5 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.order-review .review-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════
   AUTH
   ══════════════════════════════════════════════ */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 40px 16px;
}
.auth-box {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
}
.auth-box .auth-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-box .auth-logo h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-box .auth-logo .auth-brand { color: var(--text-muted); font-weight: 300; }
.auth-box h5 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.auth-box .form-group { margin-bottom: 14px; }
.auth-box label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.auth-box .form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}
.auth-box .form-input:focus { border-color: var(--csmg-gold); }
.btn-auth {
  width: 100%;
  padding: 12px;
  background: var(--csmg-navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}
.btn-auth:hover { background: var(--csmg-navy-light); }
.auth-divider {
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-link a { color: var(--csmg-gold); font-weight: 500; }

/* ══════════════════════════════════════════════
   ORDERS
   ══════════════════════════════════════════════ */
.orders-page { padding: 24px 0; }
.orders-page h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin-bottom: 20px;
}

.orders-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.orders-table th {
  background: var(--bg-subtle);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.orders-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.orders-table tr:last-child td { border-bottom: none; }

.order-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.order-status.pending { background: var(--bg-subtle); color: var(--text-muted); }
.order-status.paid { background: rgba(16,185,129,0.1); color: var(--accent-green); }
.order-status.shipped { background: rgba(59,130,246,0.1); color: var(--accent-blue); }
.order-status.delivered { background: rgba(16,185,129,0.1); color: var(--accent-green); }
.order-status.cancelled { background: rgba(239,68,68,0.1); color: var(--accent-red); }

/* ══════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state .empty-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.empty-state h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--csmg-navy);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-browse:hover { background: var(--csmg-navy-light); }

/* ══════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════ */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}
.pagination-wrap a, .pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--white);
  transition: all 0.2s;
}
.pagination-wrap a:hover {
  border-color: var(--csmg-gold);
  color: var(--csmg-gold);
}
.pagination-wrap .current {
  background: var(--csmg-navy);
  border-color: var(--csmg-navy);
  color: var(--white);
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   ALERT
   ══════════════════════════════════════════════ */
.alert {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.alert.success { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); color: #065F46; }
.alert.error { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); color: #991B1B; }
.alert.info { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.05); color: #1E40AF; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--csmg-navy);
  padding: 48px 0 24px;
  margin-top: 60px;
  color: rgba(255,255,255,0.7);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .site-footer .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }

.site-footer .footer-brand h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.site-footer .footer-brand h4 .gold { color: var(--csmg-gold); }
.site-footer .footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}
.site-footer h5 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--csmg-gold);
  margin-bottom: 12px;
}
.site-footer ul li { margin-bottom: 6px; }
.site-footer ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.site-footer ul li a:hover { color: var(--csmg-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  margin-top: 32px;
  font-size: 11px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════
   MOBILE HAMBURGER MENU
   ══════════════════════════════════════════════ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.open { display: block; opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--white);
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-out);
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu .menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu .menu-header .menu-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.mobile-menu .menu-header .menu-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  padding: 4px;
}
.mobile-menu .menu-user {
  padding: 12px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu .menu-user .user-name {
  font-weight: 600;
  font-size: 14px;
}
.mobile-menu .menu-user .user-action {
  font-size: 12px;
  color: var(--csmg-gold);
}
.mobile-menu .menu-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}
.mobile-menu .menu-nav a:hover { color: var(--csmg-gold); }
.mobile-menu .menu-nav a i { width: 20px; color: var(--text-muted); }

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-card {
  animation: fadeInUp 0.4s var(--ease-out) both;
}
.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.1s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.2s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }
.product-card:nth-child(7) { animation-delay: 0.3s; }
.product-card:nth-child(8) { animation-delay: 0.35s; }
.product-card:nth-child(9) { animation-delay: 0.4s; }
.product-card:nth-child(10) { animation-delay: 0.45s; }

.hero { animation: fadeIn 0.6s var(--ease-out); }

/* ─── User Dropdown ─── */
.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 180px;
  z-index: 200;
  margin-top: 8px;
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
}
.user-dropdown.show { display: block; }
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-primary);
  transition: background 0.2s;
}
.user-dropdown a:hover { background: var(--bg-subtle); }
.user-dropdown a i { color: var(--text-muted); width: 18px; }
.user-dropdown hr {
  margin: 4px 12px;
  border: none;
  border-top: 1px solid var(--border-light);
}

/* ══════════════════════════════════════════════
   UTILITY HELPERS
   ══════════════════════════════════════════════ */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
