/* ============================================
   NZTECH — COMPLETE DESIGN SYSTEM v2.0
   Inspired by Stripe, Vercel, Linear, Apple
   ============================================ */

/* --- Design Tokens --- */
:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --secondary: #2563EB;
  --secondary-hover: #1D4ED8;
  --secondary-light: #DBEAFE;
  --accent: #06B6D4;
  --accent-hover: #0891B2;
  --accent-light: #CFFAFE;
  --bg: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-dark: #111827;
  --bg-card: #FFFFFF;
  --text: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --error: #EF4444;
  --error-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.08), 0 2px 4px -2px rgba(15,23,42,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -4px rgba(15,23,42,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.05);
  --shadow-glow: 0 0 20px rgba(37,99,235,0.15);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Inter', -apple-system, sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-height: 72px;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --secondary-rgb: 37, 99, 235;
  /* Compatibility aliases (for inline styles in older pages) */
  --bg-primary: var(--bg-card);
  --card-bg: var(--bg-card);
  --text-primary: var(--text);
  --bg-hover: var(--bg-tertiary);
  --transition-fast: var(--transition);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary-hover); }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; border-radius: var(--radius-sm); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--text); }
.heading-hero { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.heading-section { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
.heading-card { font-size: 1.125rem; font-weight: 600; }
.text-body { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.6875rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Container & Layout --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

.section { padding: 80px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }
.section-sm { padding: 40px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* --- Divider --- */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.divider-light { height: 1px; background: var(--border-light); }

/* --- Spacing Utilities --- */
.m-0 { margin: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.p-0 { padding: 0; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.relative { position: relative; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.875rem;
  padding: 10px 20px; border-radius: var(--radius-md); border: none;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: all var(--transition); position: relative; overflow: hidden;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #1D4ED8);
  color: white; box-shadow: 0 1px 3px rgba(37,99,235,0.3), 0 1px 2px rgba(37,99,235,0.2);
}
.btn-primary:hover { box-shadow: var(--shadow-glow), 0 1px 3px rgba(37,99,235,0.3); color: white; }
.btn-secondary {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { border-color: var(--text-muted); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-tertiary); color: var(--text); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0891B2);
  color: white; box-shadow: 0 1px 3px rgba(6,182,212,0.3);
}
.btn-accent:hover { box-shadow: 0 0 20px rgba(6,182,212,0.2); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--error); color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-dark { background: var(--primary); color: white; }
.btn-dark:hover { background: var(--primary-light); color: white; }
.btn-outline { background: transparent; color: var(--secondary); border: 1.5px solid var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: white; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 4px 10px; font-size: 0.6875rem; border-radius: 4px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); }
.btn-icon svg { width: 18px; height: 18px; }
.btn-loading { pointer-events: none; opacity: 0.7; }
.btn-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Theme Toggle --- */
.theme-toggle { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); cursor: pointer; transition: background var(--transition), color var(--transition); color: var(--text-secondary); }
.theme-toggle:hover { background: var(--bg-tertiary); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity var(--transition), transform var(--transition); }
.theme-toggle .theme-toggle-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .theme-toggle-moon { opacity: 0; transform: rotate(90deg) scale(0); }
.theme-toggle.active .theme-toggle-sun { opacity: 0; transform: rotate(-90deg) scale(0); }
.theme-toggle.active .theme-toggle-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-glass {
  background: rgba(255,255,255,0.7); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
.card-glass:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-flat { background: var(--bg-secondary); border: none; border-radius: var(--radius-lg); padding: 24px; }
.card-hover { cursor: pointer; transition: all var(--transition-slow); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-body { }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.card-img { border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; margin: -24px -24px 16px; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label .required { color: var(--error); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; font-size: 0.875rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg); color: var(--text); transition: all var(--transition);
  outline: none; line-height: 1.5;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--error); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.form-textarea { resize: vertical; min-height: 100px; }
.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='%2364748B' 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-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.75rem; color: var(--error); margin-top: 4px; }

/* Floating label input */
.floating-group { position: relative; margin-bottom: 16px; }
.floating-group input, .floating-group textarea {
  width: 100%; padding: 18px 14px 6px; font-size: 0.875rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg); color: var(--text); transition: all var(--transition);
  outline: none; line-height: 1.5;
}
.floating-group input:focus, .floating-group textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.floating-group label {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 0.875rem; color: var(--text-muted); pointer-events: none;
  transition: all var(--transition); background: var(--bg); padding: 0 4px;
}
.floating-group textarea ~ label { top: 18px; transform: none; }
.floating-group input:focus ~ label, .floating-group input:not(:placeholder-shown) ~ label,
.floating-group textarea:focus ~ label, .floating-group textarea:not(:placeholder-shown) ~ label {
  top: 8px; transform: none; font-size: 0.6875rem; color: var(--secondary);
  font-weight: 600;
}
.floating-group input::placeholder, .floating-group textarea::placeholder { color: transparent; }

/* Form row (multi-column) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
@media (max-width: 576px) { .form-row { grid-template-columns: 1fr; } }

/* Checkbox / Radio */
.checkbox-group, .radio-group { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.875rem; color: var(--text-secondary); }
.checkbox-group input[type="checkbox"], .radio-group input[type="radio"] { width: 18px; height: 18px; accent-color: var(--secondary); cursor: pointer; }

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: var(--radius-full);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-success { background: var(--success-light); color: #065F46; }
.badge-warning { background: var(--warning-light); color: #92400E; }
.badge-error { background: var(--error-light); color: #991B1B; }
.badge-info { background: var(--info-light); color: #1E40AF; }
.badge-neutral { background: var(--bg-tertiary); color: var(--text-secondary); }
.badge-primary { background: var(--secondary-light); color: #1E3A8A; }
.badge-dot { position: relative; padding-left: 18px; }
.badge-dot::before { content: ''; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; }
.badge-dot.badge-success::before { background: var(--success); }
.badge-dot.badge-warning::before { background: var(--warning); }
.badge-dot.badge-error::before { background: var(--error); }
.badge-dot.badge-info::before { background: var(--info); }

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
/* --- Attention Bar (below header, DigiKey style) --- */
.attention-bar { background: #FEF3C7; border-bottom: 1px solid #FDE68A; padding: 10px 0; font-size: 0.8125rem; color: #92400E; }
.attention-bar .container { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; text-align: center; }
.attention-bar svg { flex-shrink: 0; width: 14px; height: 14px; color: #D97706; }
.attention-bar span { font-weight: 500; }

.announcement-bar {
  background: var(--primary); color: white;
  padding: 8px 0; font-size: 0.8125rem; text-align: center;
  position: relative; z-index: 101;
}
.announcement-bar .container {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.announcement-bar svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.announcement-bar span { opacity: 0.85; }

/* ============================================
   STICKY HEADER WRAPPER
   ============================================ */
.header-sticky {
  position: sticky; top: 0; z-index: 100;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.5);
  transition: all var(--transition);
}
.header-sticky.scrolled .nav { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); max-width: var(--max-width); margin: 0 auto;
  padding: 0 24px; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.nav-brand-icon { width: 36px; height: 36px; background: var(--primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-heading); font-weight: 800; font-size: 0.875rem; }
.nav-brand-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--text); letter-spacing: -0.02em; }
.nav-brand-text span { color: var(--secondary); }
.nav-brand-logo { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-md);
  transition: all var(--transition); white-space: nowrap;
}
.nav-link:hover { background: var(--bg-tertiary); color: var(--text); }
.nav-link.active { color: var(--secondary); font-weight: 600; }
.nav-link svg { width: 16px; height: 16px; }
.nav-cta { background: linear-gradient(135deg, var(--secondary), #1D4ED8); color: white; font-weight: 600; padding: 8px 18px; }
.nav-cta:hover { box-shadow: var(--shadow-glow); }

/* Mega Menu */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all var(--transition);
  z-index: 50;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; font-size: 0.8125rem; color: var(--text-secondary);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-dropdown-item:hover { background: var(--bg-tertiary); color: var(--text); }
.nav-dropdown-item svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.nav-dropdown-toggle {
  background: none; border: none; cursor: pointer; font: inherit;
  color: inherit; padding: 0; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.nav-dropdown-toggle svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav-dropdown-toggle-bold { font-weight: 600; }

/* Mobile Menu Toggle */
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius-md); cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:hover { background: var(--bg-tertiary); }

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; top: var(--header-height);
    left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 99;
    padding: 16px; gap: 4px; overflow-y: auto;
  }
  .nav-link { padding: 12px 16px; font-size: 1rem; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .mobile-nav-overlay {
    display: none; position: fixed; inset: 0; z-index: 98;
    background: rgba(15,23,42,0.3);
  }
  .mobile-nav-overlay.active { display: block; }
}

/* ============================================
   MOBILE QUICK ACTIONS + ACCOUNT PANEL
   ============================================ */
.nav-mobile-account,
.nav-mobile-cart { display: none; }
/* Mobile-only account slide-in panel + overlay must be hidden on desktop —
   without a base display:none they render as normal block elements between
   the logo/search row and the category bar, pushing the category bar down
   (and across the page content). The ≤900px media query re-shows them. */
.nav-account-overlay,
.nav-account-panel { display: none; }

@media (max-width: 900px) {
  /* Two-row header: [toggle|brand|account|cart] / [search] */
  .nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
      "toggle brand account cart"
      "search search search search";
    height: auto;
    padding: 10px 16px;
    gap: 8px 12px;
  }
  .nav-toggle { grid-area: toggle; }
  .nav-brand { grid-area: brand; }
  .search-bar { grid-area: search; width: 100%; max-width: 560px; justify-self: center; }
  .nav-mobile-account { grid-area: account; }
  .nav-mobile-cart { grid-area: cart; }

  .nav-mobile-account,
  .nav-mobile-cart {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-md);
    color: var(--text); position: relative; text-decoration: none;
    background: none; border: none; cursor: pointer; padding: 0;
  }
  .nav-mobile-account:hover,
  .nav-mobile-cart:hover,
  .nav-mobile-account.active { background: var(--bg-tertiary); }
  .nav-mobile-cart .badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--secondary); color: #fff; font-size: 0.625rem;
    border-radius: var(--radius-full); line-height: 1;
  }

  /* Keep the nav bar tappable above the account overlay */
  header.nav { position: relative; z-index: 97; }

  /* Account panel + overlay */
  .nav-account-overlay,
  .nav-account-panel { display: block; }

  .nav-account-overlay {
    position: fixed; inset: 0; z-index: 95;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }
  .nav-account-overlay.active { opacity: 1; visibility: visible; }

  .nav-account-panel {
    position: fixed; left: 0; right: 0; top: 0; z-index: 96;
    max-width: 420px; margin: 0 auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: translateY(-16px); opacity: 0; visibility: hidden;
    transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-slow);
  }
  .nav-account-panel.open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav-account-header {
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary), #1D4ED8);
  }
  .nav-account-header strong { font-family: var(--font-heading); font-size: 0.9375rem; color: #fff; display: block; }
  .nav-account-header span { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.8); margin-top: 2px; }

  .nav-account-links { display: flex; flex-direction: column; padding: 8px; }
  .nav-account-link {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 12px; border-radius: var(--radius-md);
    font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
    text-decoration: none; transition: all var(--transition);
  }
  .nav-account-link:hover { background: var(--bg-tertiary); color: var(--text); }
  .nav-account-link svg { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; }

  .nav-account-divider { height: 1px; background: var(--border); margin: 4px 0; }

  .nav-account-cta { display: flex; gap: 10px; padding: 4px 20px 16px; }
  .nav-account-cta .btn { flex: 1; justify-content: center; }

  .nav-account-why { display: block; text-align: center; padding: 0 20px 12px; font-size: 0.8125rem; color: var(--secondary); text-decoration: none; }
  .nav-account-why:hover { text-decoration: underline; }

  .nav-account-theme {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 13px 20px 14px; border: none; background: none; cursor: pointer;
    font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
    border-top: 1px solid var(--border);
  }
  .nav-account-theme:hover { background: var(--bg-tertiary); color: var(--text); }
  .nav-account-theme svg { width: 18px; height: 18px; flex-shrink: 0; }
  .nav-account-theme .theme-toggle-sun { color: var(--warning); display: block; }
  .nav-account-theme .theme-toggle-moon { color: var(--secondary); display: none; }
  .nav-account-theme.active .theme-toggle-sun { display: none; }
  .nav-account-theme.active .theme-toggle-moon { display: block; }

  @media (prefers-reduced-motion: reduce) {
    .nav-account-panel,
    .nav-account-overlay { transition: none; }
  }
}

/* Secondary nav bar */
.nav-secondary {
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  padding: 0; font-size: 0.8125rem;
}
.header-sticky.scrolled .nav-secondary { box-shadow: var(--shadow-sm); }
.nav-secondary-inner { display: flex; align-items: center; height: 40px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; gap: 16px; }
.nav-secondary-link { color: var(--text-secondary); text-decoration: none; white-space: nowrap; transition: color var(--transition); }
.nav-secondary-link:hover { color: var(--text); }
.nav-secondary-accent { color: var(--secondary); font-weight: 600; }
.nav-secondary-accent:hover { color: var(--secondary-hover); }

/* Nav action links (icons in header) */
.nav-action-group { display: flex; align-items: center; gap: 4px; }
.nav-action {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; font-size: 0.8125rem; font-weight: 500;
  color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-md);
  transition: all var(--transition); position: relative; white-space: nowrap;
}
.nav-action:hover { background: var(--bg-tertiary); color: var(--text); }
.nav-action svg { width: 20px; height: 20px; }
.nav-action .badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 0.625rem; font-weight: 700;
  background: var(--secondary); color: white;
  border-radius: var(--radius-full); display: flex;
  align-items: center; justify-content: center;
  line-height: 1;
}
.nav-avatar {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--secondary), #1D4ED8);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8125rem;
}

/* Mobile: show nav actions in the mobile menu */
@media (max-width: 900px) {
  .nav-action-mobile { display: flex; }
  .nav-action-hide-mobile { display: none !important; }
}

/* Scroll to top button */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all var(--transition);
}
.scroll-top:hover { background: var(--secondary); color: white; border-color: var(--secondary); }
.scroll-top svg { width: 18px; height: 18px; transform: rotate(90deg); }

/* Chat & WhatsApp floats */
.chat-button, .whatsapp-button {
  position: fixed; right: 24px; z-index: 50;
  width: 48px; height: 48px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); cursor: pointer;
  transition: all var(--transition);
}
.chat-button { bottom: 80px; background: var(--secondary); color: white; border: none; }
.chat-button:hover { transform: scale(1.1); }
.chat-button svg { width: 22px; height: 22px; }
.whatsapp-button { bottom: 136px; background: #25D366; color: white; }
.whatsapp-button:hover { transform: scale(1.1); }
.whatsapp-button svg { width: 26px; height: 26px; }

/* Cart preview dropdown */
.cart-preview-body { max-height: 300px; overflow-y: auto; }

/* Search category select */
.search-category-select {
  padding: 0 12px; border: none; background: transparent;
  font-size: 0.8125rem; color: var(--text-secondary);
  border-right: 1px solid var(--border); cursor: pointer;
  outline: none; min-width: 120px;
}
.search-category-select option { color: var(--text); }

/* Search suggestions */
.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 8px; display: none; z-index: 120;
}
.search-suggestions.show { display: block; }
.search-suggestions-header { padding: 8px 12px 4px; font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.suggestion-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 0.8125rem; color: var(--text-secondary);
  text-decoration: none; transition: all var(--transition);
}
.suggestion-item:hover { background: var(--bg-tertiary); color: var(--text); }
.suggestion-item img { width: 40px; height: 40px; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg-tertiary); flex-shrink: 0; padding: 2px; }
.suggestion-item svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.suggestion-info { flex: 1; min-width: 0; }
.suggestion-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-part-number { font-size: 0.6875rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-price { font-weight: 600; color: var(--secondary); white-space: nowrap; flex-shrink: 0; }
.suggestion-see-all {
  display: block; text-align: center; padding: 8px 12px; margin-top: 4px;
  font-size: 0.8125rem; font-weight: 600; color: var(--secondary);
  text-decoration: none; border-top: 1px solid var(--border);
}
.suggestion-see-all:hover { background: var(--bg-tertiary); }
[data-theme="dark"] .search-suggestions { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .suggestion-item img { background: var(--bg-tertiary); }

.search-form-inline { display: contents; }

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar {
  flex: 1; max-width: 560px; display: flex; align-items: center;
  background: var(--bg-secondary); border: 1.5px solid var(--border);
  border-radius: var(--radius-full); overflow: hidden;
  position: relative;
  transition: all var(--transition);
}
.search-bar:focus-within { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); overflow: visible; }
.search-bar input {
  flex: 1; padding: 10px 16px; border: none; background: transparent;
  font-size: 0.875rem; outline: none; color: var(--text);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  padding: 10px 18px; background: transparent; border: none;
  color: var(--text-muted); cursor: pointer; transition: color var(--transition);
  display: flex; align-items: center; gap: 6px; font-size: 0.8125rem;
}
.search-bar button:hover { color: var(--secondary); }
.search-bar button svg { width: 18px; height: 18px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; padding: 120px 0 80px;
  background: linear-gradient(135deg, #0B1121 0%, #1E293B 50%, #0B1121 100%);
  color: white; overflow: hidden;
  text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 20%, rgba(6,182,212,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(99,102,241,0.06) 0%, transparent 45%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero-content .hero-badge {
  display: inline-block; padding: 6px 16px; margin-bottom: 20px;
  font-size: 0.8125rem; font-weight: 500; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full); letter-spacing: 0.01em;
}
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px; color: #60A5FA; }
.hero-content p { font-size: clamp(0.9375rem, 1.5vw, 1.125rem); color: rgba(255,255,255,0.55); line-height: 1.7; margin: 0 auto 32px; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-search {
  margin: 32px auto 0; max-width: 580px;
  display: flex; align-items: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full); overflow: hidden;
  backdrop-filter: blur(12px);
}
.hero-search-icon { margin-left: 18px; flex-shrink: 0; color: rgba(255,255,255,0.3); }
.hero-search form { display: flex; align-items: center; width: 100%; }
.hero-search input {
  flex: 1; padding: 14px 14px; border: none; background: transparent;
  font-size: 0.9375rem; outline: none; color: white;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.35); }
.hero-search button {
  padding: 14px 28px; background: #2563EB; border: none; border-radius: var(--radius-full);
  color: white; font-weight: 600; font-size: 0.875rem; cursor: pointer;
  margin: 4px; transition: background var(--transition);
}
.hero-search button:hover { background: #1D4ED8; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.hero-stat { }
.hero-stat-value { font-size: 1.5rem; font-weight: 800; }
.hero-stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.45); }

/* Hero hints (popular searches) */
.hero-hints { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 24px; font-size: 0.8125rem; }
.hero-hints span { color: rgba(255,255,255,0.3); }
.hero-hint { color: rgba(255,255,255,0.5); text-decoration: none; padding: 5px 14px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-full); transition: all var(--transition); }
.hero-hint:hover { border-color: #60A5FA; color: white; background: rgba(96,165,250,0.08); }

/* ============================================
   STATS SECTION
   ============================================ */
.section-alt { background: var(--bg-secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition-slow);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card svg { width: 28px; height: 28px; color: var(--secondary); margin: 0 auto 12px; }
.stat-card-value { font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-card-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   FEATURES / WHY CHOOSE
   ============================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  padding: 32px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition-slow);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px -8px rgba(15,23,42,0.12); border-color: transparent; }
.feature-card .feat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; transition: all var(--transition-slow);
}
.feature-card:nth-child(1) .feat-icon { background: rgba(37,99,235,0.08); }
.feature-card:nth-child(2) .feat-icon { background: rgba(16,185,129,0.08); }
.feature-card:nth-child(3) .feat-icon { background: rgba(245,158,11,0.08); }
.feature-card:nth-child(4) .feat-icon { background: rgba(239,68,68,0.08); }
.feature-card:nth-child(5) .feat-icon { background: rgba(99,102,241,0.08); }
.feature-card:nth-child(6) .feat-icon { background: rgba(6,182,212,0.08); }
.feature-card:nth-child(1):hover .feat-icon { background: #2563EB; }
.feature-card:nth-child(2):hover .feat-icon { background: #10B981; }
.feature-card:nth-child(3):hover .feat-icon { background: #F59E0B; }
.feature-card:nth-child(4):hover .feat-icon { background: #EF4444; }
.feature-card:nth-child(5):hover .feat-icon { background: #6366F1; }
.feature-card:nth-child(6):hover .feat-icon { background: #06B6D4; }
.feature-card:hover .feat-icon svg { color: white; }
.feature-card svg { width: 24px; height: 24px; color: var(--secondary); margin: 0; transition: color var(--transition-slow); }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  padding: 32px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition-slow);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(15,23,42,0.1); border-color: transparent; }
.testimonial-card::before {
  content: '"'; position: absolute; top: 16px; right: 24px;
  font-size: 4rem; line-height: 1; color: var(--border); font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.testimonial-stars svg { width: 16px; height: 16px; color: #F59E0B; }
.testimonial-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.8125rem; flex-shrink: 0; }
.testimonial-name { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.testimonial-company { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   MANUFACTURER GRID
   ============================================ */
.mfr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.mfr-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none;
  transition: all var(--transition-slow);
}
.mfr-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px -8px rgba(15,23,42,0.12); border-color: var(--secondary); }
.mfr-logo {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-tertiary), var(--border));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 800; color: var(--text-muted);
  transition: all var(--transition-slow); letter-spacing: -0.02em;
}
.mfr-card:hover .mfr-logo { background: var(--secondary); color: white; }
.mfr-card span { font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); text-align: center; transition: color var(--transition); }
.mfr-card:hover span { color: var(--secondary); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-section {
  padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  color: white; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); color: white; margin-bottom: 12px; position: relative; }
.cta-section p { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-section .btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.cta-section .btn-secondary:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); }

/* ============================================
   SECTION HEADER UTILITIES
   ============================================ */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; position: relative; }
.section-header h2 { margin-bottom: 12px; position: relative; display: inline-block; }
.section-header h2::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--secondary); border-radius: 2px;
  margin: 12px auto 0;
}
.section-header p { font-size: 1.0625rem; color: var(--text-secondary); }
.view-all {
  font-size: 0.8125rem; font-weight: 600; color: var(--secondary);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.view-all:hover { color: var(--secondary-hover); gap: 10px; }
.view-all svg { width: 14px; height: 14px; transition: transform var(--transition); }
.view-all:hover svg { transform: translateX(2px); }

/* Fade helpers */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeIn 0.5s ease-out 0.1s forwards; }
.fade-in-left { opacity: 0; transform: translateX(-12px); animation: fadeInLeft 0.5s ease-out 0.1s forwards; }
.fade-in-right { opacity: 0; transform: translateX(12px); animation: fadeInRight 0.5s ease-out 0.1s forwards; }

/* Products grid (homepage) */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* ============================================
   ALERTS
   ============================================ */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 0.875rem; margin-bottom: 16px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-success { background: var(--success-light); color: #065F46; }
.alert-error { background: var(--error-light); color: #991B1B; }
.alert-info { background: var(--info-light); color: #1E40AF; }
.alert-warning { background: var(--warning-light); color: #92400E; }

/* Page Banner (inner pages) */
.page-banner {
  padding: 48px 0; background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  color: white;
}
.page-banner h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; }
.page-banner p { font-size: 0.9375rem; color: rgba(255,255,255,0.65); max-width: 640px; margin: 0; }
.page-banner-breadcrumb { display: flex; gap: 6px; font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.page-banner-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.page-banner-breadcrumb a:hover { color: white; }

/* ============================================
   PRODUCT CARDS (Listing)
   ============================================ */
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
@media (max-width: 480px) { .pro-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.pro-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition-slow); display: flex; flex-direction: column;
  position: relative; cursor: pointer;
}
.pro-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px -8px rgba(15,23,42,0.12), 0 4px 8px -4px rgba(15,23,42,0.06); border-color: transparent; }
.pro-card-img {
  height: 200px; background: var(--bg-secondary); display: flex;
  align-items: center; justify-content: center; padding: 20px; position: relative;
  overflow: hidden;
}
.pro-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.pro-card:hover .pro-card-img img { transform: scale(1.08); }
.pro-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.pro-card-mfr { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.pro-card-mpn { font-size: 0.625rem; color: var(--text-muted); font-family: monospace; margin-bottom: 4px; letter-spacing: 0.02em; }
.pro-card-name { font-size: 0.8125rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pro-card-name a { color: inherit; text-decoration: none; }
.pro-card-name a:hover { color: var(--secondary); }
.pro-card-part { font-size: 0.6875rem; color: var(--text-muted); margin-bottom: 8px; font-family: monospace; }
.pro-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border-light); }
.pro-card-price { font-size: 1.125rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.pro-card-price .compare { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.pro-card-stock { font-size: 0.6875rem; display: inline-flex; align-items: center; gap: 4px; }
.pro-card-stock.in-stock { color: var(--success); }
.pro-card-stock.out-of-stock { color: var(--error); }
.pro-card-stock.pre-order { color: var(--warning); }
.pro-card-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.pro-card-stock.in-stock::before { background: var(--success); }
.pro-card-stock.out-of-stock::before { background: var(--error); }
.pro-card-stock.pre-order::before { background: #F59E0B; }
.pro-card-actions { display: flex; gap: 4px; }
.pro-card-more { font-size: 0.75rem; color: var(--text-muted); text-decoration: none; padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); transition: all var(--transition); }
.pro-card-more:hover { border-color: var(--secondary); color: var(--secondary); }

/* Card badges (Featured, New, Sale) */
.pro-card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 10px; border-radius: var(--radius-sm);
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; pointer-events: none;
}
.pro-card-badge.featured { background: #2563EB; color: white; }
.pro-card-badge.new { background: #10B981; color: white; }
.pro-card-badge.sale { background: #EF4444; color: white; }

/* Stock badge on image */
.pro-card-stock-badge {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: 0.625rem; font-weight: 600; display: flex; align-items: center; gap: 4px;
}
.pro-card-stock-badge.in-stock { background: rgba(16,185,129,0.12); color: #059669; backdrop-filter: blur(4px); }
.pro-card-stock-badge.out-of-stock { background: rgba(239,68,68,0.12); color: #DC2626; backdrop-filter: blur(4px); }

/* Wishlist heart button overlay */
.pro-card-wishlist {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); transition: all var(--transition);
  opacity: 0; transform: translateY(-4px);
}
.pro-card:hover .pro-card-wishlist { opacity: 1; transform: translateY(0); }
.pro-card-wishlist:hover { background: white; color: #EF4444; box-shadow: 0 2px 8px rgba(239,68,68,0.2); }
.pro-card-wishlist svg { width: 14px; height: 14px; }

/* Rating stars on card */
.pro-card-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.pro-card-rating .stars { display: flex; gap: 1px; }
.pro-card-rating .stars svg { width: 12px; height: 12px; color: #F59E0B; }
.pro-card-rating .stars svg.empty { color: var(--border); }
.pro-card-rating .count { font-size: 0.625rem; color: var(--text-muted); }

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.pd-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 12px; }
.pd-meta strong { color: var(--text); font-weight: 600; }
.pd-thumbnails { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  border: 2px solid var(--border); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary); overflow: hidden; transition: border-color var(--transition);
}
.pd-thumb:hover { border-color: var(--text-muted); }
.pd-thumb.active { border-color: var(--secondary); }
.pd-thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.pd-gallery-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 5; }
.pd-gallery-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: rgba(255,255,255,0.9);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.6875rem; cursor: pointer; color: var(--text-secondary);
  transition: all var(--transition);
}
.pd-gallery-btn:hover { background: white; color: var(--text); }
.pd-gallery-btn svg { width: 14px; height: 14px; }
.pd-mfr { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.pd-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.pd-rating svg { width: 16px; height: 16px; }
.pd-rating svg.star-full { color: #F59E0B; }
.pd-rating svg.star-empty { color: var(--border); }
.pd-rating span { font-size: 0.75rem; color: var(--text-muted); }
.pd-price-block { margin-bottom: 16px; }
.pd-price .save { display: inline-block; font-size: 0.75rem; color: var(--success); font-weight: 600; margin-left: 8px; }
.pd-stock { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; margin-bottom: 12px; }
.pd-stock.in-stock { color: var(--success); }
.pd-stock.out-of-stock { color: var(--error); }
.pd-description { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; height: 40px; }
.pd-qty button { width: 36px; height: 100%; background: var(--bg-secondary); border: none; cursor: pointer; font-size: 1rem; color: var(--text); transition: background var(--transition); }
.pd-qty button:hover { background: var(--bg-tertiary); }
.pd-qty input { width: 50px; height: 100%; border: none; text-align: center; font-size: 0.875rem; font-weight: 600; background: transparent; outline: none; color: var(--text); }
.pd-utility-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-utility-links a {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 0.75rem; color: var(--text-muted);
  text-decoration: none; border: 1px solid var(--border);
  border-radius: var(--radius-md); transition: all var(--transition);
}
.pd-utility-links a:hover { border-color: var(--secondary); color: var(--secondary); }
.pd-utility-links a svg { width: 14px; height: 14px; }
.pd-compliance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.pd-compliance-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-secondary); border-radius: var(--radius-md); font-size: 0.75rem; color: var(--text-secondary); }
.pd-compliance-item svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }
.pd-trust-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-secondary); }
.pd-trust-item svg { width: 14px; height: 14px; color: var(--secondary); }

/* Tabs */
.pd-tab-bar { display: flex; border-bottom: 2px solid var(--border); gap: 0; overflow-x: auto; }
.pd-tab-btn {
  padding: 12px 20px; font-size: 0.8125rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); white-space: nowrap; background: none;
}
.pd-tab-btn:hover { color: var(--text); }
.pd-tab-btn.active { color: var(--secondary); border-bottom-color: var(--secondary); }
.pd-tab-panel { display: none; padding: 24px 0; }
.pd-tab-panel.active { display: block; }
.pd-tab-muted { color: var(--text-muted); }

/* Datasheets */
.pd-ds-list { display: flex; flex-direction: column; gap: 8px; }
.pd-ds-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-secondary); border-radius: var(--radius-lg); text-decoration: none; color: var(--text-primary); transition: background var(--transition); }
.pd-ds-item:hover { background: var(--bg-tertiary); }
.pd-ds-item svg { width: 20px; height: 20px; color: var(--secondary); flex-shrink: 0; }
.pd-ds-name { flex: 1; }
.pd-ds-size { color: var(--text-muted); }

/* Product Detail Breadcrumb */
.pd-bc { padding: 12px 0; }

/* Tables */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border-light); }
.specs-table td { padding: 10px 12px; font-size: 0.8125rem; }
.specs-table td:first-child { color: var(--text-muted); font-weight: 500; width: 180px; }
.specs-table td:last-child { color: var(--text); }

.pd-bulk-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.pd-bulk-table th { padding: 8px 12px; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; text-align: left; border-bottom: 2px solid var(--border); }
.pd-bulk-table td { padding: 8px 12px; font-size: 0.8125rem; border-bottom: 1px solid var(--border-light); }

/* Reviews */
.review-summary { display: flex; gap: 24px; margin-bottom: 24px; }
.review-avg { text-align: center; min-width: 120px; }
.review-avg .num { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.review-avg .stars { margin: 4px 0; font-size: 1.25rem; }
.review-avg .total { font-size: 0.75rem; color: var(--text-muted); }
.review-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.review-bar-row { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; }
.review-bar-row .label { width: 36px; color: var(--text-muted); }
.review-bar-row .bar { flex: 1; height: 8px; background: var(--bg-tertiary); border-radius: var(--radius-full); overflow: hidden; }
.review-bar-row .bar .fill { height: 100%; background: #F59E0B; border-radius: var(--radius-full); }
.review-bar-row .count { width: 24px; text-align: right; color: var(--text-muted); font-size: 0.75rem; }

.pd-review-item { padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.pd-review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pd-review-head strong { font-size: 0.875rem; }
.pd-review-date { font-size: 0.75rem; color: var(--text-muted); }
.pd-review-stars { font-size: 0.875rem; margin-bottom: 8px; }
.pd-review-stars span { color: #F59E0B; }
.pd-review-text { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.7; }

/* Distributor table */
.distributor-table { width: 100%; border-collapse: collapse; }
.distributor-table th { padding: 10px 12px; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; text-align: left; border-bottom: 2px solid var(--border); }
.distributor-table td { padding: 10px 12px; font-size: 0.8125rem; border-bottom: 1px solid var(--border-light); }
.dist-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dist-avatar { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--secondary-light); color: var(--secondary); display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 700; }

/* Related products */
.pd-related-section { margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--border); }
.pd-related-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pd-related-title { font-size: 1.125rem; font-weight: 700; }
.pd-related-view-all { font-size: 0.8125rem; color: var(--secondary); text-decoration: none; font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-slow); }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.related-card-img { height: 140px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; padding: 16px; }
.related-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.related-card-body { padding: 12px; }
.related-card-body .mfr { font-size: 0.625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.related-card-body .name { font-size: 0.75rem; font-weight: 600; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-card-body .name a { color: var(--text); text-decoration: none; }
.related-card-body .name a:hover { color: var(--secondary); }
.related-card-body .sku { font-size: 0.625rem; color: var(--text-muted); font-family: monospace; margin-bottom: 8px; }
.related-card-foot { display: flex; align-items: center; justify-content: space-between; }
.related-card-foot .price { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.related-card-foot .btn { font-size: 0.6875rem; padding: 4px 10px; }

/* Sticky mobile bar */
.pd-sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--bg-card); border-top: 1px solid var(--border); box-shadow: 0 -4px 12px rgba(0,0,0,0.05); display: none; }
@media (max-width: 768px) { .pd-sticky-bar { display: block; } }

/* Fullscreen viewer */
.fs-viewer { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.95); display: none; align-items: center; justify-content: center; }
.fs-viewer.open { display: flex; }
.fs-viewer .close-fs { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: var(--radius-full); background: rgba(255,255,255,0.1); color: white; border: none; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fs-viewer img { max-width: 90%; max-height: 90%; object-fit: contain; }
.pd-lens { display: none; position: absolute; width: 200px; height: 200px; border: 2px solid var(--secondary); background: rgba(255,255,255,0.3); pointer-events: none; z-index: 10; }
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 24px 0 48px; }
@media (max-width: 768px) { .pd-layout { grid-template-columns: 1fr; } }
.pd-gallery { position: sticky; top: 100px; align-self: start; }
.pd-main-image {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
}
.pd-main-image img { max-width: 100%; max-height: 400px; object-fit: contain; }
.pd-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.75rem; color: var(--text-muted); padding: 12px 0; }
.pd-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--secondary); }
.pd-breadcrumb span { color: var(--text); }
.pd-breadcrumb svg { width: 12px; height: 12px; }
.pd-mfr { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.pd-name { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pd-part { font-family: monospace; font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 16px; }
.pd-price { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.pd-price small { font-size: 0.875rem; font-weight: 400; color: var(--text-muted); }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.pd-meta-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 0.8125rem; }
.pd-meta-label { color: var(--text-muted); }
.pd-meta-value { color: var(--text); font-weight: 500; }
.pd-tabs { margin-top: 24px; }
.pd-tab-bar { display: flex; border-bottom: 2px solid var(--border); gap: 0; }
.pd-tab-btn { padding: 12px 24px; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.pd-tab-btn.active { color: var(--secondary); border-bottom-color: var(--secondary); }
.pd-tab-btn:hover { color: var(--text); }
.pd-tab-content { padding: 24px 0; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.pd-tab-content h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 16px 0 8px; }
.pd-tab-content ul { list-style: disc; padding-left: 20px; }

/* ============================================
   FILTER SIDEBAR
   ============================================ */
.filter-sidebar { width: 260px; flex-shrink: 0; }
.filter-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.filter-header { padding: 14px 16px; font-size: 0.8125rem; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.filter-body { padding: 12px 16px; }
.filter-body-hidden { display: none; }
.filter-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; }
.filter-item:hover { color: var(--text); }
.filter-item input[type="checkbox"] { accent-color: var(--secondary); width: 16px; height: 16px; }
.filter-item .count { margin-left: auto; font-size: 0.6875rem; color: var(--text-muted); background: var(--bg-tertiary); padding: 0 6px; border-radius: var(--radius-full); }
.filter-search-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.8125rem; outline: none; }
.filter-search-input:focus { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(37,99,235,0.1); }

/* ============================================
   MANUFACTURERS PAGE (DigiKey-style)
   ============================================ */

/* ── Hero ── */
.mfr-hero {
  background: linear-gradient(135deg, var(--primary, #003D7A) 0%, #002244 100%);
  padding: 48px 0 40px;
  color: white;
}
.mfr-hero-inner { max-width: 720px; }
.mfr-breadcrumb { display: flex; gap: 6px; font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.mfr-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.mfr-breadcrumb a:hover { color: white; }
.mfr-hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.2; }
.mfr-hero p { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 24px; max-width: 600px; }
.mfr-hero-search-field {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.2s;
}
.mfr-hero-search-field:focus-within { border-color: rgba(255,255,255,0.35); }
.mfr-hero-search-field svg { margin-left: 14px; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.mfr-hero-search-field input {
  flex: 1; padding: 12px 16px; border: none; background: transparent; color: white;
  font-size: 0.9375rem; outline: none; font-family: inherit;
}
.mfr-hero-search-field input::placeholder { color: rgba(255,255,255,0.4); }
.mfr-hero-search-field button {
  padding: 12px 28px; background: #10b981; color: white; border: none; border-radius: 8px;
  font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: background 0.2s; white-space: nowrap; font-family: inherit;
}
.mfr-hero-search-field button:hover { background: #059669; }
.mfr-hero-clear { display: inline-block; margin-top: 12px; font-size: 0.8125rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.mfr-hero-clear:hover { color: white; }

/* ── Alphabet Bar ── */
.mfr-alpha-bar {
  background: var(--bg-card, #fff);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 12px 0;
  position: sticky;
  top: 60px;
  z-index: 40;
}
.mfr-alpha-inner { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.mfr-alpha-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 6px; font-size: 0.8125rem; font-weight: 600;
  text-decoration: none; color: var(--text-secondary, #475569);
  background: transparent; border: 1px solid transparent;
  transition: all 0.15s;
}
.mfr-alpha-btn:hover { background: var(--bg-secondary, #f1f5f9); border-color: var(--border, #e2e8f0); color: var(--text, #0f172a); }
.mfr-alpha-btn.active { background: var(--primary, #003D7A); color: white; border-color: var(--primary, #003D7A); }
.mfr-alpha-btn.disabled { opacity: 0.25; pointer-events: none; }

/* ── Stats Bar ── */
.mfr-stats-bar { background: var(--bg-secondary, #f8fafc); border-bottom: 1px solid var(--border, #e2e8f0); padding: 12px 0; }
.mfr-stats-inner { display: flex; align-items: center; justify-content: space-between; }
.mfr-stats-count { font-size: 0.8125rem; color: var(--text-muted, #94a3b8); }
.mfr-stats-count strong { color: var(--text, #0f172a); font-weight: 700; }
.mfr-stats-sep { margin: 0 6px; }
.mfr-stats-clear { font-size: 0.8125rem; color: var(--primary, #003D7A); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.mfr-stats-clear:hover { color: var(--primary-dark, #002244); }

/* ── Main Grid ── */
.mfr-main { padding: 40px 0 64px; }
.mfr-letter-group { margin-bottom: 36px; }
.mfr-letter-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border, #e2e8f0); }
.mfr-letter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary, #003D7A); color: white;
  font-size: 1rem; font-weight: 800; flex-shrink: 0;
}
.mfr-letter-count { font-size: 0.8125rem; color: var(--text-muted, #94a3b8); }
.mfr-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.mfr-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px; text-decoration: none; color: inherit;
  transition: all 0.2s;
}
.mfr-card:hover {
  border-color: var(--primary, #003D7A);
  box-shadow: 0 4px 12px -2px rgba(0,61,122,0.1);
  transform: translateY(-1px);
}
.mfr-card-logo {
  width: 52px; height: 52px; border-radius: 8px;
  background: var(--bg-secondary, #f8fafc); border: 1px solid var(--border-light, #f1f5f9);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; transition: all 0.2s;
}
.mfr-card:hover .mfr-card-logo { border-color: var(--primary, #003D7A); background: rgba(0,61,122,0.05); }
.mfr-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.mfr-card-initial {
  font-size: 1.25rem; font-weight: 800; color: var(--text-muted, #94a3b8);
  transition: color 0.2s;
}
.mfr-card:hover .mfr-card-initial { color: var(--primary, #003D7A); }
.mfr-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mfr-card-name { font-size: 0.9375rem; font-weight: 600; color: var(--text, #0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mfr-card-meta { font-size: 0.75rem; color: var(--text-muted, #94a3b8); display: flex; align-items: center; gap: 5px; }
.mfr-card-meta svg { opacity: 0.5; }
.mfr-card-arrow { color: var(--text-muted, #94a3b8); flex-shrink: 0; opacity: 0; transition: all 0.2s; }
.mfr-card:hover .mfr-card-arrow { opacity: 1; transform: translateX(2px); color: var(--primary, #003D7A); }

@media (max-width: 520px) {
  .mfr-card-grid { grid-template-columns: 1fr; }
  .mfr-hero h1 { font-size: 1.5rem; }
}

/* ── Empty State ── */
.mfr-empty { text-align: center; padding: 80px 20px; }
.mfr-empty-icon { margin: 0 auto 20px; width: 80px; height: 80px; border-radius: 20px; background: var(--bg-secondary, #f1f5f9); display: flex; align-items: center; justify-content: center; color: var(--text-muted, #94a3b8); }
.mfr-empty h3 { font-size: 1.25rem; font-weight: 700; color: var(--text, #0f172a); margin-bottom: 8px; }
.mfr-empty p { font-size: 0.9375rem; color: var(--text-secondary, #475569); margin-bottom: 20px; }
.mfr-empty-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; background: var(--primary, #003D7A); color: white; border-radius: 8px; text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: background 0.2s; }
.mfr-empty-btn:hover { background: var(--primary-dark, #002244); }

/* ── CTA Section ── */
.mfr-cta {
  background: var(--bg-secondary, #f8fafc);
  border-top: 1px solid var(--border, #e2e8f0);
  padding: 48px 0;
}
.mfr-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.mfr-cta-text h3 { font-size: 1.25rem; font-weight: 700; color: var(--text, #0f172a); margin-bottom: 8px; }
.mfr-cta-text p { font-size: 0.9375rem; color: var(--text-secondary, #475569); margin: 0; max-width: 480px; }
.mfr-cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.mfr-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px; border-radius: 8px; text-decoration: none;
  font-size: 0.875rem; font-weight: 600; transition: all 0.2s;
}
.mfr-cta-btn.primary { background: var(--primary, #003D7A); color: white; }
.mfr-cta-btn.primary:hover { background: var(--primary-dark, #002244); }
.mfr-cta-btn.outline { background: transparent; color: var(--primary, #003D7A); border: 1.5px solid var(--primary, #003D7A); }
.mfr-cta-btn.outline:hover { background: var(--primary, #003D7A); color: white; }
@media (max-width: 640px) {
  .mfr-cta-inner { flex-direction: column; text-align: center; }
  .mfr-cta-text p { margin: 0 auto; }
  .mfr-cta-actions { flex-direction: column; width: 100%; }
  .mfr-cta-btn { justify-content: center; }
}

/* ── Detail Page (preserved) ── */
.mfr-detail-hero { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.mfr-detail-hero h1 { margin: 0; }
.mfr-detail-logo { width: 64px; height: 64px; object-fit: contain; border-radius: var(--radius-full); background: rgba(255,255,255,0.1); padding: 8px; }
.mfr-detail-count { color: rgba(255,255,255,0.65); font-size: 0.9375rem; margin-top: 0.5rem; }
.mfr-detail-website { margin-top: 0.75rem; }
.mfr-detail-body { padding-top: 2rem; padding-bottom: 4rem; }
.product-card-form { display: inline; }

/* ============================================
   RESOURCES PAGE (DigiKey-style)
   ============================================ */

/* ── Hero ── */
.res-hero {
  background: linear-gradient(135deg, var(--primary, #003D7A) 0%, #002244 100%);
  padding: 48px 0 44px;
  color: white;
}
.res-hero-inner { max-width: 680px; }
.res-breadcrumb { display: flex; gap: 6px; font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.res-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.res-breadcrumb a:hover { color: white; }
.res-hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.2; }
.res-hero p { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 24px; }
.res-hero-search {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 0 16px; transition: border-color 0.2s;
}
.res-hero-search:focus-within { border-color: rgba(255,255,255,0.35); }
.res-hero-search svg { color: rgba(255,255,255,0.4); flex-shrink: 0; }
.res-hero-search input {
  flex: 1; padding: 14px 0; border: none; background: transparent; color: white;
  font-size: 0.9375rem; outline: none; font-family: inherit;
}
.res-hero-search input::placeholder { color: rgba(255,255,255,0.4); }

/* ── Category Cards ── */
.res-cats { padding: 48px 0 0; }
.res-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.res-cat-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
  cursor: pointer;
}
.res-cat-card:hover {
  border-color: var(--accent, var(--primary));
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.res-cat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.res-cat-content h3 { font-size: 0.9375rem; font-weight: 700; color: var(--text, #0f172a); margin-bottom: 4px; }
.res-cat-count { font-size: 0.75rem; font-weight: 600; color: var(--text-muted, #94a3b8); display: block; margin-bottom: 8px; }
.res-cat-content p { font-size: 0.8125rem; color: var(--text-secondary, #475569); line-height: 1.6; margin: 0; }

/* ── Section Head ── */
.res-section-head { margin-bottom: 28px; }
.res-section-head h2 { font-size: 1.5rem; font-weight: 800; color: var(--text, #0f172a); letter-spacing: -0.02em; margin-bottom: 6px; }
.res-section-head p { font-size: 0.9375rem; color: var(--text-secondary, #475569); margin: 0; }

/* ── Featured Grid ── */
.res-featured { padding: 56px 0; background: var(--bg-secondary, #f8fafc); }
.res-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.res-feat-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 24px;
  display: flex; flex-direction: column;
  transition: all 0.2s;
}
.res-feat-card:hover {
  border-color: var(--primary, #003D7A);
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.08);
}
.res-feat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.res-feat-type {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 6px; background: var(--bg-secondary, #f1f5f9);
  color: var(--text-secondary, #475569);
}
.res-feat-tag {
  font-size: 0.6875rem; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.res-feat-card h3 { font-size: 1rem; font-weight: 700; color: var(--text, #0f172a); margin-bottom: 8px; line-height: 1.4; flex: 1; }
.res-feat-card p { font-size: 0.8125rem; color: var(--text-secondary, #475569); line-height: 1.6; margin: 0 0 16px; }
.res-feat-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-light, #f1f5f9); }
.res-feat-time { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--text-muted, #94a3b8); }
.res-feat-time svg { opacity: 0.5; }
.res-feat-link { font-size: 0.8125rem; font-weight: 600; color: var(--primary, #003D7A); text-decoration: none; transition: color 0.2s; }
.res-feat-link:hover { color: var(--primary-dark, #002244); }

@media (max-width: 520px) { .res-featured-grid { grid-template-columns: 1fr; } }

/* ── Downloads ── */
.res-downloads { padding: 56px 0; }
.res-dl-grid { display: flex; flex-direction: column; gap: 12px; }
.res-dl-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px; transition: all 0.2s;
}
.res-dl-card:hover { border-color: var(--primary, #003D7A); box-shadow: 0 2px 8px -2px rgba(0,0,0,0.06); }
.res-dl-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: #fef3c7; color: #d97706;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.res-dl-info { flex: 1; min-width: 0; }
.res-dl-info strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--text, #0f172a); margin-bottom: 2px; }
.res-dl-info span { font-size: 0.75rem; color: var(--text-muted, #94a3b8); }
.res-dl-info p { font-size: 0.8125rem; color: var(--text-secondary, #475569); margin: 4px 0 0; line-height: 1.5; }
.res-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border: 1.5px solid var(--primary, #003D7A);
  border-radius: 8px; color: var(--primary, #003D7A);
  font-size: 0.8125rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.res-dl-btn:hover { background: var(--primary, #003D7A); color: white; }
@media (max-width: 640px) {
  .res-dl-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .res-dl-btn { align-self: stretch; justify-content: center; }
}

/* ── CTA ── */
.res-cta { padding: 56px 0; background: var(--primary, #003D7A); }
.res-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: rgba(255,255,255,0.08); border-radius: 16px; padding: 40px;
  border: 1px solid rgba(255,255,255,0.1);
}
.res-cta-icon { color: rgba(255,255,255,0.6); flex-shrink: 0; }
.res-cta-text h3 { color: white; font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.res-cta-text p { color: rgba(255,255,255,0.65); font-size: 0.9375rem; margin: 0; max-width: 420px; }
.res-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; background: #10b981; color: white;
  border-radius: 10px; text-decoration: none;
  font-size: 0.9375rem; font-weight: 700; transition: background 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.res-cta-btn:hover { background: #059669; }
@media (max-width: 640px) {
  .res-cta-inner { flex-direction: column; text-align: center; padding: 28px; }
  .res-cta-text p { margin: 0 auto; }
  .res-cta-btn { align-self: stretch; justify-content: center; }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  font-size: 0.8125rem; font-weight: 500; border-radius: var(--radius-md);
  text-decoration: none; transition: all var(--transition);
}
.pagination a { color: var(--text-secondary); border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--secondary); color: var(--secondary); }
.pagination .active { background: var(--secondary); color: white; border-color: var(--secondary); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ============================================
   ALERTS & FLASH
   ============================================ */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 0.875rem; margin-bottom: 16px; line-height: 1.5;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.alert-success { background: var(--success-light); color: #065F46; }
.alert-warning { background: var(--warning-light); color: #92400E; }
.alert-info { background: var(--info-light); color: #1E40AF; }

/* ============================================
   EMPTY STATE
   ============================================ */
.products-grid .empty-grid { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--text-muted); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { width: 48px; height: 48px; color: var(--text-muted); margin: 0 auto 16px; }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ============================================
   TABLES
   ============================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table th {
  padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.75rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); }
table tr:hover td { background: var(--bg-secondary); }
table tr:last-child td { border-bottom: none; }

/* ============================================
   FOOTER (DigiKey-level Professional)
   ============================================ */

/* ── Trust Bar ── */
.ft-trust-bar {
  background: var(--bg-secondary, #f8fafc);
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 0;
}
.ft-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.ft-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--border, #e2e8f0);
}
.ft-trust-item:last-child { border-right: none; }
.ft-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary, #003D7A);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ft-trust-text { display: flex; flex-direction: column; gap: 2px; }
.ft-trust-text strong { font-size: 0.8125rem; font-weight: 700; color: var(--text, #0f172a); }
.ft-trust-text span { font-size: 0.75rem; color: var(--text-muted, #94a3b8); }
@media (max-width: 900px) {
  .ft-trust-grid { grid-template-columns: 1fr 1fr; }
  .ft-trust-item:nth-child(2) { border-right: none; }
}
@media (max-width: 520px) {
  .ft-trust-grid { grid-template-columns: 1fr; }
  .ft-trust-item { border-right: none; border-bottom: 1px solid var(--border, #e2e8f0); }
  .ft-trust-item:last-child { border-bottom: none; }
}

/* ── Newsletter ── */
.ft-newsletter {
  background: linear-gradient(135deg, var(--primary, #003D7A) 0%, #002244 100%);
  padding: 48px 0;
}
.ft-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.ft-newsletter-copy h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.ft-newsletter-copy p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  margin: 0;
  max-width: 480px;
}
.ft-newsletter-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.ft-newsletter-field {
  position: relative;
  display: flex;
  align-items: center;
}
.ft-newsletter-field svg {
  position: absolute;
  left: 16px;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
}
.ft-newsletter-field input {
  width: 340px;
  padding: 14px 16px 14px 46px;
  border: 2px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.9375rem;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}
.ft-newsletter-field input::placeholder { color: rgba(255,255,255,0.4); }
.ft-newsletter-field input:focus { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.15); }
.ft-newsletter-btn {
  padding: 14px 32px;
  background: #10b981;
  color: white;
  border: 2px solid #10b981;
  border-radius: 0 10px 10px 0;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.ft-newsletter-btn:hover { background: #059669; border-color: #059669; }
@media (max-width: 768px) {
  .ft-newsletter-inner { flex-direction: column; text-align: center; gap: 24px; }
  .ft-newsletter-copy p { margin: 0 auto; }
  .ft-newsletter-form { width: 100%; }
  .ft-newsletter-field { flex: 1; }
  .ft-newsletter-field input { width: 100%; }
}
@media (max-width: 480px) {
  .ft-newsletter-form { flex-direction: column; }
  .ft-newsletter-field input { border-right: 2px solid rgba(255,255,255,0.15); border-radius: 10px; }
  .ft-newsletter-btn { border-radius: 10px; }
}

/* ── Main Footer ── */
.footer {
  background: var(--primary, #003D7A);
  color: rgba(255,255,255,0.7);
  padding: 0;
  font-size: 0.875rem;
}
.ft-main {
  padding: 56px 0 48px;
}
.ft-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.ft-brand-col { padding-right: 24px; }
.ft-logo { display: inline-block; margin-bottom: 16px; }
.ft-logo img { height: 32px; width: auto; opacity: .92; }
.ft-brand-desc {
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.ft-social { display: flex; gap: 10px; }
.ft-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.2s;
}
.ft-social-link:hover { background: rgba(255,255,255,0.18); color: white; transform: translateY(-2px); }

.ft-col-title {
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.ft-links { display: flex; flex-direction: column; gap: 10px; }
.ft-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.2s;
  padding: 2px 0;
  display: inline-block;
}
.ft-links a:hover { color: white; transform: translateX(4px); }

@media (max-width: 900px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ft-brand-col { grid-column: span 2; }
}
@media (max-width: 520px) {
  .ft-grid { grid-template-columns: 1fr; gap: 28px; }
  .ft-brand-col { grid-column: span 1; padding-right: 0; }
}

/* ── Cert / Payment Bar ── */
.ft-cert-bar {
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
}
.ft-cert-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ft-payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ft-pay-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.ft-pay-icons { display: flex; gap: 6px; }
.ft-pay-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.08);
}
.ft-cert-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ft-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.ft-cert-badge svg { opacity: 0.6; }
@media (max-width: 640px) {
  .ft-cert-inner { flex-direction: column; gap: 12px; text-align: center; }
  .ft-payment-icons { flex-wrap: wrap; justify-content: center; }
}

/* ── Bottom Bar ── */
.ft-bottom {
  background: rgba(0,0,0,0.2);
  padding: 16px 0;
}
.ft-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ft-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}
.ft-legal-links {
  display: flex;
  gap: 4px;
}
.ft-legal-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s;
}
.ft-legal-links a:last-child { border-right: none; padding-right: 0; }
.ft-legal-links a:hover { color: rgba(255,255,255,0.8); }
@media (max-width: 640px) {
  .ft-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .ft-legal-links { flex-wrap: wrap; justify-content: center; }
  .ft-legal-links a { border-right: none; padding: 4px 8px; }
}

/* ============================================
   DASHBOARD / ADMIN
   ============================================ */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--header-height)); }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-sidebar {
  background: var(--bg-dark); padding: 24px 0; position: sticky; top: var(--header-height);
  height: calc(100vh - var(--header-height)); overflow-y: auto;
}
@media (max-width: 900px) { .dash-sidebar { display: none; } .dash-sidebar.open { display: block; position: fixed; inset: var(--header-height) 0 0; z-index: 50; } }
.dash-sidebar-label { padding: 8px 20px; font-size: 0.6875rem; font-weight: 600; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.08em; }
.dash-sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  font-size: 0.8125rem; color: rgba(255,255,255,0.5); text-decoration: none;
  transition: all var(--transition); border-left: 3px solid transparent;
}
.dash-sidebar-link:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.dash-sidebar-link.active { background: rgba(37,99,235,0.1); color: var(--secondary); border-left-color: var(--secondary); }
.dash-sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-content { padding: 32px; background: var(--bg-secondary); min-height: calc(100vh - var(--header-height)); }
.dash-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.dash-header h1 { font-size: 1.5rem; font-weight: 700; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.dash-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.dash-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.dash-stat-change { font-size: 0.75rem; margin-top: 4px; }
.dash-stat-change.up { color: var(--success); }
.dash-stat-change.down { color: var(--error); }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .auth-layout { grid-template-columns: 1fr; } }
.auth-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  position: relative; overflow: hidden;
}
.auth-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.2) 0%, transparent 60%);
}
.auth-banner-content { position: relative; z-index: 1; text-align: center; max-width: 400px; }
.auth-banner-content h2 { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 12px; }
.auth-banner-content p { font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form-inner { width: 100%; max-width: 400px; }
.auth-form-inner h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.auth-form-inner > p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--text-muted); font-size: 0.8125rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--text-secondary); }
.auth-footer a { color: var(--secondary); font-weight: 600; }

/* Auth extras */
.auth-form-inner .auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; text-decoration: none; }
.auth-form-inner .auth-logo-icon { width: 40px; height: 40px; border-radius: var(--radius-lg); background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 800; font-family: 'Poppins', sans-serif; overflow: hidden; }
.auth-form-inner .auth-logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-form-inner .auth-logo-text { font-size: 1.25rem; font-weight: 800; color: var(--text); font-family: 'Poppins', sans-serif; }
.auth-form-inner .auth-logo-text span { color: var(--secondary); }
.logo-icon { width: 40px; height: 40px; border-radius: var(--radius-lg); background: var(--primary); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.auth-form-inner.wide { max-width: 480px; }

.role-selector { display: flex; gap: 12px; margin-bottom: 16px; }
.role-option { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.15s; font-size: 0.875rem; font-weight: 600; background: var(--bg-card); }
.role-option:hover { border-color: var(--secondary); }
.role-option.selected { border-color: var(--secondary); background: rgba(37,99,235,0.04); color: var(--secondary); }
.role-option input { display: none; }
.role-option svg { width: 20px; height: 20px; }

.pw-requirements { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.pw-req { font-size: 0.6875rem; padding: 3px 8px; border-radius: 100px; background: var(--bg-secondary); color: var(--text-muted); transition: all 0.15s; }
.pw-req.met { background: rgba(16,185,129,0.1); color: var(--success); }
.pw-req.fail { background: rgba(239,68,68,0.1); color: var(--error); }

/* ============================================
   ACCOUNT / DASHBOARD
   ============================================ */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0; align-items: start; }
@media (max-width: 992px) { .dashboard-layout { grid-template-columns: 1fr; } }
.dash-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 24px; }
.dash-user { padding: 24px; text-align: center; border-bottom: 1px solid var(--bg-secondary); }
.dash-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), #1D4ED8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 12px; }
.dash-user h4 { font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.dash-user p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }
.dash-nav { display: flex; flex-direction: column; padding: 8px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-md); text-decoration: none; color: var(--text); font-size: 0.875rem; font-weight: 500; transition: all 0.15s; }
.dash-nav a:hover { background: var(--bg-hover); color: var(--secondary); }
.dash-nav a.active { background: rgba(37,99,235,0.08); color: var(--secondary); font-weight: 600; }
.dash-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-nav .count { margin-left: auto; background: var(--bg-secondary); color: var(--text-muted); font-size: 0.6875rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.dash-nav .count.notif { background: var(--secondary); color: #fff; }
.dash-nav .count.orange { background: #F59E0B; color: #fff; }
.dash-nav .signout { margin-top: 8px; border-top: 1px solid var(--bg-secondary); padding-top: 12px; color: var(--error); }
.dash-main { min-width: 0; }
.dash-main h1 { font-size: 1.375rem; font-weight: 700; margin: 0; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dash-header h1 { font-size: 1.375rem; font-weight: 700; margin: 0; }
.member-since { font-size: 0.8125rem; color: var(--text-muted); }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 14px; transition: all 0.2s; }
.stat-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); border-color: transparent; transform: translateY(-2px); }
.stat-icon { width: 42px; height: 42px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-icon.blue { background: rgba(37,99,235,.1); color: #2563EB; }
.stat-icon.green { background: rgba(16,185,129,.1); color: #10B981; }
.stat-icon.amber { background: rgba(245,158,11,.1); color: #F59E0B; }
.stat-icon.purple { background: rgba(139,92,246,.1); color: #8B5CF6; }
.stat-icon.red { background: rgba(239,68,68,.1); color: #EF4444; }

.notif-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(37,99,235,.08); color: var(--secondary); border-radius: 100px; text-decoration: none; font-size: 13px; font-weight: 600; }
.notif-pill:hover { background: rgba(37,99,235,.15); }

.flex-2 { flex: 2; }
.flex-0 { flex: 0; }
.signout-nav { color: var(--error); }
.text-muted-sm { font-size: 14px; color: var(--text-muted); }
.text-success { color: var(--success); }
.font-mono { font-family: var(--font-mono); font-size: 13px; }
.font-mono-bold { font-family: var(--font-mono); font-weight: 600; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 24px; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 20px; }
.text-error { color: var(--error); }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-nowrap { white-space: nowrap; }
.order-badge-sm { font-size: 10px; padding: 2px 6px; }
.return-form-inner { max-width: 500px; padding: 20px; }
.cell-truncate { max-width: 200px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-placed-at { font-size: 14px; color: var(--text-muted); margin: 4px 0 0; }
.ref-desc { font-size: 14px; color: var(--text-muted); margin: 0 0 4px; }
.reply-title { font-size: 14px; font-weight: 600; color: var(--text-muted); margin: 0 0 8px; }
.pts-empty { text-align: center; padding: 48px 20px; }
.pts-empty-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.pts-empty-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.pts-empty-text { font-size: 14px; color: var(--text-muted); margin: 0; }
.stat-body .val { font-size: 1.375rem; font-weight: 800; line-height: 1.1; }
.stat-body .lbl { font-size: 0.75rem; color: var(--text-muted); }

/* Section header */
.section-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-hdr h3 { font-size: 1.0625rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.section-hdr a { font-size: 0.8125rem; color: var(--secondary); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 4px; }

/* Order card */
.order-card { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; transition: all 0.2s; overflow: hidden; }
.order-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); border-color: transparent; }
.order-card a { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 12px; align-items: center; padding: 16px 20px; text-decoration: none; color: inherit; }
@media (max-width: 576px) { .order-card a { grid-template-columns: 1fr auto; gap: 8px; } }
.order-status-dot { width: 4px; height: 40px; border-radius: 2px; flex-shrink: 0; }
.order-status-dot.pending { background: var(--warning); }
.order-status-dot.processing { background: var(--secondary); }
.order-status-dot.shipped { background: #8B5CF6; }
.order-status-dot.delivered, .order-status-dot.completed { background: var(--success); }
.order-status-dot.cancelled { background: var(--error); }
.order-info .num { font-weight: 700; font-size: 0.875rem; }
.order-info .meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.order-info .meta span + span::before { content: '\00b7'; margin-right: 8px; }
.order-badge { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; text-transform: capitalize; }
.order-badge.pending { background: rgba(245,158,11,0.1); color: #D97706; }
.order-badge.processing { background: rgba(37,99,235,0.1); color: var(--secondary); }
.order-badge.shipped { background: rgba(139,92,246,0.1); color: #7C3AED; }
.order-badge.delivered, .order-badge.completed { background: rgba(16,185,129,0.1); color: #059669; }
.order-badge.cancelled { background: rgba(239,68,68,0.1); color: #DC2626; }
.order-badge.open { background: rgba(16,185,129,0.1); color: #059669; }
.order-badge.closed { background: rgba(239,68,68,0.1); color: #DC2626; }
.order-total { font-size: 1rem; font-weight: 700; white-space: nowrap; }
.order-arrow { color: var(--text-muted); flex-shrink: 0; }
.order-arrow svg { width: 18px; height: 18px; }

/* Quick links */
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.quick-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; text-decoration: none; font-size: 0.8125rem; font-weight: 600; color: var(--text); transition: all 0.15s; }
.quick-link:hover { background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.2); color: var(--secondary); transform: translateY(-1px); }
.quick-link svg { width: 16px; height: 16px; }

/* Notification cards */
.notif-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 12px; transition: all 0.15s; }
.notif-card.unread { border-left: 3px solid var(--secondary); background: rgba(37,99,235,0.02); }
.notif-icon { font-size: 1.125rem; flex-shrink: 0; margin-top: 2px; }
.notif-body { flex: 1; min-width: 0; }
.notif-body .title { font-size: 0.875rem; font-weight: 600; }
.notif-body .msg { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 2px; }
.notif-body .time { font-size: 0.6875rem; color: var(--text-muted); margin-top: 4px; }

/* Filter bar (orders page) */
.filters-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: end; }
.filters-bar .form-group { margin: 0; min-width: 130px; flex: 1; }
.filters-bar .form-group label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); display: block; margin-bottom: 2px; }
.filters-bar input, .filters-bar select { padding: 8px 12px; font-size: 0.8125rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text); width: 100%; }
.filter-btn { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; white-space: nowrap; }
.filter-btn.primary { background: var(--secondary); color: #fff; border-color: var(--secondary); }

/* Pay badge */
.pay-badge { font-size: 0.625rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; text-transform: capitalize; white-space: nowrap; }
.pay-badge.pending { background: rgba(245,158,11,0.1); color: #D97706; }
.pay-badge.completed, .pay-badge.paid { background: rgba(16,185,129,0.1); color: #059669; }
.pay-badge.failed, .pay-badge.refunded { background: rgba(239,68,68,0.1); color: #DC2626; }

/* Profile form */
.profile-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.profile-form h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--bg-secondary); }
.profile-form .form-label { font-size: 0.8125rem; font-weight: 600; display: block; margin-bottom: 4px; color: var(--text); }
.profile-form .form-input, .profile-form .form-select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.875rem; background: var(--bg-card); color: var(--text); transition: border-color 0.15s; }
.profile-form .form-input:focus { border-color: var(--secondary); outline: none; }
.profile-form .form-input:disabled { opacity: 0.5; cursor: not-allowed; }
.profile-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
@media (max-width: 576px) { .profile-form .form-row { grid-template-columns: 1fr; } }
.profile-form .form-group { margin-bottom: 12px; }
.help-text { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* Product grid (wishlist) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-2px); border-color: transparent; }
.product-card-img { height: 160px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; padding: 16px; position: relative; }
.product-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card-img .remove-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--error); transition: all 0.15s; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.product-card-img .remove-btn:hover { background: var(--error); color: #fff; }
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card-body .mfr { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 2px; }
.product-card-body .name { font-size: 0.875rem; font-weight: 600; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-body .name a { color: var(--text); text-decoration: none; }
.product-card-body .name a:hover { color: var(--secondary); }
.product-card-body .sku { font-size: 0.6875rem; font-family: monospace; color: var(--text-muted); margin-bottom: 6px; }
.product-card-body .price { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; }
.product-card-footer { display: flex; gap: 8px; margin-top: auto; }
.product-card-footer .btn { flex: 1; padding: 8px; font-size: 0.75rem; border-radius: var(--radius-sm); text-align: center; cursor: pointer; border: none; font-weight: 600; transition: all 0.15s; }
.product-card-footer .btn-add { background: var(--secondary); color: #fff; }
.product-card-footer .btn-add:hover { box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.product-card-footer .btn-view { background: var(--bg-secondary); color: var(--text); }
.product-card-footer .btn-view:hover { background: var(--border); }

/* Stock badge */
.stock-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 100px; }
.stock-badge.in-stock { background: rgba(16,185,129,0.1); color: #059669; }
.stock-badge.out-of-stock { background: rgba(239,68,68,0.1); color: #DC2626; }
.stock-badge.pre-order { background: rgba(245,158,11,0.1); color: #D97706; }

/* Account table (returns) */
.acct-table-wrap { overflow-x: auto; }
.acct-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.acct-table th { padding: 12px 16px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: var(--bg-secondary); text-align: left; border-bottom: 1px solid var(--border); }
.acct-table td { padding: 12px 16px; font-size: 0.875rem; border-bottom: 1px solid var(--bg-secondary); }
.acct-table tr:last-child td { border-bottom: none; }

/* Ticket card (support) */
.ticket-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 8px; display: grid; grid-template-columns: auto 1fr auto auto auto auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; transition: all 0.15s; }
.ticket-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.04); border-color: transparent; }
.ticket-card .num { font-weight: 700; font-size: 0.875rem; white-space: nowrap; }
.ticket-card .subj { font-size: 0.875rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-card .cat, .ticket-card .date { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* Address card */
.addr-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; margin-bottom: 8px; }
.addr-card:hover { border-color: var(--secondary); }
.addr-card.selected { border-color: var(--secondary); background: rgba(37,99,235,0.03); }
.addr-card input[type=radio] { margin-top: 3px; accent-color: var(--secondary); }

/* Order timeline (order detail) */
.order-timeline { position: relative; padding-left: 28px; }
.order-timeline::before { content: ''; position: absolute; left: 10px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.tl-step { position: relative; padding-bottom: 24px; }
.tl-step::before { content: ''; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid var(--bg); }
.tl-step.done::before { background: var(--success); border-color: var(--success-light); }
.tl-step.active::before { background: var(--secondary); border-color: var(--secondary-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.tl-step .tl-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.tl-step .tl-date { font-size: 0.75rem; color: var(--text-muted); }
.acct-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.acct-section h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }

/* Tickets (support) */
.ticket-msg { display: flex; gap: 12px; margin-bottom: 16px; }
.ticket-msg .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.ticket-msg .msg-body { flex: 1; background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 12px 16px; }
.ticket-msg .msg-body .meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.ticket-msg .msg-body .text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.reply-box { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.reply-box textarea { width: 100%; border: none; padding: 12px 16px; font-size: 0.875rem; resize: vertical; min-height: 80px; outline: none; font-family: inherit; }

/* Loyalty */
.points-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 576px) { .points-grid { grid-template-columns: 1fr; } }
.points-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.points-card .pts { font-size: 2.5rem; font-weight: 800; color: var(--secondary); }
.points-card .pts-label { font-size: 0.8125rem; color: var(--text-muted); }

/* Notifications list */
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border-light); transition: background var(--transition); }
.notif-item:hover { background: var(--bg-secondary); }
.notif-item.unread { background: rgba(37,99,235,0.03); border-left: 3px solid var(--secondary); }
.notif-item .icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.125rem; }

/* Page hide header utility */
.hide-header .header-sticky,
.hide-header .hd-util,
.hide-header .announcement-bar { display: none; }
/* Print styles (order detail) */
@media print {
  body * { visibility: hidden; }
  .dash-sidebar, .header-sticky, .announcement-bar, .footer, .top-bar, .site-nav { display: none; }
  .dash-main, .dash-main * { visibility: visible; }
  .dash-main { position: absolute; left: 0; top: 0; width: 100%; }
  .order-detail-actions .btn { display: none; }
}

/* ============================================
   ACCOUNT (Page-specific Extensions)
   ============================================ */

/* Alternate layout (support + loyalty) */
.acct-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0; align-items: start; }
@media (max-width: 768px) { .acct-layout { grid-template-columns: 1fr; } }

/* Order detail page */
.order-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.order-detail-actions { display: flex; gap: 8px; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 992px) { .order-detail-grid { grid-template-columns: 1fr; } }
.order-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bg-secondary); }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.order-item-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-name { font-size: 0.875rem; font-weight: 600; }
.order-item-sku { font-size: 0.75rem; font-family: var(--font-mono); color: var(--text-muted); }
.order-item-qty, .order-item-price { font-size: 0.875rem; color: var(--text-secondary); white-space: nowrap; text-align: right; }
.order-item-subtotal { font-size: 0.875rem; font-weight: 600; white-space: nowrap; text-align: right; min-width: 80px; }
.order-totals { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.order-totals .summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.875rem; }
.order-totals .summary-row .label { color: var(--text-muted); }
.order-totals .summary-row.total { font-size: 1rem; font-weight: 700; border-top: 1px solid var(--bg-secondary); padding-top: 8px; margin-top: 8px; }
.order-address { font-size: 0.875rem; line-height: 1.7; color: var(--text-secondary); }
.order-payment-info { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.order-payment-info .label { color: var(--text-muted); display: inline-block; min-width: 100px; }
.order-tracking { font-size: 0.875rem; }
.order-tracking .label { color: var(--text-muted); display: inline-block; min-width: 100px; }

/* Order timeline (horizontal, order detail page) */
.order-timeline-h { display: flex; gap: 0; margin-bottom: 32px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; }
.tl-step-h { display: flex; align-items: flex-start; gap: 12px; flex: 1; position: relative; min-width: 140px; }
.tl-step-h:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: 28px; right: 0; height: 2px; background: var(--border); z-index: 0; }
.tl-step-h.done:not(:last-child)::after { background: var(--success); }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-card); flex-shrink: 0; margin-top: 4px; z-index: 1; position: relative; }
.tl-step-h.done .tl-dot { background: var(--success); border-color: var(--success); }
.tl-label { font-size: 0.875rem; font-weight: 600; }
.tl-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Support ticket detail */
.ticket-hdr { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.ticket-hdr h1 { font-size: 1.375rem; font-weight: 700; margin: 0; }
.ticket-meta { font-size: 0.8125rem; color: var(--text-muted); }
.ticket-msg-view { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; max-width: 80%; }
.ticket-msg-view.customer { margin-right: auto; border-bottom-left-radius: 4px; }
.ticket-msg-view.support { margin-left: auto; border-bottom-right-radius: 4px; background: rgba(37,99,235,0.04); border-color: rgba(37,99,235,0.15); }
.ticket-msg-view .sender { font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ticket-msg-view .sender .badge { font-size: 0.625rem; padding: 1px 6px; border-radius: 100px; background: rgba(37,99,235,0.1); color: var(--secondary); font-weight: 600; }
.ticket-msg-view .text { font-size: 0.875rem; line-height: 1.6; margin: 0; }
.ticket-msg-view .time { font-size: 0.6875rem; color: var(--text-muted); margin-top: 6px; }
.reply-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 12px; }
.reply-box textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.875rem; resize: vertical; background: var(--bg-secondary); color: var(--text); }
.priority-badge { font-size: 0.6875rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; }
.priority-badge.low { background: rgba(148,163,184,0.1); color: #64748B; }
.priority-badge.normal { background: rgba(37,99,235,0.1); color: var(--secondary); }
.priority-badge.high { background: rgba(245,158,11,0.1); color: #D97706; }
.priority-badge.urgent { background: rgba(239,68,68,0.1); color: #DC2626; }
.new-ticket-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; display: none; }

/* Address form & card extras */
.addr-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.addr-card .default-badge { position: absolute; top: 12px; right: 12px; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 100px; background: rgba(16,185,129,0.1); color: #059669; }
.addr-card .type-badge { display: inline-block; font-size: 0.625rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; margin-bottom: 6px; text-transform: uppercase; }
.type-badge.shipping { background: rgba(37,99,235,0.1); color: var(--secondary); }
.type-badge.billing { background: rgba(139,92,246,0.1); color: #7C3AED; }
.addr-card .name { font-size: 0.9375rem; font-weight: 700; margin: 0 0 2px; }
.addr-card .details { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.addr-card .actions { margin-top: 12px; display: flex; gap: 8px; }
.addr-card .actions a { font-size: 0.75rem; font-weight: 600; text-decoration: none; padding: 5px 12px; border-radius: var(--radius-sm); transition: all 0.15s; }
.addr-card .actions .edit-link { color: var(--secondary); background: rgba(37,99,235,0.06); }
.addr-card .actions .default-link { color: #059669; background: rgba(16,185,129,0.06); }
.addr-card .actions .delete-link { color: var(--error); background: rgba(239,68,68,0.06); }

/* Notifications list (notification page) */
.notif-list { display: flex; flex-direction: column; gap: 2px; }
.notif-title { font-size: 0.875rem; font-weight: 600; }
.notif-msg { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 2px; }
.notif-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.notif-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.acct-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.acct-pagination .page-btn { display: 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); text-decoration: none; color: var(--text); font-size: 0.875rem; font-weight: 500; transition: all 0.15s; }
.acct-pagination .page-btn:hover { background: var(--bg-hover); }
.acct-pagination .page-btn.active { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.acct-empty { text-align: center; padding: 60px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.acct-empty-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.acct-empty-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.acct-empty-text { font-size: 14px; color: var(--text-muted); margin: 0 0 20px; }

.acct-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.acct-hdr h1 { font-size: 1.375rem; font-weight: 700; margin: 0; }
.acct-hdr p { font-size: 14px; font-weight: 400; color: var(--text-muted); margin: 0; }

.acct-badge { background: #F59E0B; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; display: inline-block; line-height: 1.4; }

.acct-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.acct-card-hdr { font-size: 16px; font-weight: 700; padding: 20px 20px 0; margin: 0 0 16px; }

.acct-inline { display: inline; }

.acct-grid-2 { display: grid; gap: 1rem; }
.acct-grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 768px) { .acct-grid-2-cols { grid-template-columns: 1fr; } }

/* Loyalty page */
.points-hero { background: linear-gradient(135deg, var(--secondary), #7C3AED); border-radius: var(--radius-xl); padding: 40px; color: #fff; text-align: center; margin-bottom: 24px; }
.points-hero .big { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.points-hero .lbl { font-size: 0.9375rem; opacity: 0.85; margin-top: 4px; }
.points-hero .sub { font-size: 0.8125rem; opacity: 0.7; margin-top: 12px; }
.earn-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.earn-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.earn-card ul { list-style: none; padding: 0; margin: 0; }
.earn-card li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.875rem; color: var(--text-secondary); }
.earn-card li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--secondary); }
.ref-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.ref-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.ref-link-box { display: flex; gap: 8px; margin-top: 12px; }
.ref-link-box input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; background: var(--bg-secondary); color: var(--text); font-family: var(--font-mono); }
.ref-share { display: flex; gap: 8px; margin-top: 8px; }
.ref-share a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.8125rem; font-weight: 600; text-decoration: none; color: #fff; }
.ref-share .email-share { background: var(--secondary); }
.ref-share .wa-share { background: #25D366; }
.pts-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.pts-table th { text-align: left; padding: 12px 16px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.pts-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.pts-positive { color: var(--success); font-weight: 700; }
.pts-negative { color: var(--error); font-weight: 700; }

/* Order card grid (6 cols for orders page with pay badge) */
.order-card a { grid-template-columns: auto 1fr auto auto auto auto; }

/* Standalone order status classes (backward compat) */
.order-pending { background: rgba(245,158,11,0.1); color: #D97706; }
.order-processing { background: rgba(59,130,246,0.1); color: var(--secondary); }
.order-shipped { background: rgba(139,92,246,0.1); color: #7C3AED; }
.order-delivered { background: rgba(16,185,129,0.1); color: #059669; }
.order-approved { background: rgba(16,185,129,0.1); color: #059669; }
.order-cancelled, .order-failed { background: rgba(239,68,68,0.1); color: #DC2626; }
.order-rejected { background: rgba(239,68,68,0.1); color: #DC2626; }

/* Return form */
.return-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.return-form h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; }
.return-form .form-label { font-size: 0.8125rem; font-weight: 600; display: block; margin-bottom: 4px; }
.return-form .form-input, .return-form .form-select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.875rem; background: var(--bg-card); color: var(--text); transition: border-color 0.15s; }
.return-form .form-input:focus, .return-form .form-select:focus { border-color: var(--secondary); outline: none; }
.return-form .form-group { margin-bottom: 14px; }

/* Account pagination (orders page) */
.pagination-account { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination-account a, .pagination-account span { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; font-size: 0.8125rem; font-weight: 600; color: var(--text); transition: all 0.15s; }
.pagination-account a:hover { background: var(--bg-hover); }
.pagination-account .active { background: var(--secondary); color: #fff; border-color: var(--secondary); }

/* ============================================
   SUPPLIER PORTAL — DigiKey-Style Dashboard
   ============================================ */
.sp-layout { display: flex; min-height: calc(100vh - 72px); }
.sp-sidebar { width: 260px; background: #fff; border-right: 1px solid #E2E8F0; position: sticky; top: 72px; align-self: flex-start; height: calc(100vh - 72px); z-index: 50; overflow-y: auto; flex-shrink: 0; box-shadow: 1px 0 0 rgba(0,0,0,0.02); }
.sp-logo { display: flex; align-items: center; gap: 10px; padding: 20px 20px; border-bottom: 1px solid #F1F5F9; }
.sp-logo .icon { width: 34px; height: 34px; background: #0F172A; color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.sp-logo span { font-size: 0.95rem; font-weight: 700; color: #0F172A; }
.sp-nav { padding: 8px 0; }
.sp-nav-section { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #94A3B8; padding: 20px 20px 6px; }
.sp-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 0.8rem; color: #475569; text-decoration: none; transition: all 0.15s; margin: 1px 10px; border-radius: 6px; }
.sp-nav a:hover { background: #F1F5F9; color: #0F172A; }
.sp-nav a.active { background: #EFF6FF; color: #2563EB; font-weight: 600; }
.sp-nav a svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.sp-nav a.active svg { opacity: 1; }
.sp-nav a .badge { margin-left: auto; font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; background: #F1F5F9; color: #64748B; }
.sp-nav a .badge-warning { background: #FEF3C7; color: #D97706; }
.sp-nav a .badge-danger { background: #FEE2E2; color: #DC2626; }
.sp-main { flex: 1; padding: 28px 36px; background: #F8FAFC; min-width: 0; }
.sp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.sp-header h1 { font-size: 1.375rem; font-weight: 700; margin: 0; color: #0F172A; }
.sp-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.sp-card-header { padding: 16px 20px; border-bottom: 1px solid #F1F5F9; display: flex; align-items: center; justify-content: space-between; }
.sp-card-header h3 { font-size: 0.875rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; color: #0F172A; }
.sp-card-body { padding: 20px; }
.sp-card-body.p-0 { padding: 0; }
.sp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.sp-stat { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); transition: box-shadow 0.2s, transform 0.15s; }
.sp-stat:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateY(-1px); }
.sp-stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-stat-icon svg { width: 20px; height: 20px; }
.sp-stat-icon.icon-blue { background: rgba(37,99,235,0.1); color: #2563EB; }
.sp-stat-icon.icon-amber { background: rgba(245,158,11,0.1); color: #D97706; }
.sp-stat-icon.icon-green { background: rgba(16,185,129,0.1); color: #059669; }
.sp-stat-icon.icon-red { background: rgba(239,68,68,0.1); color: #DC2626; }
.sp-stat-icon.icon-purple { background: rgba(139,92,246,0.1); color: #7C3AED; }
.sp-stat-value { font-size: 1.5rem; font-weight: 800; color: #0F172A; }
.sp-stat-label { font-size: 0.75rem; color: #94A3B8; margin-top: 2px; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.sp-table th { padding: 10px 16px; text-align: left; font-weight: 600; font-size: 0.65rem; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.06em; background: #F8FAFC; border-bottom: 1px solid #F1F5F9; }
.sp-table td { padding: 10px 16px; border-bottom: 1px solid #F1F5F9; color: #334155; }
.sp-table tr:last-child td { border-bottom: none; }
.sp-table tr:hover td { background: #FAFBFC; }
.sp-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.sp-quick-action { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid #E2E8F0; border-radius: 100px; text-decoration: none; font-size: 0.8125rem; font-weight: 600; color: #334155; background: #fff; transition: all 0.2s; }
.sp-quick-action:hover { border-color: #2563EB; color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.06); }
.sp-quick-action.primary { background: #2563EB; color: #fff; border-color: #2563EB; }
.sp-quick-action.primary:hover { box-shadow: 0 4px 14px rgba(37,99,235,0.25); }
.sp-quick-action svg { width: 16px; height: 16px; }
.sp-kyc-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; font-size: 0.8125rem; color: #92400E; margin-bottom: 24px; }
.sp-kyc-banner a { color: #2563EB; font-weight: 600; text-decoration: underline; }
.sp-kyc-banner svg { width: 18px; height: 18px; flex-shrink: 0; color: #F59E0B; }
.status-badge { display: inline-flex; align-items: center; font-size: 0.6875rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; text-transform: capitalize; }
.status-badge.pending { background: #FEF3C7; color: #D97706; }
.status-badge.processing { background: #DBEAFE; color: #2563EB; }
.status-badge.shipped { background: #EDE9FE; color: #7C3AED; }
.status-badge.delivered, .status-badge.completed { background: #D1FAE5; color: #059669; }
.status-badge.cancelled { background: #FEE2E2; color: #DC2626; }
.stock-badge { display: inline-flex; align-items: center; font-size: 0.6875rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; text-transform: capitalize; }
.stock-badge.low, .stock-badge.medium { background: #FEF3C7; color: #D97706; }
.stock-badge.critical { background: #FEE2E2; color: #DC2626; }
.stock-badge.high, .stock-badge.in-stock { background: #D1FAE5; color: #059669; }

/* Supplier auth — DigiKey login style */
.sp-auth-wrap { position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; background: #F8FAFC; }
.sp-auth { width: 100%; max-width: 420px; margin: 0 auto; padding: 20px; }
.sp-auth-inner { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.sp-auth-header { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); padding: 32px 32px 28px; text-align: center; }
.sp-auth-header h2 { color: #fff; font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; }
.sp-auth-header p { color: rgba(255,255,255,0.6); font-size: 0.8125rem; margin: 0; }
.sp-auth-body { padding: 28px 32px 32px; }
.sp-auth-tabs { display: flex; gap: 0; margin: -28px -32px 24px; padding: 0 32px; border-bottom: 1px solid #F1F5F9; }
.sp-auth-tab { padding: 12px 0; font-size: 0.875rem; font-weight: 600; color: #94A3B8; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; margin-right: 24px; }
.sp-auth-tab:hover { color: #475569; }
.sp-auth-tab.active { color: #2563EB; border-bottom-color: #2563EB; }
.sp-auth-card .fg { margin-bottom: 16px; }
.sp-auth-card label { display: block; font-size: 0.8125rem; font-weight: 600; color: #334155; margin-bottom: 5px; }
.sp-auth-card input { width: 100%; padding: 10px 12px; border: 1.5px solid #CBD5E1; border-radius: 6px; font-size: 0.875rem; font-family: inherit; background: #fff; color: #0F172A; transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box; }
.sp-auth-card input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.sp-auth-card .btn-block { width: 100%; padding: 12px; font-size: 0.9375rem; }
.sp-auth-card .fr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-auth-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; padding: 12px 16px; border-radius: 6px; font-size: 0.8125rem; margin-bottom: 16px; }

/* Auth switch link */
.sp-auth-switch { text-align: center; margin-top: 16px; font-size: 0.8125rem; color: #94A3B8; }
.sp-auth-switch a { color: #2563EB; font-weight: 600; text-decoration: none; }
.sp-auth-switch a:hover { text-decoration: underline; }

/* Product thumb helper */
.sp-product-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid #E2E8F0; }

/* Supplier form elements */
.sp-empty { text-align: center; padding: 40px 20px; }
.sp-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.3; color: #94A3B8; }
.sp-empty p { font-size: 0.875rem; margin: 0; color: #94A3B8; }
.sp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-form-group { margin-bottom: 16px; }
.sp-form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #334155; margin-bottom: 5px; }
.sp-form-input, .sp-form-select { width: 100%; padding: 9px 12px; border: 1.5px solid #CBD5E1; border-radius: 6px; font-size: 0.875rem; font-family: inherit; background: #fff; color: #0F172A; transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box; }
.sp-form-input:focus, .sp-form-select:focus { outline: 0; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
textarea.sp-form-input { resize: vertical; min-height: 60px; }
.sp-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.sp-filter-select, .sp-filter-input { padding: 6px 12px; border: 1.5px solid #CBD5E1; border-radius: 6px; font-size: 0.8125rem; font-family: inherit; background: #fff; color: #334155; }
.sp-filter-select:focus, .sp-filter-input:focus { outline: 0; border-color: #2563EB; }

/* Supplier stat filter links (clickable stats) */
.sp-stat-link { text-decoration: none; cursor: pointer; display: block; color: inherit; }
.sp-stats-mini { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.sp-stat-val-mini { font-size: 1.25rem; }

/* Status badge extensions */
.status-badge.active { background: #D1FAE5; color: #059669; }
.status-badge.inactive { background: #F1F5F9; color: #64748B; }

/* Action badge (supplier) */
.action-badge { display: inline-flex; padding: 3px 10px; border-radius: 100px; font-size: 0.6875rem; font-weight: 600; }

/* Supplier timeline */
.timeline-sp { display: flex; gap: 0; margin-bottom: 24px; padding: 0; position: relative; justify-content: space-between; overflow: hidden; }
.timeline-sp .tl-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; padding: 0 4px; }
.timeline-sp .tl-step::before { content: ''; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--border); z-index: 0; }
.timeline-sp .tl-step:first-child::before { display: none; }
.timeline-sp .tl-step.completed::before, .timeline-sp .tl-step.active::before { background: var(--secondary); }
.timeline-sp .tl-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--border); border: 3px solid var(--bg); z-index: 1; margin-bottom: 8px; position: relative; box-shadow: 0 0 0 1px var(--border); }
.timeline-sp .tl-step.completed .tl-dot { background: var(--secondary); box-shadow: 0 0 0 1px var(--secondary); }
.timeline-sp .tl-step.active .tl-dot { background: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.timeline-sp .tl-label { font-size: 0.6875rem; font-weight: 600; text-align: center; color: var(--text-muted); white-space: nowrap; }
.timeline-sp .tl-step.completed .tl-label, .timeline-sp .tl-step.active .tl-label { color: var(--secondary); }

/* Order info grid (supplier order detail) */
.order-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.info-block { padding: 16px; background: var(--bg-secondary); border-radius: var(--radius-md); }
.info-block .label { font-size: 0.6875rem; color: var(--text-muted); margin-bottom: 4px; }
.info-block .value { font-size: 0.9375rem; font-weight: 700; color: var(--text); }

/* Alert box (supplier) */
.alert-box { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); font-size: 0.875rem; line-height: 1.5; margin-bottom: 16px; }
.alert-box.warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.alert-box.warning svg { flex-shrink: 0; margin-top: 2px; color: var(--warning); }

/* ============================================
   SELL ON NZTECH (Landing Page)
   ============================================ */
.sell-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width: 768px) { .sell-benefits { grid-template-columns: 1fr; } }
.sell-benefit { padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; }
.sell-benefit svg { width: 32px; height: 32px; color: var(--secondary); margin-bottom: 16px; }
.sell-benefit h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.sell-benefit p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.7; }
.sell-testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; }
@media (max-width: 768px) { .sell-testimonials { grid-template-columns: 1fr; } }
.sell-testimonial { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.sell-testimonial blockquote { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; font-style: italic; }
.sell-testimonial cite { font-size: 0.8125rem; font-weight: 600; font-style: normal; }
.sell-faq { max-width: 720px; margin: 0 auto; }
.sell-faq-item { border-bottom: 1px solid var(--border-light); padding: 16px 0; }
.sell-faq-question { width: 100%; text-align: left; font-size: 0.9375rem; font-weight: 600; color: var(--text); padding: 8px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: none; border: none; }
.sell-faq-question:hover { color: var(--secondary); }
.sell-faq-answer { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; padding: 0 0 8px; }

/* ============================================
   REQUEST QUOTE (DigiKey-style)
   ============================================ */
.ql-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; padding: 24px 0 0; }
.ql-header h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.ql-total { font-size: 1.125rem; font-weight: 700; text-align: right; padding: 16px 0; border-top: 2px solid var(--border); margin-top: 8px; }
.ql-table { width: 100%; border-collapse: collapse; }
.ql-table th { padding: 10px 12px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); text-align: left; border-bottom: 2px solid var(--border); background: var(--bg-secondary); }
.ql-table td { padding: 10px 12px; font-size: 0.8125rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.ql-empty { text-align: center; padding: 60px 20px; }
.ql-empty svg { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 16px; }
.ql-empty h3 { font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.ql-empty p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }
.ql-layout { max-width: 1400px; margin: 0 auto; padding: 24px 16px; }
.ql-header .ql-tour { font-size: 0.8125rem; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.ql-login-bar { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; font-size: 0.875rem; color: var(--text-secondary); }
.ql-login-bar a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ql-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ql-toolbar select, .ql-toolbar input[type="text"] { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; background: var(--bg); color: var(--text); }
.ql-toolbar .btn { font-size: 0.8125rem; }
.ql-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.ql-table td.ql-part { color: var(--primary); font-weight: 500; }
.ql-table .ql-remove { color: var(--error); cursor: pointer; background: none; border: none; font-size: 1rem; padding: 2px 6px; }
.ql-add-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 24px; }
.ql-add-tabs { display: flex; border-bottom: 1px solid var(--border); }
.ql-add-tab { padding: 12px 24px; font-size: 0.8125rem; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-muted); }
.ql-add-tab.active { color: var(--primary); border-bottom-color: var(--secondary); }
.ql-add-panel { display: none; padding: 20px; }
.ql-add-panel.active { display: block; }
.ql-add-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.ql-add-form .form-group { margin-bottom: 0; }
.ql-add-form label { font-size: 0.6875rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; display: block; }
.ql-add-form input, .ql-add-form select { padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; background: var(--bg); color: var(--text); }
.ql-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 768px) {
  .ql-add-form { flex-direction: column; align-items: stretch; }
  .ql-toolbar { flex-direction: column; align-items: stretch; }
}

/* ============================================
   SUPPLIER APPLY — DigiKey-Style Application Form
   ============================================ */
.sa-page { background: #f5f7fa; }
.sa-hero { background: linear-gradient(135deg, #002B5A 0%, #003D7A 50%, #1a4a7a 100%); padding: 48px 0; position: relative; overflow: hidden; }
.sa-hero::after { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.03); pointer-events: none; }
.sa-hero h1 { color: #fff; font-size: 2rem; font-weight: 800; margin: 0 0 8px; }
.sa-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; margin: 0; max-width: 600px; }
.sa-breadcrumb { padding: 16px 0; font-size: 0.8125rem; color: var(--text-muted); }
.sa-breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.sa-breadcrumb a:hover { text-decoration: underline; }
.sa-intro { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 28px 32px; margin: 24px 0; }
.sa-intro h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; color: #0F172A; }
.sa-intro p { font-size: 0.875rem; color: #64748B; margin: 0; line-height: 1.6; }
.sa-form { max-width: 840px; margin: 0 auto; padding: 0 0 64px; }
.sa-form-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 28px 32px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.sa-form-card h2 { font-size: 1.1rem; font-weight: 700; margin: 0 0 2px; color: var(--text); }
.sa-form-card .subtitle { font-size: 0.85rem; color: #64748B; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.sa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .sa-form-row { grid-template-columns: 1fr; } }
.sa-form-row.full { grid-template-columns: 1fr; }
.sa-field { margin-bottom: 16px; }
.sa-field label { display: block; font-size: 0.8125rem; font-weight: 600; color: #1E293B; margin-bottom: 5px; }
.sa-field .hint { font-size: 0.75rem; color: #94A3B8; margin-top: 4px; }
.sa-field input[type="text"],
.sa-field input[type="email"],
.sa-field input[type="tel"],
.sa-field input[type="url"],
.sa-field input[type="password"],
.sa-field input[type="number"],
.sa-field textarea,
.sa-field select { width: 100%; padding: 9px 12px; border: 1.5px solid #CBD5E1; border-radius: 6px; font-size: 0.875rem; font-family: inherit; background: #fff; color: #0F172A; transition: border-color 0.15s, box-shadow 0.15s; outline: none; box-sizing: border-box; }
.sa-field input:focus,
.sa-field textarea:focus,
.sa-field select:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.sa-field input.error { border-color: #DC2626; }
.sa-field textarea { resize: vertical; min-height: 60px; }
.sa-field select { cursor: pointer; appearance: auto; }
/* Custom radio & checkbox — DigiKey style */
.sa-field .radio-group,
.sa-field .checkbox-group { display: flex; gap: 24px; flex-wrap: wrap; padding: 4px 0; }
.sa-field .radio-group label,
.sa-field .checkbox-group label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 0.875rem; cursor: pointer; color: #334155; position: relative; padding: 4px 0; }
.sa-field .radio-group input[type="radio"],
.sa-field .checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: #2563EB; cursor: pointer; }
.sa-field .radio-group input[type="radio"] { border-radius: 50%; }
.sa-submit-wrap { text-align: center; padding: 8px 0 0; }
.sa-submit { padding: 13px 48px; background: #0F172A; color: #fff; font-weight: 700; font-size: 0.95rem; font-family: inherit; border: none; border-radius: 6px; cursor: pointer; transition: background 0.2s, transform 0.15s; display: inline-flex; align-items: center; gap: 8px; }
.sa-submit:hover { background: #1E293B; transform: translateY(-1px); }
.sa-submit:active { transform: translateY(0); }
.sa-terms { font-size: 0.8rem; color: #94A3B8; margin-top: 14px; line-height: 1.6; }
.sa-terms a { color: #2563EB; text-decoration: none; }
.sa-terms a:hover { text-decoration: underline; }
/* File upload dropzone */
.sa-file-upload { border: 2px dashed #CBD5E1; border-radius: 8px; padding: 28px 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; background: #FAFBFC; }
.sa-file-upload:hover { border-color: #2563EB; background: rgba(37,99,235,0.03); }
.sa-file-upload .upload-icon { width: 40px; height: 40px; margin: 0 auto 12px; color: #94A3B8; }
.sa-file-upload .upload-text { font-size: 0.875rem; font-weight: 600; color: #1E293B; margin: 0 0 4px; }
.sa-file-upload .upload-hint { font-size: 0.75rem; color: #94A3B8; margin: 0; }
.sa-success { text-align: center; padding: 60px 20px; max-width: 560px; margin: 40px auto; }
.sa-success .icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(16,185,129,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.sa-success .icon svg { width: 32px; height: 32px; color: #10B981; }
.sa-success h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; color: #0F172A; }
.sa-success p { font-size: 0.95rem; color: #64748B; margin: 0 0 24px; line-height: 1.6; }
.sa-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; padding: 12px 16px; border-radius: 6px; font-size: 0.8125rem; margin-bottom: 20px; }
/* Info CTA after form */
.sa-cta { background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%); border: 1px solid #E2E8F0; border-radius: 8px; padding: 36px 32px; margin-top: 32px; text-align: center; }
.sa-cta h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; color: #0F172A; }
.sa-cta p { font-size: 0.875rem; color: #64748B; margin: 0 0 18px; line-height: 1.6; max-width: 480px; margin-left: auto; margin-right: auto; }
.sa-cta .btn-contact { display: inline-flex; align-items: center; gap: 8px; padding: 11px 28px; background: #2563EB; color: #fff; font-weight: 600; font-size: 0.875rem; font-family: inherit; border: none; border-radius: 6px; text-decoration: none; cursor: pointer; transition: background 0.2s; }
.sa-cta .btn-contact:hover { background: #1D4ED8; }

/* ============================================
   VENDOR / SELLER DASHBOARD (pages/vendor/*.php)
   ============================================ */
/* --- Layout --- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--bg-card, #fff); color: var(--text-primary, #1E293B); border-right: 1px solid var(--border, #E2E8F0); position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto; }
.admin-main { flex: 1; margin-left: 260px; padding: 24px 32px; min-height: 100vh; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 1.375rem; font-weight: 700; margin: 0; }
.admin-header-right { display: flex; align-items: center; gap: 12px; }
.sidebar-toggle { background: none; border: none; cursor: pointer; padding: 8px; border-radius: 8px; display: flex; }
.sidebar-toggle svg { width: 20px; height: 20px; color: var(--text-secondary); }

/* --- Admin Sidebar (vendor sidebar) --- */
.vendor-sidebar .admin-logo,
.admin-sidebar .admin-logo { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; border-bottom: 1px solid var(--border-light, #F1F5F9); margin-bottom: 8px; }
.vendor-sidebar .admin-logo .logo-icon,
.admin-sidebar .admin-logo .logo-icon { width: 36px; height: 36px; background: var(--secondary, #2563EB); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1rem; flex-shrink: 0; overflow: hidden; }
.vendor-sidebar .admin-logo .logo-icon img,
.admin-sidebar .admin-logo .logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vendor-sidebar .admin-logo span,
.admin-sidebar .admin-logo span { font-size: 1.125rem; font-weight: 700; color: var(--text-primary, #1E293B); }
.sidebar-toggle-mobile { display: none; width: 32px; height: 32px; border-radius: 8px; background: var(--bg-tertiary, #F1F5F9); color: var(--text-muted, #94A3B8); align-items: center; justify-content: center; cursor: pointer; border: none; flex-shrink: 0; }
.sidebar-toggle-mobile svg { width: 18px; height: 18px; }
.admin-nav { display: flex; flex-direction: column; gap: 1px; padding: 0 0 16px; }
.admin-nav-section { padding: 12px 20px 6px; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted, #94A3B8); }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text-secondary, #475569); font-size: 0.8125rem; font-weight: 500; text-decoration: none; transition: all .15s; margin: 0 8px; border-radius: 8px; }
.admin-nav a:hover { background: var(--bg-tertiary, #F1F5F9); color: var(--text-primary, #1E293B); }
.admin-nav a.active { background: rgba(37,99,235,0.06); color: var(--secondary, #2563EB); font-weight: 600; }
.admin-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
.admin-nav a.active svg { opacity: 1; color: var(--secondary, #2563EB); }
.admin-nav a .badge { margin-left: auto; font-size: 0.6875rem; font-weight: 700; padding: 1px 8px; border-radius: 100px; background: var(--secondary, #2563EB); color: #fff; min-width: 20px; text-align: center; }
.admin-nav a .badge-warning { background: #F59E0B; }
.admin-nav a .badge-danger { background: #EF4444; }

/* --- Cards --- */
.admin-layout .card { background: var(--bg-card, #fff); border: 1px solid var(--border, #E2E8F0); border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.admin-layout .card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #F1F5F9; font-size: 0.875rem; font-weight: 600; }
.admin-layout .card-header h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.875rem; }
.admin-layout .card-header h3 svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-layout .card-body { padding: 20px; }
.admin-layout .card-body.p-0 { padding: 0; }

/* --- Stats Grid --- */
.admin-layout .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-layout .stat-card { background: var(--bg-card, #fff); border: 1px solid var(--border, #E2E8F0); border-radius: 16px; padding: 20px; transition: all .2s; }
.admin-layout .stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); transform: translateY(-2px); }
.admin-layout .stat-card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.admin-layout .stat-card-icon svg { width: 20px; height: 20px; }
.admin-layout .stat-card-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 4px; color: var(--text, #1E293B); }
.admin-layout .stat-card-label { font-size: 0.75rem; color: #94A3B8; margin-bottom: 4px; }
.admin-layout .stat-card-change { font-size: 0.6875rem; padding: 2px 8px; border-radius: 100px; display: inline-flex; align-items: center; gap: 4px; }
.admin-layout .stat-card-change.up { background: rgba(16,185,129,.1); color: #10B981; }
.admin-layout .stat-card-change.warn { background: rgba(245,158,11,.1); color: #F59E0B; }
.admin-layout .stat-card-change.down { background: rgba(239,68,68,.1); color: #EF4444; }

/* Mini stat cards */
.admin-layout .stat-mini-card { background: var(--bg-card, #fff); border: 1px solid var(--border, #E2E8F0); border-radius: 12px; padding: 14px 16px; text-align: center; cursor: pointer; text-decoration: none; color: inherit; transition: all .2s; display: block; }
.admin-layout .stat-mini-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); transform: translateY(-1px); }
.admin-layout .stat-mini-card .num { font-size: 1.25rem; font-weight: 800; }
.admin-layout .stat-mini-card .lbl { font-size: 0.6875rem; color: #94A3B8; margin-top: 2px; }
.admin-layout .stat-mini { background: var(--bg-card, #fff); border: 1px solid var(--border, #E2E8F0); border-radius: 12px; padding: 12px; text-align: center; text-decoration: none; color: inherit; display: block; transition: all .2s; }
.admin-layout .stat-mini:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.admin-layout .stat-mini .num { font-size: 1.125rem; font-weight: 800; }
.admin-layout .stat-mini .lbl { font-size: 0.625rem; color: #94A3B8; margin-top: 2px; }

/* --- Tables --- */
.admin-layout .admin-table { width: 100%; border-collapse: collapse; }
.admin-layout .admin-table th { text-align: left; padding: 12px 16px; font-size: 0.6875rem; font-weight: 600; color: #94A3B8; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #F1F5F9; background: #FAFAFA; }
.admin-layout .admin-table td { padding: 10px 16px; font-size: 0.8125rem; border-bottom: 1px solid #F1F5F9; }
.admin-layout .admin-table tbody tr:hover { background: #F8FAFC; }

/* --- Action Badge (vendor variant) --- */
.admin-layout .action-badge { display: inline-flex; padding: 3px 10px; border-radius: 100px; font-size: 0.6875rem; font-weight: 600; }
.admin-layout .action-badge.pending { background: rgba(245,158,11,.1); color: #F59E0B; }
.admin-layout .action-badge.processing { background: rgba(37,99,235,.1); color: #2563EB; }
.admin-layout .action-badge.shipped { background: rgba(139,92,246,.1); color: #8B5CF6; }
.admin-layout .action-badge.delivered, .admin-layout .action-badge.completed { background: rgba(16,185,129,.1); color: #10B981; }
.admin-layout .action-badge.cancelled { background: rgba(239,68,68,.1); color: #EF4444; }
.admin-layout .action-badge.rejected { background: rgba(239,68,68,.1); color: #EF4444; }
.admin-layout .action-badge.draft { background: rgba(148,163,184,.1); color: #64748B; }
.admin-layout .action-badge.approved, .admin-layout .action-badge.active { background: rgba(16,185,129,.1); color: #10B981; }

/* --- Stock Badge --- */
.admin-layout .stock-badge { display: inline-flex; padding: 2px 8px; border-radius: 100px; font-size: 0.6875rem; font-weight: 600; }
.admin-layout .stock-badge.critical { background: rgba(239,68,68,.1); color: #EF4444; }
.admin-layout .stock-badge.low { background: rgba(245,158,11,.1); color: #F59E0B; }
.admin-layout .stock-badge.ok, .admin-layout .stock-badge.high { background: rgba(16,185,129,.1); color: #10B981; }
.admin-layout .stock-badge.medium { background: rgba(245,158,11,.1); color: #F59E0B; }

/* --- Buttons (vendor variant) --- */
.admin-layout .btn { padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 0.8125rem; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: all .2s; }
.admin-layout .btn-primary { background: #2563EB; color: #fff; }
.admin-layout .btn-primary:hover { background: #1D4ED8; }
.admin-layout .btn-ghost { background: none; color: #475569; border: 1px solid #E2E8F0; }
.admin-layout .btn-ghost:hover { background: #F8FAFC; }
.admin-layout .btn-sm { padding: 6px 12px; font-size: 0.75rem; }
.admin-layout .btn-lg { padding: 12px 24px; }
.admin-layout .btn-success { background: #10B981; color: #fff; }
.admin-layout .btn-success:hover { background: #059669; }
.admin-layout .btn-danger { background: #EF4444; color: #fff; }
.admin-layout .btn-danger:hover { background: #DC2626; }
.admin-layout .btn-warning { background: #F59E0B; color: #fff; }
.admin-layout .btn-warning:hover { background: #D97706; }

/* --- Dashboard Grid 2-col --- */
.admin-layout .dashboard-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 1024px) { .admin-layout .dashboard-grid-2 { grid-template-columns: 1fr; } }
.admin-layout .dashboard-card-mb { margin-bottom: 20px; }

/* --- Charts --- */
.admin-layout .chart-container { position: relative; height: 220px; width: 100%; }
.admin-layout .chart-container-sm { position: relative; height: 220px; width: 100%; }

/* --- Filters --- */
.admin-layout .filters { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.admin-layout .filter-select, .admin-layout .filter-input { padding: 8px 12px; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 0.8125rem; background: #fff; }
.admin-layout .filter-input { min-width: 200px; }
.admin-layout .table-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* --- Alert Box --- */
.admin-layout .alert-box { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 0.875rem; }
.admin-layout .alert-box.warning { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); color: #92400E; }
.admin-layout .alert-box.info { background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.2); color: #1E40AF; }
.admin-layout .alert-box.error { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #991B1B; }
.admin-layout .alert-box.success { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2); color: #065F46; }
.admin-layout .alert-box a { color: inherit; font-weight: 600; text-decoration: underline; }
.admin-layout .alert-box svg:first-child { flex-shrink: 0; margin-top: 2px; }
.admin-layout .alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.875rem; }
.admin-layout .alert-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }

/* --- Forms --- */
.admin-layout .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .admin-layout .form-row { grid-template-columns: 1fr; } }
.admin-layout .form-group { margin-bottom: 16px; }
.admin-layout .form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #475569; margin-bottom: 6px; }
.admin-layout .form-input, .admin-layout .form-select { width: 100%; padding: 10px 12px; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 0.875rem; background: #fff; transition: border-color .2s; box-sizing: border-box; color: var(--text, #1E293B); }
.admin-layout .form-input:focus, .admin-layout .form-select:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.admin-layout textarea.form-input { resize: vertical; }

/* --- Status Badge (profile) --- */
.status-badge { display: inline-flex; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.status-badge.approved { background: rgba(16,185,129,.1); color: #10B981; }
.status-badge.pending { background: rgba(245,158,11,.1); color: #F59E0B; }
.status-badge.rejected { background: rgba(239,68,68,.1); color: #EF4444; }
.status-badge.none { background: rgba(148,163,184,.1); color: #64748B; }
.status-badge.draft { background: rgba(148,163,184,.1); color: #64748B; }

/* --- Vendor Welcome --- */
.vendor-welcome { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.vendor-welcome h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; }
.vendor-welcome p { margin: 0; color: #94A3B8; font-size: 0.875rem; }

/* --- Quick Actions --- */
.quick-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.quick-action-btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; font-size: 0.875rem; font-weight: 500; color: #475569; text-decoration: none; transition: all .2s; }
.quick-action-btn:hover { background: #2563EB; color: #fff; border-color: #2563EB; box-shadow: 0 4px 12px rgba(37,99,235,.2); }
.quick-action-btn svg { width: 18px; height: 18px; }

/* --- Finance Summary --- */
.finance-summary { display: flex; flex-direction: column; gap: 12px; }
.finance-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 8px; }
.finance-item.revenue { background: rgba(37,99,235,.05); }
.finance-item.commission { background: rgba(245,158,11,.05); }
.finance-item.net { background: rgba(16,185,129,.05); }
.finance-item .amount { font-size: 1.125rem; font-weight: 700; }
.finance-item .label { font-size: 0.8125rem; color: #64748B; }
.finance-item.revenue .amount { color: #2563EB; }
.finance-item.commission .amount { color: #F59E0B; }
.finance-item.net .amount { color: #10B981; }

/* --- Order Info Grid --- */
.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 768px) { .order-info-grid { grid-template-columns: 1fr; } }
.info-block { padding: 16px; background: #F8FAFC; border-radius: 10px; }
.info-block .label { font-size: 0.6875rem; color: #94A3B8; text-transform: uppercase; letter-spacing: .05em; }
.info-block .value { font-size: 0.875rem; font-weight: 600; margin-top: 4px; }

/* --- Timeline (orders detail) --- */
.timeline { display: flex; gap: 0; margin-bottom: 20px; overflow-x: auto; }
.tl-step { flex: 1; text-align: center; position: relative; padding: 12px 0; }
.tl-step:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: 60%; width: 80%; height: 3px; background: #E2E8F0; z-index: 0; }
.tl-step.active .tl-dot { background: #2563EB; border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,.2); }
.tl-step.active .tl-label { color: #2563EB; font-weight: 600; }
.tl-step.completed .tl-dot { background: #10B981; border-color: #10B981; }
.tl-step.completed .tl-label { color: #10B981; }
.tl-step.completed:not(:last-child)::after { background: #10B981; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 3px solid #E2E8F0; background: #fff; margin: 0 auto 8px; position: relative; z-index: 1; }
.tl-label { font-size: 0.75rem; color: #94A3B8; }

/* --- Reviews --- */
.rating-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rating-bar-track { flex: 1; height: 8px; background: #F1F5F9; border-radius: 100px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #F59E0B; border-radius: 100px; transition: width .3s; }
.review-item { padding: 16px 0; border-bottom: 1px solid #F1F5F9; }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.review-rating { color: #F59E0B; font-size: 0.875rem; }
.review-author { font-weight: 600; font-size: 0.875rem; }
.review-product { font-size: 0.75rem; color: #94A3B8; }
.review-product a { color: #2563EB; }
.review-date { font-size: 0.75rem; color: #94A3B8; }
.review-text { font-size: 0.875rem; color: #475569; margin: 8px 0; }
.review-reply { margin: 12px 0 0 20px; padding: 12px; background: #F8FAFC; border-radius: 8px; border-left: 3px solid #2563EB; }
.review-reply textarea { width: 100%; min-height: 60px; border: 1px solid #E2E8F0; border-radius: 8px; padding: 8px 12px; font-size: 0.8125rem; resize: vertical; box-sizing: border-box; }
.review-reply .btn { margin-top: 8px; }

/* --- Store Preview --- */
.store-preview { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; padding: 20px; background: #F8FAFC; border-radius: 12px; }
.store-preview img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; border: 2px solid #E2E8F0; }

/* --- Section Title / Spec --- */
.admin-layout .section-title { font-size: 1rem; font-weight: 700; color: #1E293B; margin: 24px 0 16px; padding-bottom: 8px; border-bottom: 1px solid #F1F5F9; }
.admin-layout .spec-row { display: flex; gap: 8px; margin-bottom: 8px; }
.admin-layout .spec-row input { flex: 1; }

/* --- Form Card --- */
.admin-layout .form-card { background: var(--bg-card, #fff); border: 1px solid var(--border, #E2E8F0); border-radius: 16px; padding: 24px; }

/* --- Messaging --- */
.admin-layout .messaging-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid #E2E8F0; border-radius: 16px; overflow: hidden; background: #fff; min-height: 500px; }
.admin-layout .conv-list { border-right: 1px solid #E2E8F0; overflow-y: auto; max-height: 600px; }
.admin-layout .conv-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #F1F5F9; cursor: pointer; text-decoration: none; color: inherit; transition: background .2s; }
.admin-layout .conv-item:hover { background: #F8FAFC; }
.admin-layout .conv-item.active { background: rgba(37,99,235,.05); border-left: 3px solid #2563EB; }
.admin-layout .conv-item.unread { background: #F0F7FF; }
.admin-layout .conv-avatar { width: 40px; height: 40px; border-radius: 50%; background: #2563EB; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.admin-layout .conv-info { flex: 1; min-width: 0; }
.admin-layout .conv-name { font-weight: 600; font-size: 0.8125rem; display: flex; align-items: center; gap: 6px; }
.admin-layout .conv-preview { font-size: 0.75rem; color: #94A3B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-layout .conv-time { font-size: 0.6875rem; color: #94A3B8; white-space: nowrap; }
.admin-layout .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #2563EB; flex-shrink: 0; display: inline-block; }
.admin-layout .chat-area { display: flex; flex-direction: column; max-height: 600px; }
.admin-layout .chat-header { padding: 14px 20px; border-bottom: 1px solid #F1F5F9; font-weight: 600; font-size: 0.875rem; display: flex; align-items: center; gap: 10px; }
.admin-layout .chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.admin-layout .chat-msg { max-width: 75%; padding: 10px 14px; border-radius: 12px; font-size: 0.8125rem; line-height: 1.4; }
.admin-layout .chat-msg.incoming { background: #F1F5F9; align-self: flex-start; border-bottom-left-radius: 4px; }
.admin-layout .chat-msg.outgoing { background: #2563EB; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.admin-layout .chat-msg .meta { font-size: 0.625rem; margin-top: 4px; opacity: .7; }
.admin-layout .chat-input { padding: 14px 20px; border-top: 1px solid #F1F5F9; display: flex; gap: 10px; }
.admin-layout .chat-input input { flex: 1; padding: 10px 14px; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 0.875rem; outline: none; }
.admin-layout .chat-input input:focus { border-color: #2563EB; }
.admin-layout .chat-input button { padding: 10px 20px; background: #2563EB; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.admin-layout .chat-input button:hover { background: #1D4ED8; }
.admin-layout .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: #94A3B8; text-align: center; }
.admin-layout .empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: .4; }

/* --- Finance Comparison --- */
.admin-layout .comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.admin-layout .comparison-card { padding: 16px; border-radius: 12px; text-align: center; }
.admin-layout .comparison-card.this-month { background: rgba(37,99,235,.05); }
.admin-layout .comparison-card.last-month { background: rgba(148,163,184,.05); }
.admin-layout .comparison-card .label { font-size: 0.6875rem; color: #94A3B8; text-transform: uppercase; }
.admin-layout .comparison-card .amount { font-size: 1.375rem; font-weight: 800; margin: 4px 0; }
.admin-layout .comparison-card .change { font-size: 0.75rem; padding: 2px 8px; border-radius: 100px; display: inline-flex; }
.admin-layout .comparison-card .change.up { background: rgba(16,185,129,.1); color: #10B981; }
.admin-layout .comparison-card .change.down { background: rgba(239,68,68,.1); color: #EF4444; }

/* --- Modal / Dialog (finance) --- */
.admin-layout .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 1000; align-items: center; justify-content: center; }
.admin-layout .modal-overlay.show { display: flex; }
.admin-layout .modal { background: #fff; border-radius: 16px; padding: 24px; width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.admin-layout .modal h2 { margin: 0 0 16px; font-size: 1.125rem; }

/* --- Analytics Range Selector --- */
.admin-layout .range-selector { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.admin-layout .range-btn { padding: 6px 14px; border-radius: 8px; font-size: 0.8125rem; font-weight: 500; border: 1px solid #E2E8F0; background: #fff; color: #475569; cursor: pointer; text-decoration: none; transition: all .2s; }
.admin-layout .range-btn.active { background: #2563EB; color: #fff; border-color: #2563EB; }
.admin-layout .range-btn:hover:not(.active) { background: #F8FAFC; }
.admin-layout .comparison-row { display: flex; gap: 16px; margin-bottom: 16px; }
.admin-layout .comp-card { flex: 1; padding: 16px; border-radius: 12px; text-align: center; }
.admin-layout .comp-card.current { background: rgba(37,99,235,.05); }
.admin-layout .comp-card.previous { background: rgba(148,163,184,.05); }
.admin-layout .comp-card .lbl { font-size: 0.6875rem; color: #94A3B8; text-transform: uppercase; }
.admin-layout .comp-card .amt { font-size: 1.5rem; font-weight: 800; margin: 4px 0; }
.admin-layout .comp-card .chg { font-size: 0.75rem; padding: 2px 8px; border-radius: 100px; display: inline-block; }
.admin-layout .comp-card .chg.up { background: rgba(16,185,129,.1); color: #10B981; }
.admin-layout .comp-card .chg.down { background: rgba(239,68,68,.1); color: #EF4444; }

/* Print styles */
@media print { .admin-sidebar, .sidebar-toggle, .admin-layout .btn, .order-actions, .admin-header { display: none !important; } .admin-main { margin-left: 0 !important; padding: 0 !important; } }

/* ============================================
   ACCOUNT SIDEBAR (Account pages shared)
   ============================================ */
.acct-sidebar { width: 260px; flex-shrink: 0; }
@media (max-width: 768px) { .acct-sidebar { width: 100%; } }
.acct-user { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 16px; }
.acct-user h4 { font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.acct-user p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }
.acct-user-info { min-width: 0; }
.acct-user-info strong { display: block; font-size: 0.875rem; font-weight: 600; }
.acct-user-info small { font-size: 0.75rem; color: var(--text-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), #1D4ED8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; flex-shrink: 0; }
.acct-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.acct-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-md); font-size: 0.875rem; color: var(--text); text-decoration: none; transition: all var(--transition); font-weight: 500; }
.acct-nav-item:hover { background: var(--bg-hover); color: var(--secondary); }
.acct-nav-item.active { background: rgba(var(--secondary-rgb), 0.08); color: var(--secondary); font-weight: 600; }

/* ============================================
   CART
   ============================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 24px 0; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
@media (max-width: 768px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.cart-item-img { width: 80px; height: 80px; border-radius: var(--radius-md); background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.cart-item-mfr { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.cart-item-part { font-size: 0.6875rem; color: var(--text-muted); font-family: monospace; }
.cart-item-qty { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.cart-item-qty input { width: 60px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; text-align: center; }
.cart-item-price { text-align: right; flex-shrink: 0; }
.cart-item-price .current { font-size: 1rem; font-weight: 700; color: var(--text); }
.cart-item-price .original { font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; }
.cart-summary { background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px; }
.cart-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 8px; }
.cart-summary-total { display: flex; justify-content: space-between; font-size: 1.125rem; font-weight: 700; color: var(--text); margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--border); }

/* Cart extras */
.cart-header { margin-bottom: 24px; }
.cart-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0; }
.cart-header .count { font-size: 0.875rem; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.cart-items { list-style: none; padding: 0; margin: 0; }
.cart-item-remove {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: var(--text-muted); cursor: pointer;
  transition: color var(--transition); background: none; border: none; padding: 4px;
}
.cart-item-remove:hover { color: var(--error); }
.cart-item .qty-selector { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; height: 32px; }
.cart-item .qty-selector button { width: 30px; height: 100%; border: none; background: var(--bg-secondary); cursor: pointer; font-size: 0.875rem; color: var(--text); transition: background var(--transition); }
.cart-item .qty-selector button:hover { background: var(--bg-tertiary); }
.cart-item .qty-selector input { width: 44px; height: 100%; border: none; text-align: center; font-size: 0.8125rem; font-weight: 600; background: transparent; outline: none; color: var(--text); -moz-appearance: textfield; }
.cart-item .qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item-mobile-price { display: none; font-size: 0.875rem; font-weight: 700; color: var(--text); margin-top: 4px; }
@media (max-width: 600px) {
  .cart-item { flex-wrap: wrap; position: relative; }
  .cart-item-price { display: none; }
  .cart-item-mobile-price { display: block; }
  .cart-item-remove { position: absolute; top: 16px; right: 0; }
}
.coupon-form { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-form input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; outline: none; transition: border-color var(--transition); }
.coupon-form input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.coupon-form .btn { white-space: nowrap; }
.cart-summary .cart-summary-row.discount { color: var(--success); }
.cart-actions { display: flex; gap: 12px; margin-top: 24px; }
@media (max-width: 768px) {
  .cart-actions { flex-direction: column; }
  .cart-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================
   CHECKOUT
   ============================================ */
.chk-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; padding: 24px 0 0; }
.chk-header h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.chk-header .secure-badge { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--success); font-weight: 600; }
.chk-header .secure-badge svg { width: 16px; height: 16px; }

/* Steps */
.chk-steps { display: flex; gap: 0; margin-bottom: 32px; position: relative; counter-reset: step; }
.chk-steps::before { content: ''; position: absolute; top: 24px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.chk-step-indicator { flex: 1; text-align: center; position: relative; z-index: 1; }
.chk-step-circle { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-weight: 700; font-size: 1rem; background: var(--bg-secondary); color: var(--text-muted); border: 2px solid var(--border); transition: all 0.3s; }
.chk-step-indicator.active .chk-step-circle { background: var(--secondary); color: #fff; border-color: var(--secondary); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.chk-step-indicator.done .chk-step-circle { background: var(--success); color: #fff; border-color: var(--success); }
.chk-step-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.chk-step-indicator.active .chk-step-label { color: var(--secondary); }
.chk-step-indicator.done .chk-step-label { color: var(--success); }
.chk-step-indicator.done { cursor: pointer; }

/* Step panels */
.chk-panel { display: none; animation: fadeSlideIn 0.3s ease; }
.chk-panel.active { display: block; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Navigation */
.chk-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.chk-nav .btn-prev { background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text); }
.chk-nav .btn-prev:hover { background: var(--border); }
.chk-nav .btn-next { background: var(--secondary); border: none; color: #fff; }
.chk-nav .btn-next:hover { box-shadow: 0 4px 16px rgba(37,99,235,0.3); transform: translateY(-1px); }

/* Layout */
.chk-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding: 0 0 32px; }
@media (max-width: 992px) { .chk-layout { grid-template-columns: 1fr; } }

/* Form sections */
.chk-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.chk-section h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--bg-secondary); }

/* Address card */
.addr-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; margin-bottom: 8px; }
.addr-card:hover { border-color: var(--secondary); }
.addr-card.selected { border-color: var(--secondary); background: rgba(37,99,235,0.03); }
.addr-card input[type=radio] { margin-top: 3px; accent-color: var(--secondary); }
.addr-card strong { display: block; font-size: 0.875rem; }
.addr-card small { color: var(--text-muted); font-size: 0.8125rem; }
.chk-section .add-new { font-size: 0.8125rem; color: var(--secondary); cursor: pointer; font-weight: 600; text-decoration: none; display: inline-block; margin-top: 4px; }

/* Payment card */
.pay-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; margin-bottom: 8px; }
.pay-card:hover { border-color: var(--secondary); }
.pay-card.selected { border-color: var(--secondary); background: rgba(37,99,235,0.03); }
.pay-card input[type=radio] { width: 18px; height: 18px; accent-color: var(--secondary); flex-shrink: 0; }
.pay-card .pay-icon { width: 36px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; flex-shrink: 0; }
.pay-card span { font-weight: 600; font-size: 0.875rem; }
.pay-card small { color: var(--text-muted); font-size: 0.75rem; margin-left: auto; }
.pay-detail { display: none; padding: 16px; background: var(--bg-secondary); border-radius: var(--radius-md); margin-top: 8px; }
.pay-detail.active { display: block; }

/* Checkout summary */
.chk-sidebar { position: sticky; top: 100px; }
.chk-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.chk-summary h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--bg-secondary); }
.chk-summary-items { max-height: 320px; overflow-y: auto; }
.chk-summary-item { display: flex; gap: 12px; padding: 8px 0; align-items: center; }
.chk-summary-item-img { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.chk-summary-item-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.chk-summary-item-info { flex: 1; min-width: 0; }
.chk-summary-item-name { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chk-summary-item-qty { font-size: 0.75rem; color: var(--text-muted); }
.chk-summary-item-price { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.chk-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.875rem; }
.chk-summary-row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 1.125rem; font-weight: 700; }
.chk-summary-row .label { color: var(--text-secondary); }
.chk-summary-row .value { font-weight: 600; }
.chk-summary-row.total .value { color: var(--secondary); }
.chk-summary-row.discount { color: var(--success); }

/* Place order button */
.chk-place-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--secondary), #1D4ED8); color: #fff; border: none; border-radius: var(--radius-md); font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.chk-place-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.chk-place-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Trust badges on checkout */
.chk-trust { display: flex; gap: 16px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.chk-trust span { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); }
.chk-trust svg { width: 14px; height: 14px; }

/* Review cards */
.review-card { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; }
.review-card h4 { font-size: 0.875rem; font-weight: 700; margin: 0 0 8px; }
.review-card p { margin: 0; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* Confirm step */
.chk-confirm { text-align: center; padding: 40px; }
.chk-confirm .icon { font-size: 3rem; margin-bottom: 16px; }
.chk-confirm h3 { border: none; padding: 0; margin-bottom: 8px; }
.chk-confirm p { color: var(--text-secondary); margin: 0 0 24px; }

/* Checkout layout */
.checkout-layout { padding: 32px 0; }
.checkout-layout .page-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 24px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-grid .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.checkout-grid .card-header { margin-bottom: 16px; }
.checkout-grid .card-header h2 { font-size: 1.125rem; font-weight: 700; margin: 0; }
.checkout-grid .card-header h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.checkout-grid .form-group { margin-bottom: 16px; }
.checkout-grid .form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.checkout-grid .form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.875rem; background: var(--bg-card); color: var(--text); transition: border-color 0.15s; box-sizing: border-box; }
.checkout-grid .form-input:focus { border-color: var(--secondary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.checkout-grid .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-summary .chk-summary-row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 1.125rem; font-weight: 700; }
.payment-method { padding: 12px 0; border-bottom: 1px solid var(--border); }
.payment-method:last-child { border-bottom: none; }
.payment-method label { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.payment-method input[type="radio"] { accent-color: var(--secondary); width: 18px; height: 18px; }

/* Billing same as shipping checkbox */
.same-billing-label { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; cursor: pointer; margin-bottom: 12px; }

/* Checkout coupon row */
.chk-coupon-row { display: flex; gap: 8px; margin-top: 12px; }
.chk-coupon-row .form-input { flex: 1; }

/* Field error */
.field-error { color: var(--error); font-size: 0.75rem; margin-top: 4px; }
.input-error { border-color: var(--error) !important; }

@media (max-width: 576px) {
  .chk-nav .btn { min-width: auto; padding: 10px 16px; font-size: 0.875rem; }
}

/* ============================================
   TRUST / FEATURES STRIP
   ============================================ */
.trust-strip { background: var(--bg-secondary); padding: 48px 0; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { text-align: center; padding: 24px 20px; transition: all var(--transition-slow); border-radius: var(--radius-lg); }
.trust-item:hover { background: var(--bg-card); box-shadow: var(--shadow-sm); }
.trust-item .trust-icon {
  width: 56px; height: 56px; border-radius: var(--radius-full);
  background: rgba(37,99,235,0.08); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 14px; transition: all var(--transition-slow);
}
.trust-item:hover .trust-icon { background: var(--secondary); }
.trust-item:hover .trust-icon svg { color: white; }
.trust-item svg { width: 24px; height: 24px; color: var(--secondary); transition: color var(--transition-slow); }
.trust-item h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.trust-item p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; max-width: 220px; margin: 0 auto; }

/* ============================================
   CATEGORY GRID
   ============================================ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none;
  transition: all var(--transition-slow); min-height: 120px; position: relative;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px -8px rgba(15,23,42,0.12); border-color: var(--secondary); }
.cat-card .cat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: rgba(37,99,235,0.08); display: flex; align-items: center;
  justify-content: center; margin-bottom: 12px; transition: all var(--transition-slow);
  font-size: 1.125rem;
}
.cat-card:hover .cat-icon { background: var(--secondary); color: white; }
.cat-card span { font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); text-align: center; transition: color var(--transition); }
.cat-card:hover span { color: var(--secondary); }
.cat-card small { font-size: 0.6875rem; color: var(--text-muted); text-align: center; display: block; margin-top: 3px; font-weight: 400; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.animate-fade-in { animation: fadeIn 0.5s ease-out both; }
.animate-fade-up { animation: fadeInUp 0.6s ease-out both; }
.animate-scale { animation: scaleIn 0.3s ease-out both; }
.animate-slide { animation: slideDown 0.2s ease-out both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Skeleton loader */
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-light) 50%, var(--bg-tertiary) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 20px; width: 60%; margin-bottom: 12px; }
.skeleton-image { height: 200px; border-radius: var(--radius-md); }

/* Scroll reveal (use with JS) */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   MODAL / OVERLAY
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,0.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); max-width: 520px; width: 100%;
  animation: scaleIn 0.2s ease-out; max-height: 85vh; overflow-y: auto;
}
.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: 1.125rem; font-weight: 600; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: all var(--transition); }
.modal-close:hover { background: var(--bg-tertiary); color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border-light); }

/* ============================================
   TOOLTIP & DROPDOWN
   ============================================ */
.tooltip { position: relative; }
.tooltip::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px);
  left: 50%; transform: translateX(-50%); padding: 4px 10px;
  background: var(--primary); color: white; font-size: 0.75rem;
  border-radius: var(--radius-sm); white-space: nowrap; opacity: 0;
  visibility: hidden; transition: all var(--transition); pointer-events: none;
}
.tooltip:hover::after { opacity: 1; visibility: visible; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 4px); right: 0; min-width: 180px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all var(--transition); z-index: 50;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu-header { padding: 0.75rem 1rem; text-align: center; }
.dropdown-menu-name { font-size: 0.875rem; }
.dropdown-menu-email { display: block; font-size: 0.75rem; color: var(--text-muted); }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  font-size: 0.8125rem; color: var(--text-secondary); text-decoration: none;
  border-radius: var(--radius-sm); transition: all var(--transition); cursor: pointer;
}
.dropdown-item:hover { background: var(--bg-tertiary); color: var(--text); }
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-muted); }
.dropdown-item-danger { color: var(--error); }
.dropdown-item-danger:hover { color: var(--error); background: var(--error-light); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }

/* Currency Switcher */
#currency-dropdown .dropdown-toggle { display: flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
#currency-dropdown .currency-current { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-light); padding: 1px 6px; border-radius: 4px; letter-spacing: 0.5px; }
.currency-dropdown-menu { min-width: 220px; max-height: 400px; overflow-y: auto; }
.currency-dropdown-menu .dropdown-item { padding: 8px 16px; font-size: 13px; }
.currency-dropdown-menu .dropdown-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

/* ============================================
   WISHLIST / COMPARE BUTTON
   ============================================ */
.wishlist-btn { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: all var(--transition); }
.wishlist-btn:hover { border-color: var(--error); color: var(--error); }
.wishlist-btn.active { background: var(--error-light); border-color: var(--error); color: var(--error); }

/* ============================================
   STOCK INDICATOR
   ============================================ */
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.stock.in-stock { color: var(--success); }
.stock.in-stock::before { background: var(--success); }
.stock.out-of-stock { color: var(--error); }
.stock.out-of-stock::before { background: var(--error); }
.stock.pre-order { color: var(--warning); }
.stock.pre-order::before { background: var(--warning); }

/* ============================================
   LISTING LAYOUT (Product listing with sidebar)
   ============================================ */
.listing-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 24px 0; }
@media (max-width: 768px) { .listing-layout { grid-template-columns: 1fr; } }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.listing-toolbar-left { display: flex; align-items: center; gap: 12px; }
.listing-toolbar-right { display: flex; align-items: center; gap: 12px; }
.listing-count { font-size: 0.8125rem; color: var(--text-muted); }
.listing-sort { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.8125rem; background: var(--bg); color: var(--text); }
.listing-toggle { display: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.8125rem; cursor: pointer; color: var(--text-secondary); }
.listing-toggle:hover { border-color: var(--text-muted); }
@media (max-width: 768px) { .listing-toggle { display: inline-flex; align-items: center; gap: 6px; } }

/* Search filter wrapper */
.search-filter-wrap { padding: 0; }
.search-filter-wrap .filter-group { border-bottom: 1px solid var(--border-light); padding: 16px 0; }
.search-filter-wrap .filter-group:first-child { padding-top: 0; }
.search-filter-wrap .filter-group-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 10px; }
.search-filter-wrap .filter-group-content { display: flex; flex-direction: column; gap: 4px; }
.search-filter-wrap .filter-search { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.8125rem; background: var(--bg); color: var(--text); }
.search-filter-wrap .filter-checkbox { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; }
.search-filter-wrap .filter-checkbox input { margin: 0; }

/* Filter sidebar */
.filter-sidebar { }
.filter-group { border-bottom: 1px solid var(--border-light); padding: 16px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group-title {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 10px;
}
.filter-group-body { display: flex; flex-direction: column; gap: 4px; }
.filter-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; font-size: 0.8125rem; color: var(--text-secondary);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.filter-link:hover { background: var(--bg-tertiary); color: var(--text); }
.filter-link.active { color: var(--secondary); font-weight: 600; background: var(--secondary-light); }
.filter-link .count { font-size: 0.6875rem; color: var(--text-muted); }
.filter-checkbox {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; font-size: 0.8125rem; color: var(--text-secondary);
  border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition);
}
.filter-checkbox:hover { background: var(--bg-tertiary); }
.filter-checkbox input[type="checkbox"] { accent-color: var(--secondary); }
.filter-price-inputs { display: flex; gap: 8px; }
.filter-price-inputs input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.8125rem; outline: none;
  background: var(--bg); color: var(--text);
}
.filter-price-inputs input:focus { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(37,99,235,0.1); }

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-state svg { width: 64px; height: 64px; color: var(--text-muted); }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; }
.empty-state p { font-size: 0.875rem; color: var(--text-secondary); max-width: 400px; }

/* Subcategory strip */
.subcategory-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.subcategory-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.8125rem;
  color: var(--text-secondary); text-decoration: none;
  transition: all var(--transition);
}
.subcategory-chip:hover { border-color: var(--secondary); color: var(--secondary); }
.subcategory-chip.active { background: var(--secondary); color: white; border-color: var(--secondary); }
.subcategory-chip .count { font-size: 0.6875rem; color: var(--text-muted); }

/* Pagination */
.pagination { margin: 32px 0; }
.pagination-list { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.pagination-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.8125rem; color: var(--text-secondary);
  text-decoration: none; transition: all var(--transition);
}
.pagination-link:hover { border-color: var(--secondary); color: var(--secondary); }
.pagination-item.active .pagination-link { background: var(--secondary); color: white; border-color: var(--secondary); }
.pagination-item.disabled .pagination-link { opacity: 0.4; pointer-events: none; }
.pagination-ellipsis { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; font-size: 0.8125rem; color: var(--text-muted); }

/* ============================================
   PAGE TRANSITION
   ============================================ */
.page-enter { animation: fadeIn 0.35s ease-out both; }
.page-transition { min-height: 60vh; }
.page-transition > .container:first-child { padding-top: 24px; }

/* ============================================
   CONTENT HERO (Info Pages)
   ============================================ */
.content-hero {
  position: relative; padding: 60px 0; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  text-align: center; color: white;
}
.content-hero-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.content-hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.content-hero-shape {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  opacity: 0.06; filter: blur(60px);
}
.content-hero-shape.c1 { top: -100px; right: -80px; background: var(--secondary); }
.content-hero-shape.c2 { bottom: -120px; left: -60px; background: var(--accent); }
.content-hero-shape.c3 { top: 40%; left: 10%; width: 200px; height: 200px; background: var(--secondary); }
.content-hero-shape.c4 { bottom: 20%; right: 15%; width: 150px; height: 150px; background: var(--accent); }
.content-hero h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; color: white; margin: 0 0 8px; position: relative; z-index: 1; }
.content-hero p { font-size: 0.9375rem; color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.policy-hero-bg { background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%); }
.faq-hero-bg { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }
.blog-hero-bg { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }
.support-hero-bg { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }
.careers-hero-bg { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }

/* ============================================
   ERROR PAGES (404, 500)
   ============================================ */
.error-page {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  padding: 60px 24px; text-align: center;
}
.error-content { max-width: 520px; }
.error-icon { margin-bottom: 16px; }
.error-icon svg { width: 72px; height: 72px; color: var(--text-muted); stroke-width: 1.5; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; }
.error-code.code-500 { color: var(--error); }
.error-content h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 8px; }
.error-content > p { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.error-suggestions { padding-top: 24px; border-top: 1px solid var(--border); }
.error-suggestions h4 { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.error-suggestions-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.error-suggestions-links a { font-size: 0.8125rem; color: var(--text-secondary); text-decoration: none; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-full); transition: all var(--transition); }
.error-suggestions-links a:hover { border-color: var(--secondary); color: var(--secondary); }

/* ============================================
   PAYMENT RESULT PAGES
   ============================================ */
.payment-result { min-height: 60vh; display: flex; align-items: center; padding: 40px 0; }
.payment-result-card {
  max-width: 520px; margin: 0 auto; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px 32px;
  box-shadow: var(--shadow-sm);
}
.payment-result-icon { margin-bottom: 20px; }
.payment-result-icon.success svg { color: var(--success); }
.payment-result-icon.failed svg { color: var(--error); }
.payment-result-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.payment-subtitle { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.order-confirmed-details {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  padding: 16px 0; margin: 0 0 24px; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.order-confirmed-details > div { text-align: center; }
.order-confirmed-details span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.order-confirmed-details strong { font-size: 1rem; font-weight: 700; color: var(--text); }
.payment-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.payment-confirmation-email {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.8125rem; color: var(--text-muted); padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.payment-confirmation-email svg { width: 16px; height: 16px; flex-shrink: 0; }
.payment-failed-reasons { text-align: left; padding: 16px 0; margin-bottom: 16px; }
.payment-failed-reasons h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.payment-failed-reasons ul { list-style: disc; padding-left: 20px; }
.payment-failed-reasons li { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 4px; }
.action-badge { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; text-transform: capitalize; }
.action-badge.pending { background: rgba(245,158,11,0.1); color: #D97706; }
.action-badge.processing { background: rgba(37,99,235,0.1); color: var(--secondary); }
.action-badge.shipped { background: rgba(139,92,246,0.1); color: #7C3AED; }
.action-badge.delivered, .action-badge.completed { background: rgba(16,185,129,0.1); color: #059669; }
.action-badge.cancelled { background: rgba(239,68,68,0.1); color: #DC2626; }

/* ============================================
   AUTH GENERIC (payment-cancel fallback)
   ============================================ */
.auth-page { min-height: 60vh; display: flex; align-items: center; padding: 40px 0; }
.auth-container { max-width: 520px; margin: 0 auto; padding: 48px 32px; }
.auth-header { text-align: center; }
.auth-header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-header p { font-size: 0.9375rem; color: var(--text-secondary); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  position: relative; padding: 80px 0; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  text-align: center; color: white;
}
.about-hero-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.about-hero-shape {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  opacity: 0.06; filter: blur(60px);
}
.about-hero-shape.s1 { top: -100px; right: -80px; background: var(--secondary); }
.about-hero-shape.s2 { bottom: -120px; left: -60px; background: var(--accent); }
.about-hero-shape.s3 { top: 40%; left: 10%; width: 200px; height: 200px; background: var(--secondary); }
.about-hero-shape.s4 { bottom: 20%; right: 15%; width: 150px; height: 150px; background: var(--accent); }
.about-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; margin-bottom: 20px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full); font-size: 0.75rem; color: rgba(255,255,255,0.6);
}
.about-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: white; margin-bottom: 16px; position: relative; z-index: 1; }
.about-hero p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 640px; margin: 0 auto 32px; line-height: 1.7; position: relative; z-index: 1; }
.about-hero-stats { display: flex; gap: 40px; justify-content: center; position: relative; z-index: 1; flex-wrap: wrap; }
.about-hero-stat { text-align: center; }
.about-hero-stat-value { font-size: 2rem; font-weight: 800; color: white; }
.about-hero-stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-card { padding: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.about-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.about-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.about-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.about-content-wrap { background: var(--bg-secondary); }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-stats-section { background: var(--bg-secondary); }
.about-stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.about-stat-card {
  text-align: center; padding: 28px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition-slow);
}
.about-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-stat-icon { margin-bottom: 12px; }
.about-stat-icon svg { width: 24px; height: 24px; margin: 0 auto; }
.about-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.about-stat-label { font-size: 0.8125rem; font-weight: 600; color: var(--text); margin-top: 4px; }
.about-stat-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* About Timeline */
.about-timeline { position: relative; max-width: 700px; margin: 0 auto; }
.about-timeline-item { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start; margin-bottom: 32px; }
.about-timeline-content { }
.about-timeline-year {
  font-size: 0.75rem; font-weight: 700; color: var(--secondary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.about-timeline-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.about-timeline-content p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; }
.about-timeline-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--secondary); border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--secondary); margin-top: 4px;
}
.about-values-section { }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.value-card-icon { width: 52px; height: 52px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.value-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.7; }

/* Team */
.about-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.about-team-card {
  text-align: center; padding: 28px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition-slow);
}
.about-team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-team-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--secondary), #1D4ED8);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700;
}
.about-team-card h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 2px; }
.about-team-role { font-size: 0.75rem; color: var(--text-muted); }
.about-cta {
  padding: 64px 0; text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%); color: white;
}
.about-cta h2 { font-size: 1.75rem; font-weight: 700; color: white; margin-bottom: 12px; }
.about-cta p { font-size: 1rem; color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.about-cta .btn { background: var(--secondary); color: white; padding: 14px 32px; font-size: 1rem; font-weight: 700; border-radius: var(--radius-lg); }
.about-cta .btn:hover { box-shadow: var(--shadow-glow); transform: translateY(-2px); color: white; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }
@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; } }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; }
.contact-form-success { flex-direction: column; align-items: center; text-align: center; padding: 32px; }
.contact-info-list { display: flex; flex-direction: column; gap: 12px; }
.contact-info-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-info-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-card h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; }
.contact-info-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; }
.contact-info-card a { color: var(--secondary); }
.contact-map {
  margin-top: 16px; padding: 20px; background: var(--bg-secondary);
  border-radius: var(--radius-lg); text-align: center;
}
.contact-map svg { width: 32px; height: 32px; color: var(--secondary); margin: 0 auto 8px; }

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-section { padding: 48px 0; }
.faq-content { max-width: 800px; margin: 0 auto; }
.faq-group { margin-bottom: 40px; }
.faq-group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.faq-group-title svg { width: 22px; height: 22px; color: var(--secondary); flex-shrink: 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 8px; overflow: hidden; transition: all var(--transition); }
.faq-item:hover { border-color: var(--text-muted); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; font-size: 0.875rem; font-weight: 600;
  color: var(--text); list-style: none; transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--secondary); }
.faq-item[open] { border-color: var(--secondary); }
.faq-item[open] summary { color: var(--secondary); }
.faq-icon { flex-shrink: 0; transition: transform var(--transition); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 16px; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.faq-answer a { color: var(--secondary); }
.faq-cta { text-align: center; padding: 40px; background: var(--bg-secondary); border-radius: var(--radius-xl); margin-top: 24px; }
.faq-cta h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.faq-cta p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 20px; }

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 992px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-posts { display: flex; flex-direction: column; gap: 24px; }
.blog-card {
  display: flex; gap: 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; transition: all var(--transition-slow);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
@media (max-width: 600px) { .blog-card { flex-direction: column; } }
.blog-card-image {
  width: 240px; min-height: 200px; flex-shrink: 0;
  background: var(--bg-secondary); display: flex; align-items: center;
  justify-content: center; position: relative;
}
@media (max-width: 600px) { .blog-card-image { width: 100%; min-height: 160px; } }
.blog-card-image svg { width: 56px; height: 56px; color: var(--text-muted); }
.blog-category-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px; font-size: 0.6875rem; font-weight: 600;
  background: var(--secondary); color: white; border-radius: var(--radius-full);
}
.blog-card-body { padding: 20px 20px 20px 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 600px) { .blog-card-body { padding: 0 16px 16px; } }
.blog-card-meta { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.blog-card-body h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.blog-card-body h3 a { color: var(--text); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--secondary); }
.blog-card-excerpt { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-sidebar { position: sticky; top: 100px; }
.blog-sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; }
.sidebar-section { }
.sidebar-section-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-light);
}
.sidebar-categories { display: flex; flex-direction: column; gap: 2px; }
.sidebar-category-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: var(--radius-sm); font-size: 0.8125rem;
  color: var(--text-secondary); text-decoration: none; transition: all var(--transition);
}
.sidebar-category-link:hover { background: var(--bg-tertiary); color: var(--text); }
.sidebar-category-link svg { width: 14px; height: 14px; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-tag {
  padding: 4px 12px; font-size: 0.75rem; color: var(--text-secondary);
  background: var(--bg-secondary); border-radius: var(--radius-full);
  text-decoration: none; transition: all var(--transition);
}
.sidebar-tag:hover { background: var(--secondary); color: white; }
.sidebar-newsletter p { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }

/* ============================================
   CAREERS PAGE
   ============================================ */
.careers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.career-card { padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.career-card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.career-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.career-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.7; }
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition-slow);
}
.job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (max-width: 768px) { .job-card { flex-direction: column; align-items: flex-start; } }
.job-card-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.job-card-meta { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 6px; }
.job-card-desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; }
.job-card-apply { flex-shrink: 0; white-space: nowrap; }
.careers-cta { text-align: center; padding: 40px; margin-top: 24px; background: var(--bg-secondary); border-radius: var(--radius-xl); }
.careers-cta h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.careers-cta p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 20px; }

/* ============================================
   SUPPORT PAGE
   ============================================ */
.support-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.support-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-decoration: none;
  transition: all var(--transition-slow);
}
.support-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.support-card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.support-card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.support-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }
.support-card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--secondary); margin-top: 8px; }
.support-card-link svg { width: 14px; height: 14px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.kb-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition-slow);
}
.kb-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kb-card-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--secondary-light); color: var(--secondary); display: flex; align-items: center; justify-content: center; }
.kb-card h3 { font-size: 0.9375rem; font-weight: 700; }
.kb-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }

/* ============================================
   POLICY PAGES (Privacy, Terms, Shipping, Returns)
   ============================================ */
.policy-section { padding: 48px 0; }
.policy-content { max-width: 800px; margin: 0 auto; }
.policy-card { margin-bottom: 24px; }
.policy-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.policy-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.policy-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.policy-card ul, .policy-card ol { padding-left: 20px; margin-bottom: 12px; }
.policy-card li { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 6px; }
.policy-card li strong { color: var(--text); }

/* ============================================
   PAGE HERO (Catalog pages)
   ============================================ */
.page-hero {
  padding: 48px 0; text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1E293B 100%);
  color: white;
}
.page-hero h1 { font-size: 1.75rem; font-weight: 800; color: white; margin-bottom: 8px; }
.page-hero p { font-size: 0.9375rem; color: rgba(255,255,255,0.6); margin: 0; }

/* Search page */
.search-input-wrap { display: flex; align-items: center; flex: 1; gap: 10px; }
.search-input-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; margin-left: 14px; }
.search-submit-btn { display: flex; align-items: center; gap: 6px; padding: 12px 20px; background: var(--secondary); color: white; border: none; font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: background var(--transition); }
.search-submit-btn:hover { background: var(--secondary-hover); }
.search-submit-btn svg { width: 18px; height: 18px; }
.search-submit-text { }

/* Filters sidebar (search page) */
.filters-sidebar { width: 260px; flex-shrink: 0; }
.filters-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filters-header h3 { font-size: 1rem; font-weight: 700; }
.filters-clear { font-size: 0.8125rem; color: var(--secondary); text-decoration: none; font-weight: 600; }
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; padding: 4px 0; }
.filter-option input[type="checkbox"] { accent-color: var(--secondary); }
.price-range-inputs { display: flex; align-items: center; gap: 8px; }
.price-range-inputs input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; outline: none; background: var(--bg); color: var(--text); }
.price-range-inputs input:focus { border-color: var(--secondary); }
.price-range-inputs span { color: var(--text-muted); }
.price-range-apply { margin-top: 8px; width: 100%; }
.filter-chip-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  padding: 4px 14px; font-size: 0.75rem; color: var(--secondary);
  background: var(--secondary-light); border-radius: var(--radius-full);
  text-decoration: none; transition: all var(--transition);
}
.filter-chip:hover { background: var(--secondary); color: white; }

/* Listing header */
.listing-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.listing-header-left { }
.listing-header-left p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }
.listing-header-right { display: flex; align-items: center; gap: 12px; }
.listing-sort { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text-secondary); }
.listing-sort select { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.8125rem; background: var(--bg); color: var(--text); cursor: pointer; }

/* Product card (catalog pages) */
.product-card-manufacturer { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.product-card-name { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.product-card-name a { color: var(--text); text-decoration: none; }
.product-card-name a:hover { color: var(--secondary); }
.product-card-sku { font-size: 0.6875rem; color: var(--text-muted); font-family: monospace; margin-bottom: 8px; }
.product-card-stock { margin-bottom: 8px; }
.product-card-price .current { font-size: 1.125rem; font-weight: 700; color: var(--text); }
.product-card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; z-index: 2; }
.product-badge { padding: 2px 8px; font-size: 0.625rem; font-weight: 700; border-radius: var(--radius-full); text-transform: uppercase; }
.product-badge-new { background: var(--success); color: white; }
.product-badge-sale { background: var(--error); color: white; }
.btn-add-cart { background: var(--secondary); color: white; border: none; }
.btn-add-cart:hover { box-shadow: var(--shadow-glow); }
.btn-wishlist { color: var(--text-muted); }
.btn-wishlist:hover { color: var(--error); }

/* ============================================
   COMPARE PAGE
   ============================================ */
.compare-grid {
  display: grid; grid-template-columns: 180px repeat(auto-fill, minmax(200px, 1fr));
  gap: 0; border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; background: var(--bg-card);
}
.compare-grid > * { }
.compare-label {
  padding: 12px 16px; font-size: 0.75rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.compare-value {
  padding: 12px 16px; font-size: 0.8125rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light); display: flex; align-items: center;
}
.compare-product-card { padding: 16px; text-align: center; position: relative; }
.compare-product-card img { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 8px; }
.compare-product-card h4 { font-size: 0.8125rem; font-weight: 600; }
.compare-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--error); font-size: 1.25rem; cursor: pointer; transition: all var(--transition); z-index: 2; }
.compare-remove:hover { background: var(--error-light); }

/* ============================================
   ENGINEERING TOOLS PAGE
   ============================================ */
.tools-hero { position: relative; padding: 60px 0; background: var(--bg-secondary); overflow: hidden; }
.tools-hero-bg {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230F172A' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tools-hero-wrap { text-align: center; position: relative; z-index: 1; }
.tools-hero-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--secondary-light); color: var(--secondary);
  border-radius: var(--radius-lg); display: flex; align-items: center;
  justify-content: center;
}
.tools-hero .section-title { margin-bottom: 8px; }
.tools-hero .section-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tool-card {
  padding: 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all var(--transition-slow);
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tool-card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tool-card-icon.blue { background: var(--secondary-light); color: var(--secondary); }
.tool-card-icon.amber { background: var(--warning-light); color: #92400E; }
.tool-card-icon.green { background: var(--success-light); color: #065F46; }
.tool-card-icon.purple { background: rgba(139,92,246,0.1); color: #7C3AED; }
.tool-card-icon.cyan { background: var(--accent-light); color: #0E7490; }
.tool-card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 8px; }
.tool-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   RESOURCE CENTER
   ============================================ */
.resource-section { padding: 48px 0; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.resource-card { padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all var(--transition-slow); }
.resource-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.resource-card h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 8px; }
.resource-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.resource-category { display: inline-block; padding: 2px 10px; font-size: 0.6875rem; font-weight: 600; background: var(--secondary-light); color: var(--secondary); border-radius: var(--radius-full); margin-bottom: 8px; }
.resource-guide-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--secondary-light); color: var(--secondary); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }

/* ============================================
   ACCOUNT — ORDER DETAIL
   ============================================ */
.order-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.order-detail-actions { display: flex; gap: 8px; }
.order-timeline { display: flex; gap: 0; margin-bottom: 32px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; }
.tl-step { display: flex; align-items: flex-start; gap: 12px; flex: 1; position: relative; min-width: 140px; }
.tl-step:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: 28px; right: 0; height: 2px; background: var(--border); z-index: 0; }
.tl-step.done:not(:last-child)::after { background: var(--success); }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg-card); flex-shrink: 0; margin-top: 4px; z-index: 1; position: relative; }
.tl-step.done .tl-dot { background: var(--success); border-color: var(--success); }
.tl-label { font-size: 0.875rem; font-weight: 600; }
.tl-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 992px) { .order-detail-grid { grid-template-columns: 1fr; } }
.order-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bg-secondary); }
.order-item:last-child { border-bottom: none; }
.order-item-img { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.order-item-img img { max-width: 80%; max-height: 80%; object-fit: contain; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-name { font-size: 0.875rem; font-weight: 600; }
.order-item-sku { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }
.order-item-qty, .order-item-price { font-size: 0.875rem; color: var(--text-secondary); white-space: nowrap; text-align: right; }
.order-item-subtotal { font-size: 0.875rem; font-weight: 600; white-space: nowrap; text-align: right; min-width: 80px; }
.order-totals { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.order-totals .summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.875rem; }
.order-totals .summary-row .label { color: var(--text-muted); }
.order-totals .summary-row.total { font-size: 1rem; font-weight: 700; border-top: 1px solid var(--bg-secondary); padding-top: 8px; margin-top: 8px; }
.order-address { font-size: 0.875rem; line-height: 1.7; color: var(--text-secondary); }
.order-payment-info { display: flex; flex-direction: column; gap: 8px; font-size: 0.875rem; }
.order-payment-info .label { color: var(--text-muted); display: inline-block; min-width: 100px; }
.order-tracking { font-size: 0.875rem; }
.order-tracking .label { color: var(--text-muted); display: inline-block; min-width: 100px; }
.acct-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.acct-section h2 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bg-secondary); }

/* ============================================
   ACCOUNT — NOTIFICATIONS & RETURNS (extras)
   ============================================ */
.notif-list { display: flex; flex-direction: column; gap: 2px; }
.notif-item { display: flex; gap: 12px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); align-items: flex-start; transition: all var(--transition); }
.notif-item.unread { background: rgba(37,99,235,0.02); border-left: 3px solid var(--secondary); }
.notif-item + .notif-item { margin-top: 2px; }
.notif-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.notif-title { font-size: 0.875rem; font-weight: 600; }
.notif-msg { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 2px; }
.notif-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.notif-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.acct-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.acct-pagination .page-btn { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--text); font-size: 0.875rem; font-weight: 500; transition: all var(--transition); }
.acct-pagination .page-btn:hover { background: var(--bg-tertiary); }
.acct-pagination .page-btn.active { background: var(--secondary); color: white; border-color: var(--secondary); }
.acct-empty { text-align: center; padding: 60px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.return-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.return-form h3 { font-size: 1rem; font-weight: 700; margin: 0 0 16px; }
.return-form .form-label { font-size: 0.8125rem; font-weight: 600; display: block; margin-bottom: 4px; }
.return-form .form-input, .return-form .form-select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.875rem; background: var(--bg-card); color: var(--text); transition: border-color var(--transition); }
.return-form .form-input:focus, .return-form .form-select:focus { border-color: var(--secondary); outline: none; }
.return-form .form-group { margin-bottom: 14px; }

/* ============================================
   ACCOUNT — WISHLIST inline cards compat
   ============================================ */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition-slow); display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.product-card-img { height: 160px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; padding: 16px; position: relative; }
.product-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card-img .remove-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--error); transition: all var(--transition); box-shadow: var(--shadow-sm); }
.product-card-img .remove-btn:hover { background: var(--error); color: white; }
.product-card-body .mfr { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 2px; }
.product-card-body .name { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.product-card-body .name a { color: var(--text); text-decoration: none; }
.product-card-body .name a:hover { color: var(--secondary); }
.product-card-body .sku { font-size: 0.6875rem; font-family: monospace; color: var(--text-muted); margin-bottom: 6px; }
.product-card-body .stock { margin-bottom: 8px; }
.product-card-body .price { font-size: 1.125rem; font-weight: 700; margin-bottom: 10px; }
.product-card-footer .btn-add { background: var(--secondary); color: white; }
.product-card-footer .btn-add:hover { box-shadow: var(--shadow-glow); }
.product-card-footer .btn-view { background: var(--bg-secondary); color: var(--text); }
.product-card-footer .btn-view:hover { background: var(--border); }

/* ============================================
   SELL-ON-NZTECH PAGE (supplier landing)
   ============================================ */
.sell-hero { background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%); padding: 80px 0 88px; position: relative; overflow: hidden; }
.sell-hero::before { content: ''; position: absolute; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.sell-hero::after { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%); pointer-events: none; }
.sell-hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.sell-hero h1 { color: white; font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; margin: 0 0 16px; line-height: 1.12; letter-spacing: -0.03em; }
.sell-hero p { color: rgba(255,255,255,0.65); font-size: 1.125rem; margin: 0 auto 36px; line-height: 1.7; max-width: 600px; }
.sell-hero .btn-apply { display: inline-flex; align-items: center; gap: 10px; padding: 16px 40px; background: var(--secondary); color: white; font-size: 1rem; font-weight: 700; border: none; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: all var(--transition); box-shadow: 0 4px 14px rgba(37,99,235,0.35); }
.sell-hero .btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.45); background: #2563EB; }
.sell-hero .btn-apply svg { width: 18px; height: 18px; }
.sell-stats { background: var(--bg); border-bottom: 1px solid var(--border); padding: 32px 0; }
.sell-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 768px) { .sell-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.sell-stat { text-align: center; }
.sell-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.sell-stat-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px; }
.sell-section { padding: 64px 0; }
.sell-section.alt { background: var(--bg-secondary); }
.sell-section h2 { font-size: 1.75rem; font-weight: 800; color: var(--text); margin: 0 auto 8px; text-align: center; }
.sell-section .subtitle { font-size: 1rem; color: var(--text-muted); margin: 0 auto 40px; max-width: 640px; text-align: center; }
.sell-programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 768px) { .sell-programs { grid-template-columns: 1fr; } }
.sell-program { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; background: var(--bg-card); transition: all var(--transition); }
.sell-program:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sell-program h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sell-program h3 .icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(37,99,235,0.1); color: var(--secondary); flex-shrink: 0; }
.sell-program h3 .icon svg { width: 16px; height: 16px; }
.sell-program ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sell-program ul li { font-size: 0.875rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 8px; }
.sell-program ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--success); }
.sell-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .sell-testimonials { grid-template-columns: 1fr; } }
.sell-testimonial { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; position: relative; }
.sell-testimonial .quote { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; font-style: italic; }
.sell-testimonial .author { display: flex; align-items: center; gap: 10px; }
.sell-testimonial .author .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; color: var(--text-muted); }
.sell-testimonial .author .name { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.sell-testimonial .author .title { font-size: 0.75rem; color: var(--text-muted); }
.sell-about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 768px) { .sell-about { grid-template-columns: 1fr; } }
.sell-about p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }
.sell-faq { border-top: 1px solid var(--border); }
.sell-faq-item { border-bottom: 1px solid var(--border); }
.sell-faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; font-size: 0.9375rem; font-weight: 600; color: var(--text); background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.sell-faq-question:hover { color: var(--secondary); }
.sell-faq-question svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--transition); }
.sell-faq-question.open svg { transform: rotate(180deg); }
.sell-faq-answer { padding: 0 0 16px; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; display: none; }
.sell-faq-answer.open { display: block; }
.sell-cta { background: linear-gradient(135deg, #002B5A 0%, #003D7A 100%); padding: 56px 0; text-align: center; color: white; }
.sell-cta h2 { font-size: 1.75rem; font-weight: 800; margin: 0 0 8px; }
.sell-cta p { font-size: 1rem; color: rgba(255,255,255,0.7); margin: 0 0 28px; }
.sell-cta .btn-apply { display: inline-flex; align-items: center; gap: 10px; padding: 14px 36px; background: var(--secondary); color: white; font-size: 1rem; font-weight: 700; border: none; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: all var(--transition); box-shadow: 0 4px 14px rgba(37,99,235,0.35); }
.sell-cta .btn-apply:hover { transform: translateY(-2px); }
.sell-cta .btn-outline-light { display: inline-flex; align-items: center; gap: 8px; padding: 14px 36px; color: white; border: 1.5px solid rgba(255,255,255,0.3); background: transparent; font-size: 1rem; font-weight: 700; border-radius: var(--radius-md); text-decoration: none; transition: all var(--transition); }
.sell-cta .btn-outline-light:hover { border-color: white; background: rgba(255,255,255,0.08); }
.sell-cta .footnote { margin-top: 32px; font-size: 0.8125rem; opacity: 0.5; }
.sell-cta .footnote a { color: inherit; text-decoration: underline; }
.sell-requirements { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.sell-requirement { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.sell-requirement .num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(37,99,235,0.1); display: flex; align-items: center; justify-content: center; color: var(--secondary); font-weight: 700; font-size: 0.75rem; }
.sell-requirement strong { font-size: 0.875rem; }
.sell-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 768px) { .sell-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sell-steps { grid-template-columns: 1fr; } }
.sell-step { text-align: center; padding: 24px 16px; }
.sell-step .num { width: 48px; height: 48px; border-radius: 50%; background: var(--secondary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; margin: 0 auto 16px; }
.sell-step h3 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 6px; }
.sell-step p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.sell-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
@media (max-width: 768px) { .sell-pricing { grid-template-columns: 1fr; max-width: 400px; } }
.sell-plan { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; transition: all var(--transition); }
.sell-plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sell-plan.featured { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); position: relative; }
.sell-plan.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: white; font-size: 0.6875rem; font-weight: 700; padding: 3px 14px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em; }
.sell-plan h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 4px; }
.sell-plan .price { font-size: 1.75rem; font-weight: 800; color: var(--text); margin: 8px 0 2px; }
.sell-plan .price span { font-size: 0.875rem; font-weight: 400; color: var(--text-muted); }
.sell-plan .sub-desc { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 16px; }
.sell-plan ul { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sell-plan ul li { font-size: 0.8125rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 8px; }
.sell-plan ul li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--success); }
.sell-plan .plan-btn { display: block; text-align: center; padding: 12px; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 700; text-decoration: none; transition: all var(--transition); border: 1.5px solid var(--border); color: var(--text); }
.sell-plan .plan-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.sell-plan.featured .plan-btn { background: var(--secondary); color: white; border-color: var(--secondary); }
.sell-plan.featured .plan-btn:hover { box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.supplier-page .header-sticky, .supplier-page .announcement-bar { display: none; }

/* ============================================
   SUPPLIER PORTAL HIDE HEADER
   ============================================ */
.supplier-portal .header-sticky,
.supplier-portal .announcement-bar { display: none; }

/* ============================================
   RESPONSIVE & UTILITY EXTENSIONS
   ============================================ */
@media (max-width: 1024px) {
  /* PDP: gallery+info 2-col, sidebar below */
  .product-detail-grid { grid-template-columns: 1fr 1fr; }
  .product-sidebar { grid-column: 1 / -1; }
  .product-sidebar > div { position: static !important; }
}
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .text-center-mobile { text-align: center; }
  /* Hero padding reduction */
  .hero { padding: 80px 0 48px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; justify-content: center; }
  /* Secondary nav: horizontal scroll on mobile */
  .nav-secondary-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-secondary-inner::-webkit-scrollbar { display: none; }
  /* Footer bottom: wrap on mobile */
  .ft-bottom-inner { flex-wrap: wrap; gap: 8px; justify-content: center; text-align: center; }
  .ft-legal-links { flex-wrap: wrap; justify-content: center; gap: 4px; }
  .ft-legal-links a { padding: 4px 8px; border-right: none; }
  /* Supplier portal sidebar: collapse */
  .sp-layout { flex-direction: column; }
  .sp-sidebar { width: 100%; height: auto; position: static; }
  .sp-main { padding: 20px 16px; }
  .sp-stats { grid-template-columns: 1fr 1fr; }
  .sp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Messaging layout: collapse */
  .admin-layout .messaging-layout { grid-template-columns: 1fr; }
  .admin-layout .conv-list { max-height: 300px; border-right: none; border-bottom: 1px solid #E2E8F0; }
  /* About timeline: stack */
  .about-timeline-item { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .about-timeline-dot { display: none; }
  .about-timeline-item > *:nth-child(2) { display: none; }
  /* Dash grid 3: 2 columns */
  .dash-grid-3 { grid-template-columns: 1fr 1fr; }
  /* Account order detail grid */
  .order-detail-grid { grid-template-columns: 1fr; }
  /* Account layout sidebar */
  .acct-layout { padding: 16px 0; gap: 16px; }
  .acct-sidebar { width: 100%; }
  .acct-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0; }
  .acct-sidebar nav a { padding: 6px 12px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
  /* Wishlist/Addresses: use same layout */
  .account-layout { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 16px 0; }
  .account-sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0; }
  .account-sidebar nav a { padding: 6px 12px; font-size: 0.8125rem; border-radius: var(--radius-sm); }
  /* Product detail: stack to single column */
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; padding: 16px 0 32px; }
  .product-gallery-main { min-height: 240px; }
  .product-gallery-main img { max-height: 320px; }
  .product-gallery-thumb { width: 52px; height: 52px; }
  .product-sidebar > div { position: static !important; }
  .listing-toggle { display: inline-flex !important; }
  /* Search filter sidebar */
  .search-filter-wrap { display: none; }
  .search-filter-wrap.open { display: block; position: fixed; inset: 0; z-index: 200; background: white; overflow-y: auto; padding: 16px; }
  /* Specs table */
  .specs-table td:first-child { width: 120px; }
}
@media (max-width: 480px) {
  .stack-mobile { flex-direction: column; }
  .full-mobile { width: 100%; }
  /* Hero: tighter padding */
  .hero { padding: 60px 0 32px; }
  .hero-search { flex-direction: column; border-radius: var(--radius-lg); }
  .hero-search button { width: 100%; margin: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  /* Footer bottom: full wrap */
  .ft-bottom-inner { flex-direction: column; gap: 8px; }
  .ft-legal-links { flex-direction: column; gap: 4px; align-items: center; }
  .ft-legal-links a { border-right: none; }
  /* Supplier portal */
  .sp-stats { grid-template-columns: 1fr; }
  .sp-quick-actions { flex-direction: column; }
  .sp-quick-action { width: 100%; justify-content: center; }
  /* Dash grid 3: 1 column */
  .dash-grid-3 { grid-template-columns: 1fr; }
  /* Cart summary: full width */
  .cart-summary-card { position: static; }
  /* Account sidebar: full width stacked */
  .acct-sidebar nav { flex-direction: column; }
  .account-sidebar nav { flex-direction: column; }
  /* PDP small screen */
  .product-gallery-main { min-height: 200px; }
  .product-gallery-main img { max-height: 260px; }
  .product-gallery-thumb { width: 44px; height: 44px; }
}

/* Responsive admin grid utility */
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 768px) {
  .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; gap: 16px; }
}

/* Responsive admin search inputs */
.admin-search-input { width: 100% !important; max-width: 280px; }
@media (max-width: 768px) {
  .admin-search-input { max-width: 100%; }
}

/* Account table responsive */
.acct-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* Touch-friendly tap targets */
@media (pointer: coarse) {
  .btn, button, a, input[type="checkbox"], input[type="radio"], select, .nav-secondary-link, .ft-links a, .filter-checkbox label {
    min-height: 44px;
  }
  .nav-secondary-link { padding: 10px 8px; }
  .ft-links a { padding: 8px 0; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pro-card:hover, .card:hover, .stat-card:hover, .value-card:hover, .about-stat-card:hover, .about-team-card:hover {
    transform: none;
  }
}

/* ============================================
   DARK MODE — Design Tokens & Overrides
   ============================================ */
[data-theme="dark"] {
  --primary: #F1F5F9;
  --primary-light: #E2E8F0;
  --bg: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --bg-card: #1E293B;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #0F172A;
  --border: #334155;
  --border-light: #1E293B;
  --secondary-light: #1E3A5F;
  --accent-light: #164E63;
  --success-light: #064E3B;
  --warning-light: #78350F;
  --error-light: #7F1D1D;
  --info-light: #1E3A5F;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
}

/* --- Search page --- */
.search-hero-form { max-width: 600px; margin: 1.5rem auto 0; }
.search-results-container { padding-top: 2rem; padding-bottom: 4rem; }
.search-dym-label { font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500; padding: 0.375rem 0; }
.listing-layout-search { padding-top: 0; }
.search-empty-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* --- Category pages --- */
.cat-page-container { padding-top: 2rem; padding-bottom: 4rem; }
.cat-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.cat-page-icon { width: 18px; height: 18px; color: var(--secondary); }
.cat-page-link { color: inherit; text-decoration: none; }
.cat-card-body { padding-top: 0; }
.cat-children-list { display: flex; flex-direction: column; gap: 0.375rem; padding-top: 0.75rem; }
.cat-breadcrumb { justify-content: center; margin-bottom: 1rem; }
.cat-section-header { margin-bottom: 1.5rem; }
.cat-child-count { font-size: 0.75rem; opacity: 0.7; }

/* --- DigiKey Product Detail Page --- */
.dk-container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.dk-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: #64748B; margin-bottom: 24px; flex-wrap: wrap; }
.dk-breadcrumb a { color: #2563EB; text-decoration: none; }
.dk-breadcrumb a:hover { text-decoration: underline; }
.dk-bc-sep { color: #CBD5E1; }
.dk-bc-current { color: #0F172A; font-weight: 500; }

.dk-pd-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .dk-pd-top { grid-template-columns: 1fr; } }

.dk-pd-img-col { }
.dk-pd-img-main { background: #fff; border: 1px solid #E2E8F0; border-radius: 12px; padding: 32px; display: flex; align-items: center; justify-content: center; min-height: 360px; cursor: zoom-in; }
.dk-pd-img-main img { max-width: 100%; max-height: 320px; object-fit: contain; }
.dk-pd-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dk-pd-thumb { width: 64px; height: 64px; border: 2px solid #E2E8F0; border-radius: 8px; padding: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #fff; }
.dk-pd-thumb.active { border-color: #2563EB; }
.dk-pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dk-pd-img-note { font-size: 0.75rem; color: #94A3B8; margin-top: 12px; font-style: italic; }

.dk-pd-info-col { }
.dk-pd-mfr { font-size: 0.8125rem; font-weight: 600; color: #2563EB; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.dk-pd-title { font-size: 1.5rem; font-weight: 700; color: #0F172A; margin: 0 0 6px; line-height: 1.3; }
.dk-pd-pn { font-size: 0.875rem; color: #64748B; margin-bottom: 12px; }
.dk-pd-desc { font-size: 0.875rem; color: #475569; line-height: 1.6; margin-bottom: 16px; }

.dk-divider { height: 1px; background: #E2E8F0; margin: 24px 0; }

.dk-section-title { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0 0 12px; }
.dk-subsection-title { font-size: 0.875rem; font-weight: 600; color: #475569; margin: 0 0 8px; }

.dk-pd-attrs { margin-bottom: 16px; }
.dk-pd-attr-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.dk-pd-attr-table tr { border-bottom: 1px solid #F1F5F9; }
.dk-pd-attr-table tr:last-child { border-bottom: none; }
.dk-pa-label { width: 200px; padding: 6px 12px 6px 0; color: #64748B; font-weight: 500; vertical-align: top; }
.dk-pd-attr-table td { padding: 6px 0; color: #0F172A; }

.dk-status-active { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: #059669; }
.dk-status-active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #059669; }

.dk-pd-datasheet { margin-bottom: 16px; font-size: 0.8125rem; }
.dk-pd-datasheet strong { color: #475569; }
.dk-ds-link { display: inline-flex; align-items: center; gap: 6px; color: #2563EB; text-decoration: none; font-weight: 500; padding: 6px 12px; background: #EFF6FF; border-radius: 6px; margin: 4px 8px 4px 0; transition: background .15s; }
.dk-ds-link:hover { background: #DBEAFE; text-decoration: underline; }
.dk-ds-link svg { width: 14px; height: 14px; }

.dk-pricing-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.dk-pricing-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; border: 1px solid #E2E8F0; border-radius: 8px; overflow: hidden; }
.dk-pricing-table thead { background: #F8FAFC; }
.dk-pricing-table th { padding: 10px 16px; text-align: left; font-weight: 600; color: #475569; border-bottom: 1px solid #E2E8F0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.dk-pricing-table td { padding: 10px 16px; border-bottom: 1px solid #F1F5F9; color: #0F172A; }
.dk-pricing-table tbody tr:hover { background: #FAFBFC; }
.dk-pricing-table tbody tr:last-child td { border-bottom: none; }

.dk-pd-stock-row { margin-bottom: 16px; }
.dk-pd-stock-info { display: flex; align-items: center; gap: 12px; }
.dk-stock-count { font-size: 0.875rem; color: #475569; font-weight: 500; }

.dk-cart-form { }
.dk-cart-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dk-qty-wrap { }
.dk-qty-label { display: block; font-size: 0.75rem; font-weight: 600; color: #475569; margin-bottom: 4px; }
.dk-qty-control { display: flex; align-items: center; border: 1px solid #E2E8F0; border-radius: 8px; overflow: hidden; background: #fff; }
.dk-qty-control button { width: 36px; height: 36px; border: none; background: #F8FAFC; font-size: 1rem; cursor: pointer; color: #475569; display: flex; align-items: center; justify-content: center; }
.dk-qty-control button:hover { background: #EFF6FF; color: #2563EB; }
.dk-qty-control input { width: 56px; height: 36px; border: none; border-left: 1px solid #E2E8F0; border-right: 1px solid #E2E8F0; text-align: center; font-size: 0.875rem; font-weight: 600; color: #0F172A; outline: none; -moz-appearance: textfield; }
.dk-qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }

.dk-btn-cart { display: inline-flex; align-items: center; gap: 8px; padding: 10px 28px; background: #2563EB; color: #fff; border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background .15s; text-decoration: none; }
.dk-btn-cart:hover { background: #1D4ED8; }

.dk-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #E2E8F0; border-radius: 8px; color: #64748B; text-decoration: none; transition: all .15s; background: #fff; }
.dk-btn-icon:hover { border-color: #2563EB; color: #2563EB; background: #EFF6FF; }
.dk-btn-icon svg { width: 18px; height: 18px; }

.dk-price-note { font-size: 0.75rem; color: #94A3B8; margin-top: 8px; }

.dk-pd-sections { display: flex; flex-direction: column; gap: 32px; }
.dk-pd-section { }

.dk-ds-list { display: flex; flex-direction: column; gap: 6px; }

.dk-view-all { font-size: 0.8125rem; color: #2563EB; text-decoration: none; font-weight: 500; }
.dk-view-all:hover { text-decoration: underline; }

.dk-related-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dk-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.dk-related-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden; transition: box-shadow .15s; }
.dk-related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.dk-related-card img { width: 100%; height: 140px; object-fit: contain; padding: 16px; background: #fff; border-bottom: 1px solid #F1F5F9; }
.dk-rc-body { padding: 12px; }
.dk-rc-mfr { font-size: 0.6875rem; font-weight: 600; color: #2563EB; text-transform: uppercase; margin-bottom: 2px; }
.dk-rc-name { font-size: 0.8125rem; font-weight: 600; color: #0F172A; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dk-rc-sku { font-size: 0.6875rem; color: #94A3B8; margin-bottom: 6px; }
.dk-rc-price { font-size: 0.875rem; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.dk-btn-sm { display: inline-block; padding: 6px 14px; background: #2563EB; color: #fff; border-radius: 6px; font-size: 0.75rem; font-weight: 600; text-decoration: none; transition: background .15s; }
.dk-btn-sm:hover { background: #1D4ED8; }

.dk-review-list { display: flex; flex-direction: column; gap: 16px; }
.dk-review-item { padding: 16px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; }
.dk-review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dk-review-head strong { font-size: 0.875rem; color: #0F172A; }
.dk-review-date { font-size: 0.75rem; color: #94A3B8; }
.dk-review-stars { color: #F59E0B; font-size: 0.875rem; margin-bottom: 6px; }
.dk-review-text { font-size: 0.8125rem; color: #475569; line-height: 1.5; margin: 0; }

/* --- Compare page --- */
.compare-page-container { padding-top: 2rem; padding-bottom: 4rem; }
.compare-labels-col { background: var(--bg-secondary); }
.compare-label-first { border-top-left-radius: var(--radius-xl); }
.compare-remove-btn { float: right; background: none; border: none; color: var(--error); font-size: 1.25rem; cursor: pointer; }
.compare-product-link { color: inherit; text-decoration: none; }
.compare-footer-actions { text-align: center; margin-top: 2rem; }

[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .header-sticky { background: rgba(15,23,42,0.85); border-color: var(--border); }
[data-theme="dark"] .nav { background: transparent; }
[data-theme="dark"] .search-bar input { background: var(--bg-secondary); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .search-bar input:focus { border-color: var(--secondary); }
[data-theme="dark"] .search-category-select { background: var(--bg-secondary); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .nav-secondary { background: var(--bg-secondary); border-color: var(--border); }
[data-theme="dark"] .nav-secondary-link { color: var(--text-secondary); }
[data-theme="dark"] .nav-secondary-link:hover { color: var(--text); background: var(--bg-tertiary); }
[data-theme="dark"] .nav-dropdown-menu { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .nav-dropdown-item:hover { background: var(--bg-secondary); }
[data-theme="dark"] .dropdown-menu { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .dropdown-item:hover { background: var(--bg-secondary); }
[data-theme="dark"] .announcement-bar { background: var(--bg-secondary); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .footer { background: #0B1121; }
[data-theme="dark"] .ft-links a { color: var(--text-secondary); }
[data-theme="dark"] .ft-links a:hover { color: var(--text); }
[data-theme="dark"] .ft-newsletter-field input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--text); }
[data-theme="dark"] .ft-bottom { background: rgba(0,0,0,0.3); }
[data-theme="dark"] .ft-trust-bar { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .ft-trust-text strong { color: var(--text); }
[data-theme="dark"] .ft-trust-text span { color: var(--text-muted); }
[data-theme="dark"] .ft-cert-bar { background: rgba(0,0,0,0.25); }

[data-theme="dark"] .attention-bar { background: #422006; border-color: #78350F; color: #FBBF24; }
[data-theme="dark"] .attention-bar svg { color: #F59E0B; }

[data-theme="dark"] .hero { background: linear-gradient(135deg, #0B1121 0%, #1E293B 50%, #0B1121 100%); }
[data-theme="dark"] .hero-search input { background: transparent; border-color: rgba(255,255,255,0.12); color: white; }
[data-theme="dark"] .hero-search input:focus { border-color: #60A5FA; }
[data-theme="dark"] .trust-strip { background: var(--bg-tertiary); }
[data-theme="dark"] .section-header p { color: var(--text-secondary); }

[data-theme="dark"] .card,
[data-theme="dark"] .pro-card,
[data-theme="dark"] .pro-card-wide,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .seller-card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .support-card,
[data-theme="dark"] .kb-card,
[data-theme="dark"] .job-card,
[data-theme="dark"] .career-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .related-card,
[data-theme="dark"] .distributor-card,
[data-theme="dark"] .order-card,
[data-theme="dark"] .notif-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .stat-item,
[data-theme="dark"] .filter-sidebar,
[data-theme="dark"] .content-card,
[data-theme="dark"] .policy-card,
[data-theme="dark"] .payment-result-card,
[data-theme="dark"] .error-suggestions a,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .chk-summary,
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .cart-item,
[data-theme="dark"] .compare-grid,
[data-theme="dark"] .manufacturer-card { background: var(--bg-card); border-color: var(--border); }

[data-theme="dark"] .input-field { background: var(--bg); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .input-field:focus { border-color: var(--secondary); }
[data-theme="dark"] .table-wrapper { border-color: var(--border); }
[data-theme="dark"] .table { color: var(--text); }
[data-theme="dark"] .table thead { background: var(--bg-secondary); color: var(--text-secondary); }
[data-theme="dark"] .table tbody tr:hover { background: var(--bg-secondary); }
[data-theme="dark"] .table td { border-color: var(--border); }

[data-theme="dark"] .alert-success { background: var(--success-light); color: #6EE7B7; border-color: #065F46; }
[data-theme="dark"] .alert-error { background: var(--error-light); color: #FCA5A5; border-color: #991B1B; }
[data-theme="dark"] .alert-warning { background: var(--warning-light); color: #FCD34D; border-color: #92400E; }
[data-theme="dark"] .alert-info { background: var(--info-light); color: #93C5FD; border-color: #1E40AF; }

[data-theme="dark"] .badge { background: var(--secondary); color: white; }
[data-theme="dark"] .btn-ghost { color: var(--text-secondary); }
[data-theme="dark"] .btn-ghost:hover { background: var(--bg-tertiary); color: var(--text); }
[data-theme="dark"] .btn-outline { border-color: var(--border); color: var(--text); }
[data-theme="dark"] .btn-outline:hover { background: var(--bg-tertiary); border-color: var(--text-secondary); color: var(--text); }

[data-theme="dark"] .pagination-link { background: var(--bg-secondary); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .pagination-link:hover { background: var(--bg-tertiary); color: var(--text); border-color: var(--text-muted); }
[data-theme="dark"] .pagination-link.active { background: var(--secondary); border-color: var(--secondary); color: white; }

[data-theme="dark"] .review-summary,
[data-theme="dark"] .pd-bulk-table,
[data-theme="dark"] .specs-table,
[data-theme="dark"] .distributor-table { border-color: var(--border); }
[data-theme="dark"] .pd-tab-btn { color: var(--text-muted); }
[data-theme="dark"] .pd-tab-btn:hover { color: var(--text); }
[data-theme="dark"] .pd-tab-btn.active { color: var(--secondary); border-color: var(--secondary); }
[data-theme="dark"] .pd-sticky-bar { background: rgba(15,23,42,0.95); border-color: var(--border); }
[data-theme="dark"] .pd-review-item { border-color: var(--border); }

[data-theme="dark"] .subcategory-strip { background: var(--bg-secondary); }
[data-theme="dark"] .subcategory-link { background: var(--bg); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .subcategory-link:hover { background: var(--bg-tertiary); color: var(--text); border-color: var(--text-muted); }

[data-theme="dark"] .listing-toolbar { background: var(--bg-secondary); border-color: var(--border); }

[data-theme="dark"] .testimonial-card blockquote { color: var(--text); }
[data-theme="dark"] .testimonial-card cite { color: var(--text-secondary); }
[data-theme="dark"] .testimonial-card .role { color: var(--text-muted); }

[data-theme="dark"] .pro-card-title { color: var(--text); }
[data-theme="dark"] .pro-card-price { color: var(--text); }
[data-theme="dark"] .pro-card-mpn { color: var(--text-muted); }
[data-theme="dark"] .pro-card-mfr { color: var(--text-secondary); }
[data-theme="dark"] .pro-card .text-muted { color: var(--text-muted); }

[data-theme="dark"] .feature-icon { background: var(--bg-tertiary); }
[data-theme="dark"] .feature-icon svg { color: var(--secondary); }
[data-theme="dark"] .stat-icon { background: var(--bg-tertiary); }

[data-theme="dark"] .page-hero { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }
[data-theme="dark"] .content-hero { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }

[data-theme="dark"] .manufacturer-card:hover,
[data-theme="dark"] .category-card:hover,
[data-theme="dark"] .pro-card:hover,
[data-theme="dark"] .related-card:hover,
[data-theme="dark"] .tool-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

[data-theme="dark"] .empty-state svg { color: var(--text-muted); }
[data-theme="dark"] .empty-state h3 { color: var(--text); }
[data-theme="dark"] .empty-state p { color: var(--text-secondary); }

[data-theme="dark"] .chk-header { background: var(--bg); border-color: var(--border); }
[data-theme="dark"] .chk-step-indicator { background: var(--bg-secondary); color: var(--text-secondary); }
[data-theme="dark"] .chk-step-indicator.active { background: var(--secondary); color: white; }
[data-theme="dark"] .chk-step-indicator.done { background: var(--success); color: white; }
[data-theme="dark"] .chk-section { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .chk-section-title { color: var(--text); }
[data-theme="dark"] .chk-place-btn { background: var(--secondary); color: white; }
[data-theme="dark"] .chk-place-btn:hover { background: var(--secondary-hover); }
[data-theme="dark"] .chk-confirm { background: var(--bg-secondary); border-color: var(--border); }
[data-theme="dark"] .chk-trust { border-color: var(--border); }
[data-theme="dark"] .chk-summary-item { border-color: var(--border); }

[data-theme="dark"] .coupon-form input { background: var(--bg); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .qty-selector { border-color: var(--border); background: var(--bg); }
[data-theme="dark"] .qty-selector button { color: var(--text-secondary); }
[data-theme="dark"] .qty-selector button:hover { color: var(--text); background: var(--bg-tertiary); }

[data-theme="dark"] .contact-info-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .about-timeline-item { border-color: var(--border); }
[data-theme="dark"] .about-timeline-item::before { background: var(--secondary); }
[data-theme="dark"] .about-team-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .about-team-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

[data-theme="dark"] .faq-item { border-color: var(--border); }
[data-theme="dark"] .faq-item summary { background: var(--bg-card); color: var(--text); }
[data-theme="dark"] .faq-item summary:hover { background: var(--bg-secondary); }
[data-theme="dark"] .faq-item[open] summary { background: var(--bg-secondary); }

[data-theme="dark"] .sidebar-tags a { background: var(--bg-tertiary); color: var(--text-secondary); border-color: var(--border); }
[data-theme="dark"] .sidebar-tags a:hover { background: var(--secondary); color: white; border-color: var(--secondary); }

[data-theme="dark"] .job-card:hover,
[data-theme="dark"] .career-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
[data-theme="dark"] .job-meta { color: var(--text-muted); }

[data-theme="dark"] .support-card svg,
[data-theme="dark"] .kb-card svg { color: var(--secondary); }

[data-theme="dark"] .filters-sidebar { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .filter-chip { background: var(--bg-tertiary); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .filter-chip:hover { background: var(--secondary); color: white; border-color: var(--secondary); }

[data-theme="dark"] .compare-row { border-color: var(--border); }
[data-theme="dark"] .compare-row:nth-child(even) { background: var(--bg-secondary); }

[data-theme="dark"] .search-input-wrap input { background: var(--bg); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .search-input-wrap input:focus { border-color: var(--secondary); }

[data-theme="dark"] .toast { background: var(--bg-card); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .toast.success { border-color: var(--success); }
[data-theme="dark"] .toast.error { border-color: var(--error); }

[data-theme="dark"] .pw-requirements li { color: var(--text-muted); }
[data-theme="dark"] .pw-requirements li.met { color: var(--success); }
[data-theme="dark"] .role-selector label { border-color: var(--border); background: var(--bg); color: var(--text-secondary); }
[data-theme="dark"] .role-selector label:hover { border-color: var(--secondary); color: var(--text); }
[data-theme="dark"] .role-selector input:checked + label { border-color: var(--secondary); background: var(--secondary-light); color: var(--secondary); }

[data-theme="dark"] .scroll-top { background: var(--bg-tertiary); color: var(--text-secondary); }
[data-theme="dark"] .scroll-top:hover { background: var(--secondary); color: white; }

[data-theme="dark"] ::selection { background: rgba(37,99,235,0.3); }

/* --- Dark Mode: Enterprise Overrides --- */
[data-theme="dark"] .product-card-enterprise { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .product-card-enterprise:hover { border-color: var(--secondary); }
[data-theme="dark"] .product-card-enterprise .card-image-wrap { background: var(--bg-secondary); }
[data-theme="dark"] .product-card-enterprise .card-action-btn { background: var(--bg-tertiary); border-color: var(--border); }
[data-theme="dark"] .product-card-enterprise .card-action-btn:hover { background: var(--secondary); border-color: var(--secondary); }
[data-theme="dark"] .category-card-enterprise { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .category-card-enterprise:hover { border-color: var(--secondary); }
[data-theme="dark"] .brand-card-enterprise { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .search-input-wrap input { background: var(--bg); color: var(--text); }
[data-theme="dark"] .search-input-wrap { background: var(--bg-secondary); border-color: var(--border); }
[data-theme="dark"] .search-input-wrap:focus-within { border-color: var(--secondary); }
[data-theme="dark"] .quick-view-overlay { background: rgba(15,23,42,0.7); }
[data-theme="dark"] .quick-view-modal { background: var(--bg-card); }
[data-theme="dark"] .testimonial-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .cart-item-enterprise { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .cart-summary-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .stat-box { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .filter-sidebar { background: var(--bg-card); }
[data-theme="dark"] .filter-chip { background: var(--bg-tertiary); border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .filter-chip:hover { border-color: var(--secondary); color: var(--secondary); background: var(--secondary-light); }
[data-theme="dark"] .filter-search { background: var(--bg); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .pagination-enterprise a { color: var(--text-secondary); }
[data-theme="dark"] .pagination-enterprise a:hover { background: var(--bg-tertiary); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .sort-dropdown select { background-color: var(--bg-card); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .mega-col a { color: var(--text-secondary); }
[data-theme="dark"] .mega-col a:hover { background: var(--bg-tertiary); color: var(--text); }
[data-theme="dark"] .search-suggestions-enhanced { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .empty-state-icon { background: var(--bg-tertiary); }
[data-theme="dark"] .pdp-datasheet-btn { border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .pdp-datasheet-btn:hover { border-color: var(--secondary); color: var(--secondary); background: var(--secondary-light); }

/* ============================================
   ENTERPRISE UPGRADE — Mega Nav, Skeleton, Glass, Trust, etc.
   ============================================ */

/* --- Mega Menu Grid --- */
.mega-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 12px; min-width: 640px;
}
.mega-col h4 { font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 8px 12px 4px; margin: 0; }
.mega-col a { display: block; padding: 6px 12px; font-size: 0.8125rem;
  color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-sm);
  transition: all var(--transition); }
.mega-col a:hover { background: var(--bg-tertiary); color: var(--text); }
.mega-col a.mega-featured { color: var(--secondary); font-weight: 600; }

/* --- Search Bar Enhanced --- */
.search-bar-enhanced { flex: 1; max-width: 600px; position: relative; }
.search-input-wrap { display: flex; align-items: center; background: var(--bg-secondary);
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  overflow: hidden; transition: all var(--transition); }
.search-input-wrap:focus-within { border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.search-input-wrap input { flex: 1; padding: 10px 16px; border: none; background: transparent;
  font-size: 0.875rem; color: var(--text); outline: none; }
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-input-wrap button { padding: 8px 18px; border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; display: flex; align-items: center; }
.search-input-wrap button:hover { color: var(--secondary); }
.search-suggestions-enhanced { position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 8px; display: none; z-index: 100; }
.search-bar-enhanced:focus-within .search-suggestions-enhanced,
.search-suggestions-enhanced.show { display: block; }

/* --- Skeleton Loading --- */
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm); }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 320px; border-radius: var(--radius-lg); }
.skeleton-line { height: 12px; margin-bottom: 8px; border-radius: var(--radius-sm); }
.skeleton-line-sm { width: 60%; }
.skeleton-line-xs { width: 40%; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); }
.skeleton-thumb { width: 100%; height: 180px; border-radius: var(--radius-md); margin-bottom: 12px; }

/* --- Empty States --- */
.empty-state { display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 48px 24px; text-align: center; }
.empty-state-icon { width: 64px; height: 64px; border-radius: var(--radius-full);
  background: var(--bg-tertiary); display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; color: var(--text-muted); }
.empty-state-icon svg { width: 28px; height: 28px; }
.empty-state-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.empty-state-text { font-size: 0.8125rem; color: var(--text-muted); max-width: 320px; }
.empty-state-sm { padding: 32px 16px; }
.empty-state-sm .empty-state-icon { width: 48px; height: 48px; }
.empty-state-sm .empty-state-icon svg { width: 22px; height: 22px; }

/* --- Glassmorphism --- */
.glass { background: rgba(255,255,255,0.7); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(226,232,240,0.5); }
.glass-card { background: rgba(255,255,255,0.6); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(226,232,240,0.4);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .glass { background: rgba(15,23,42,0.7);
  border-color: rgba(51,65,85,0.5); }
[data-theme="dark"] .glass-card { background: rgba(30,41,59,0.6);
  border-color: rgba(51,65,85,0.4); }

/* --- Enterprise Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.fade-in { animation: fadeIn 0.4s ease forwards; }
.slide-up { animation: slideUp 0.5s ease forwards; }
.scale-in { animation: scaleIn 0.35s ease forwards; }
.slide-in-right { animation: slideInRight 0.4s ease forwards; }
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* --- Hero Enterprise --- */
.hero-enterprise { position: relative; padding: 64px 0 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a2744 50%, var(--primary) 100%);
  overflow: hidden; }
.hero-enterprise::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.1) 0%, transparent 50%); }
.hero-enterprise .container { position: relative; z-index: 1; }
.hero-enterprise h1 { font-family: var(--font-heading); font-size: 2.5rem;
  font-weight: 800; color: white; line-height: 1.15; margin-bottom: 12px;
  letter-spacing: -0.03em; }
.hero-enterprise h1 span { background: linear-gradient(135deg, #60A5FA, #06B6D4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; }
.hero-enterprise p { font-size: 1.0625rem; color: rgba(255,255,255,0.7);
  max-width: 560px; line-height: 1.6; margin-bottom: 24px; }
.hero-enterprise .hero-stats { display: flex; gap: 32px; margin-top: 32px; }
.hero-enterprise .hero-stat { text-align: center; }
.hero-enterprise .hero-stat-value { font-size: 1.5rem; font-weight: 700; color: white; }
.hero-enterprise .hero-stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* --- Trust Bar --- */
.trust-bar { display: flex; justify-content: center; gap: 48px;
  padding: 20px 0; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; color: var(--text-secondary); }
.trust-item svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; }

/* --- Featured Section Enterprise --- */
.featured-section { padding: 48px 0; }
.featured-section-header { display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 24px; }
.featured-section-header h2 { font-family: var(--font-heading); font-size: 1.375rem;
  font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.featured-section-header .section-link { font-size: 0.8125rem; font-weight: 500;
  color: var(--secondary); text-decoration: none; }
.featured-section-header .section-link:hover { text-decoration: underline; }

/* --- Product Card Enterprise --- */
.product-card-enterprise { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
  display: flex; flex-direction: column; position: relative; }
.product-card-enterprise:hover { border-color: var(--secondary);
  box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.product-card-enterprise .card-badge { position: absolute; top: 8px; left: 8px;
  z-index: 2; font-size: 0.625rem; font-weight: 600; padding: 2px 8px;
  border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card-enterprise .card-badge.new { background: var(--success); color: white; }
.product-card-enterprise .card-badge.featured { background: var(--secondary); color: white; }
.product-card-enterprise .card-badge.sale { background: var(--error); color: white; }
.product-card-enterprise .card-image-wrap { position: relative; padding: 16px;
  background: var(--bg-secondary); display: flex; align-items: center;
  justify-content: center; height: 200px; overflow: hidden; }
.product-card-enterprise .card-image-wrap img { max-width: 85%;
  max-height: 100%; object-fit: contain; transition: transform var(--transition); }
.product-card-enterprise:hover .card-image-wrap img { transform: scale(1.08); }
.product-card-enterprise .card-actions { position: absolute; top: 8px; right: 8px;
  display: flex; flex-direction: column; gap: 4px; opacity: 0;
  transform: translateX(8px); transition: all var(--transition); }
.product-card-enterprise:hover .card-actions { opacity: 1; transform: translateX(0); }
.product-card-enterprise .card-action-btn { width: 32px; height: 32px;
  border-radius: var(--radius-full); background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all var(--transition);
  box-shadow: var(--shadow-sm); }
.product-card-enterprise .card-action-btn:hover { background: var(--secondary);
  color: white; border-color: var(--secondary); }
.product-card-enterprise .card-action-btn svg { width: 16px; height: 16px; }
.product-card-enterprise .card-body { padding: 12px 16px 16px; flex: 1;
  display: flex; flex-direction: column; }
.product-card-enterprise .card-mpn { font-size: 0.6875rem; color: var(--text-muted);
  font-family: var(--font-mono); margin-bottom: 4px; }
.product-card-enterprise .card-name { font-size: 0.875rem; font-weight: 600;
  color: var(--text); line-height: 1.3; margin-bottom: 4px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-enterprise .card-name a { color: inherit; text-decoration: none; }
.product-card-enterprise .card-name a:hover { color: var(--secondary); }
.product-card-enterprise .card-manufacturer { font-size: 0.75rem; color: var(--text-secondary);
  margin-bottom: 8px; }
.product-card-enterprise .card-price-row { display: flex; align-items: center;
  justify-content: space-between; margin-top: auto; }
.product-card-enterprise .card-price { font-size: 1.125rem; font-weight: 700;
  color: var(--text); }
.product-card-enterprise .card-price .original { font-size: 0.8125rem;
  font-weight: 400; color: var(--text-muted); text-decoration: line-through;
  margin-left: 6px; }
.product-card-enterprise .card-stock { font-size: 0.6875rem; font-weight: 500;
  padding: 2px 8px; border-radius: var(--radius-full); }
.product-card-enterprise .card-stock.in-stock { background: var(--success-light);
  color: var(--success); }
.product-card-enterprise .card-stock.low-stock { background: var(--warning-light);
  color: var(--warning); }
.product-card-enterprise .card-stock.out-of-stock { background: var(--error-light);
  color: var(--error); }
.product-card-enterprise .card-add-cart { margin-top: 10px; width: 100%;
  padding: 8px; border-radius: var(--radius-md); border: none;
  background: var(--secondary); color: white; font-size: 0.8125rem;
  font-weight: 600; cursor: pointer; transition: all var(--transition); }
.product-card-enterprise .card-add-cart:hover { background: var(--secondary-hover); }

/* --- Grid / List Toggle --- */
.view-toggle { display: flex; align-items: center; gap: 4px;
  background: var(--bg-tertiary); border-radius: var(--radius-md); padding: 2px; }
.view-toggle button { width: 32px; height: 32px; border: none; background: transparent;
  border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); }
.view-toggle button.active { background: var(--bg-card); color: var(--text);
  box-shadow: var(--shadow-sm); }
.view-toggle button:hover { color: var(--text); }
.view-toggle button svg { width: 16px; height: 16px; }
.product-list-layout { display: flex; flex-direction: column; gap: 16px; }
.product-list-layout .product-card-enterprise { flex-direction: row; }
.product-list-layout .product-card-enterprise .card-image-wrap { width: 200px;
  height: 180px; flex-shrink: 0; }
.product-list-layout .product-card-enterprise .card-actions { opacity: 1;
  transform: none; position: static; flex-direction: row; margin-left: auto; }

/* --- Advanced Filters --- */
.filter-group { margin-bottom: 20px; }
.filter-group-title { font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.filter-group-content { display: flex; flex-direction: column; gap: 6px; }
.filter-checkbox { display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; }
.filter-checkbox input[type="checkbox"] { width: 16px; height: 16px;
  accent-color: var(--secondary); border-radius: 3px; cursor: pointer; }
.filter-checkbox:hover { color: var(--text); }
.filter-checkbox .count { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.75rem; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition); text-decoration: none; }
.filter-chip:hover { border-color: var(--secondary); color: var(--secondary);
  background: var(--secondary-light); }
.filter-chip.active { background: var(--secondary); color: white;
  border-color: var(--secondary); }
.filter-search { width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.8125rem; color: var(--text);
  background: var(--bg); outline: none; transition: all var(--transition); }
.filter-search:focus { border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* --- Quick View Modal --- */
.quick-view-overlay { position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,0.5); display: flex; align-items: center;
  justify-content: center; opacity: 0; visibility: hidden;
  transition: all var(--transition); }
.quick-view-overlay.open { opacity: 1; visibility: visible; }
.quick-view-modal { background: var(--bg-card); border-radius: var(--radius-xl);
  width: 90%; max-width: 800px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl); transform: scale(0.95);
  transition: all var(--transition); }
.quick-view-overlay.open .quick-view-modal { transform: scale(1); }
.quick-view-close { position: absolute; top: 12px; right: 12px; width: 36px;
  height: 36px; border-radius: var(--radius-full); border: none;
  background: var(--bg-tertiary); color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); z-index: 10; }
.quick-view-close:hover { background: var(--error-light); color: var(--error); }
.quick-view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 24px; position: relative; }
@media (max-width: 640px) { .quick-view-grid { grid-template-columns: 1fr; } }

/* --- Enterprise Pagination --- */
.pagination-enterprise { display: flex; align-items: center;
  justify-content: center; gap: 4px; margin-top: 32px; }
.pagination-enterprise a, .pagination-enterprise span { display: inline-flex;
  align-items: center; justify-content: center; min-width: 36px; height: 36px;
  padding: 0 8px; border-radius: var(--radius-md); font-size: 0.8125rem;
  font-weight: 500; color: var(--text-secondary); text-decoration: none;
  transition: all var(--transition); border: 1px solid transparent; }
.pagination-enterprise a:hover { background: var(--bg-tertiary);
  border-color: var(--border); color: var(--text); }
.pagination-enterprise .active { background: var(--secondary); color: white;
  border-color: var(--secondary); }
.pagination-enterprise .disabled { opacity: 0.4; pointer-events: none; }

/* --- Breadcrumb Enhanced --- */
.breadcrumb-enhanced { display: flex; align-items: center; gap: 6px;
  padding: 12px 0; font-size: 0.75rem; flex-wrap: wrap; }
.breadcrumb-enhanced a { color: var(--text-muted); text-decoration: none;
  transition: color var(--transition); }
.breadcrumb-enhanced a:hover { color: var(--secondary); }
.breadcrumb-enhanced span { color: var(--text-secondary); font-weight: 500; }
.breadcrumb-enhanced .sep { color: var(--border); font-size: 0.625rem; }

/* --- Category Card Enterprise --- */
.category-card-enterprise { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
  text-decoration: none; transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.category-card-enterprise:hover { border-color: var(--secondary);
  box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.category-card-enterprise .cat-icon { width: 56px; height: 56px;
  border-radius: var(--radius-lg); background: var(--secondary-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary); transition: all var(--transition); }
.category-card-enterprise:hover .cat-icon { background: var(--secondary);
  color: white; }
.category-card-enterprise .cat-icon svg { width: 24px; height: 24px; }
.category-card-enterprise .cat-name { font-size: 0.875rem; font-weight: 600;
  color: var(--text); }
.category-card-enterprise .cat-count { font-size: 0.75rem; color: var(--text-muted); }

/* --- Stats Row --- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin: 24px 0; }
.stat-box { text-align: center; padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat-box-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat-box-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* --- Section with BG --- */
.section-bg-alt { background: var(--bg-secondary); }

/* --- Brand/Manufacturer Card Enterprise --- */
.brand-card-enterprise { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
  text-decoration: none; transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand-card-enterprise:hover { border-color: var(--secondary);
  box-shadow: var(--shadow-md); }
.brand-card-enterprise .brand-logo { height: 48px; max-width: 80%;
  object-fit: contain; filter: grayscale(0.3); transition: all var(--transition); }
.brand-card-enterprise:hover .brand-logo { filter: grayscale(0); }
.brand-card-enterprise .brand-name { font-size: 0.8125rem; font-weight: 500;
  color: var(--text-secondary); }

/* --- Testimonial Card --- */
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; transition: all var(--transition); }
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card .stars { color: #F59E0B; font-size: 0.8125rem; margin-bottom: 8px; }
.testimonial-card blockquote { font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.6; font-style: italic; margin: 0 0 12px; }
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.testimonial-card .author-avatar { width: 36px; height: 36px;
  border-radius: var(--radius-full); background: var(--secondary-light);
  color: var(--secondary); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.75rem; }
.testimonial-card .author-name { font-size: 0.8125rem; font-weight: 600;
  color: var(--text); }
.testimonial-card .author-title { font-size: 0.6875rem; color: var(--text-muted); }

/* --- Newsletter Enterprise --- */
.newsletter-enterprise { background: linear-gradient(135deg, var(--primary) 0%, #1a2744 100%);
  border-radius: var(--radius-xl); padding: 48px; text-align: center;
  margin: 48px 0; position: relative; overflow: hidden; }
.newsletter-enterprise::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.2) 0%, transparent 50%); }
.newsletter-enterprise * { position: relative; z-index: 1; }
.newsletter-enterprise h2 { font-family: var(--font-heading); font-size: 1.5rem;
  font-weight: 700; color: white; margin-bottom: 6px; }
.newsletter-enterprise p { color: rgba(255,255,255,0.7); font-size: 0.9375rem;
  margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-enterprise form { display: flex; gap: 8px; max-width: 440px;
  margin: 0 auto; }
.newsletter-enterprise input { flex: 1; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md); background: rgba(255,255,255,0.1);
  color: white; font-size: 0.875rem; outline: none; }
.newsletter-enterprise input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-enterprise input:focus { border-color: var(--secondary);
  background: rgba(255,255,255,0.15); }
.newsletter-enterprise button { padding: 12px 28px; border: none;
  border-radius: var(--radius-md); background: var(--secondary); color: white;
  font-weight: 600; font-size: 0.875rem; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; }
.newsletter-enterprise button:hover { background: var(--secondary-hover);
  box-shadow: var(--shadow-glow); }

/* --- PDP Layout --- */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr 320px; gap: 32px; padding: 24px 0 48px; align-items: start; }

.product-gallery { position: relative; }
.product-gallery-main { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.product-gallery-main img { width: 100%; height: auto; max-height: 420px; object-fit: contain; display: block; }
.product-gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.product-gallery-thumb { width: 64px; height: 64px; flex-shrink: 0; border: 2px solid var(--border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; transition: border-color var(--transition); }
.product-gallery-thumb:hover, .product-gallery-thumb.active { border-color: var(--secondary); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-info { min-width: 0; }
.product-sidebar { position: relative; }

/* --- PDP Enterprise Enhancements --- */
.pdp-specs-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.pdp-specs-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.pdp-specs-table td:first-child { font-weight: 500; color: var(--text-secondary);
  width: 40%; }
.pdp-specs-table td:last-child { color: var(--text); }
.pdp-specs-table tr:hover td { background: var(--bg-secondary); }
.pdp-datasheets { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-datasheet-btn { display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.8125rem; color: var(--text-secondary); text-decoration: none;
  transition: all var(--transition); }
.pdp-datasheet-btn:hover { border-color: var(--secondary); color: var(--secondary);
  background: var(--secondary-light); }
.pdp-datasheet-btn svg { width: 16px; height: 16px; }

/* --- Cart Enterprise --- */
.cart-item-enterprise { display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 8px;
  transition: all var(--transition); }
.cart-item-enterprise:hover { border-color: var(--secondary); }
.cart-item-enterprise .item-image { width: 80px; height: 80px;
  border-radius: var(--radius-md); background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-enterprise .item-image img { max-width: 80%; max-height: 80%;
  object-fit: contain; }
.cart-item-enterprise .item-details { flex: 1; min-width: 0; }
.cart-item-enterprise .item-name { font-size: 0.875rem; font-weight: 600;
  color: var(--text); margin-bottom: 2px; }
.cart-item-enterprise .item-mpn { font-size: 0.75rem; color: var(--text-muted); }
.cart-item-enterprise .item-price { font-size: 0.9375rem; font-weight: 700;
  color: var(--text); white-space: nowrap; }
.cart-summary-card { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px; }
.cart-summary-card h3 { font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 16px; }
.cart-summary-row { display: flex; justify-content: space-between;
  font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 8px; }
.cart-summary-total { display: flex; justify-content: space-between;
  font-size: 1.0625rem; font-weight: 700; color: var(--text);
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: 8px; }

/* --- Mobile Responsive Filter Sidebar --- */
.filter-sidebar-overlay { display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.4); z-index: 150; }
.filter-sidebar-overlay.open { display: block; }
.filter-sidebar { position: fixed; top: 0; left: -300px; width: 300px;
  height: 100vh; background: var(--bg-card); z-index: 151;
  overflow-y: auto; transition: left var(--transition);
  box-shadow: var(--shadow-xl); }
.filter-sidebar.open { left: 0; }
.filter-sidebar-header { display: flex; align-items: center;
  justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.filter-sidebar-header h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.filter-sidebar-close { width: 32px; height: 32px; border: none;
  background: transparent; color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); }
.filter-sidebar-close:hover { background: var(--bg-tertiary); }
.filter-sidebar-body { padding: 16px; }
.filter-sidebar-footer { padding: 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; }
.filter-sidebar-footer .btn { flex: 1; }

/* --- Sort Dropdown Enterprise --- */
.sort-dropdown { position: relative; }
.sort-dropdown select { padding: 8px 32px 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.8125rem; color: var(--text);
  background: var(--bg-card); cursor: pointer; outline: none;
  appearance: none; -webkit-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='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.sort-dropdown select:hover { border-color: var(--secondary); }

/* --- Search Results Header --- */
.search-results-header { display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.search-results-header .count { font-size: 0.875rem; color: var(--text-secondary); }
.search-results-header .count strong { color: var(--text); }

/* --- Account Order Detail --- */
.order-status-bar { display: flex; flex-wrap: wrap; gap: 16px;
  padding: 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 24px; }
.order-status-item { flex: 1; min-width: 120px; }
.order-status-label { display: block; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.order-status-value { font-size: 1rem; font-weight: 600; color: var(--text); }
.order-status-total { color: var(--secondary); font-size: 1.125rem; }
.order-badge { display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; background: var(--bg-secondary); color: var(--text-muted); }
.order-badge.badge-pending { background: #FEF3C7; color: #92400E; }
.order-badge.badge-processing { background: #DBEAFE; color: #1E40AF; }
.order-badge.badge-shipped { background: #E0E7FF; color: #3730A3; }
.order-badge.badge-delivered { background: #D1FAE5; color: #065F46; }
.order-badge.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.order-badge.badge-paid { background: #D1FAE5; color: #065F46; }
.order-badge.badge-unpaid { background: #FEF3C7; color: #92400E; }
.order-badge.badge-refunded { background: #E0E7FF; color: #3730A3; }
.order-addresses { display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 24px; }
.order-address-card { padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); }
.order-address-card h3 { font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin: 0 0 8px 0; }
.order-address-card p { margin: 2px 0; font-size: 0.875rem; color: var(--text); }
.order-items-table { width: 100%; border-collapse: collapse;
  margin-bottom: 24px; }
.order-items-table th { text-align: left; padding: 12px 16px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); background: var(--bg-secondary);
  border-bottom: 1px solid var(--border); }
.order-items-table td { padding: 12px 16px; font-size: 0.875rem;
  color: var(--text); border-bottom: 1px solid var(--border); }
.order-item-name { display: flex; align-items: center; gap: 12px; }
.order-item-thumb { width: 48px; height: 48px; object-fit: contain;
  border-radius: 6px; background: #fff; border: 1px solid var(--border); }
.order-item-price { white-space: nowrap; }
.order-item-qty { text-align: center; }
.order-item-total { font-weight: 600; white-space: nowrap; }
.order-summary-label { text-align: right; font-size: 0.875rem;
  color: var(--text-muted); padding: 6px 16px !important; }
.order-summary-value { text-align: right; font-size: 0.875rem;
  padding: 6px 16px !important; font-weight: 500; }
.order-summary-discount { color: var(--error); }
.order-summary-total { font-size: 1.125rem; font-weight: 700;
  color: var(--secondary); }
.order-history-entry { display: flex; align-items: center;
  gap: 12px; padding: 8px 0; }
.order-history-entry + .order-history-entry { border-top: 1px solid var(--border); }
.order-history-date { font-size: 0.8125rem; color: var(--text-secondary);
  white-space: nowrap; }
.order-history-note { font-size: 0.8125rem; color: var(--text-muted); }
.breadcrumb { display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; margin-bottom: 16px; }
.breadcrumb a { color: var(--secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb a::after { content: '/'; margin-left: 8px; color: var(--text-muted); }
.breadcrumb span { color: var(--text-muted); }

[data-theme="dark"] .order-badge.badge-pending { background: #78350F; color: #FCD34D; }
[data-theme="dark"] .order-badge.badge-processing { background: #1E3A5F; color: #93C5FD; }
[data-theme="dark"] .order-badge.badge-shipped { background: #2E1065; color: #C4B5FD; }
[data-theme="dark"] .order-badge.badge-delivered { background: #064E3B; color: #6EE7B7; }
[data-theme="dark"] .order-badge.badge-cancelled { background: #7F1D1D; color: #FCA5A5; }
[data-theme="dark"] .order-badge.badge-paid { background: #064E3B; color: #6EE7B7; }
[data-theme="dark"] .order-badge.badge-unpaid { background: #78350F; color: #FCD34D; }
[data-theme="dark"] .order-badge.badge-refunded { background: #2E1065; color: #C4B5FD; }
.dash-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============================================
   DIGIKEY-STYLE PRODUCTS LISTING (Table + Grid)
   ============================================ */
.dk-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 24px 0; }
@media (max-width: 900px) { .dk-layout { grid-template-columns: 1fr; } }

.dk-sidebar { min-width: 0; }
.dk-sidebar .dk-filter-group { border-bottom: 1px solid #e5e7eb; }
.dk-sidebar .dk-filter-group:last-child { border-bottom: none; }

.dk-filter-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 0; background: none; border: none; cursor: pointer; color: #1f2937; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; text-align: left; }
.dk-filter-toggle:hover { color: #2563eb; }
.dk-filter-toggle .dk-chevron { width: 14px; height: 14px; transition: transform 0.2s; }
.dk-filter-toggle.dk-open .dk-chevron { transform: rotate(180deg); }
.dk-filter-body { padding-bottom: 12px; }
.dk-filter-body.dk-collapsed { display: none; }

.dk-filter-link { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 0.8125rem; color: #374151; text-decoration: none; transition: color 0.15s; }
.dk-filter-link:hover { color: #2563eb; }
.dk-filter-link.dk-active { color: #2563eb; font-weight: 600; }
.dk-filter-link .dk-count { font-size: 0.75rem; color: #9ca3af; }
.dk-filter-link.dk-active .dk-count { color: #2563eb; }

.dk-filter-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 0.8125rem; color: #374151; cursor: pointer; }
.dk-filter-check:hover { color: #2563eb; }
.dk-filter-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: #2563eb; cursor: pointer; }

.dk-filter-manu { max-height: 220px; overflow-y: auto; }
.dk-filter-manu::-webkit-scrollbar { width: 4px; }
.dk-filter-manu::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.dk-price-inputs { display: flex; align-items: center; gap: 6px; }
.dk-input { width: 100%; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.8125rem; color: #1f2937; outline: none; transition: border-color 0.15s; }
.dk-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.dk-price-sep { color: #9ca3af; font-size: 0.8125rem; }
.dk-apply-btn { margin-top: 8px; width: 100%; padding: 7px; background: #2563eb; color: white; border: none; border-radius: 4px; font-size: 0.8125rem; font-weight: 500; cursor: pointer; transition: background 0.15s; }
.dk-apply-btn:hover { background: #1d4ed8; }

/* ─── Toolbar ─── */
.dk-toolbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; margin-bottom: 0; }
.dk-toolbar-left { display: flex; align-items: center; gap: 12px; }
.dk-toolbar-right { display: flex; align-items: center; gap: 10px; }
.dk-result-count { font-size: 0.875rem; color: #6b7280; }
.dk-result-count strong { color: #1f2937; }

.dk-view-toggle { display: inline-flex; border: 1px solid #d1d5db; border-radius: 4px; overflow: hidden; }
.dk-view-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: none; background: white; color: #6b7280; cursor: pointer; transition: all 0.15s; }
.dk-view-btn + .dk-view-btn { border-left: 1px solid #d1d5db; }
.dk-view-btn:hover { color: #2563eb; background: #f0f5ff; }
.dk-view-btn.dk-view-active { background: #2563eb; color: white; }

.dk-sort { padding: 6px 30px 6px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.8125rem; color: #374151; background: white; cursor: pointer; outline: none; 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='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; }
.dk-sort:focus { border-color: #2563eb; }

/* ─── Data Table (DigiKey-style PLP) ─── */
.dk-table-wrap { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; overflow-x: auto; }
.dk-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }

.dk-table thead { background: #f8fafc; }
.dk-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    user-select: none;
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}
.dk-th-check { width: 36px; text-align: center; }
.dk-th-img { width: 48px; }
.dk-th-part { min-width: 160px; }
.dk-th-mfr { min-width: 120px; }
.dk-th-desc { min-width: 200px; }
.dk-th-stock { width: 80px; text-align: center; }
.dk-th-price { width: 110px; text-align: right; }
.dk-th-qty { width: 70px; text-align: center; }
.dk-th-action { width: 44px; }

.dk-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s;
}
.dk-table tbody tr:hover { background: #f0f5ff; }
.dk-table tbody tr.dk-tr-selected { background: #eff6ff; }

.dk-table td { padding: 10px 12px; vertical-align: middle; }
.dk-td-check { text-align: center; }
.dk-td-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: #2563eb; cursor: pointer; }

.dk-td-img { width: 48px; }
.dk-td-img img { width: 44px; height: 44px; object-fit: contain; border-radius: 4px; background: #f8fafc; padding: 2px; border: 1px solid #f1f5f9; }
.dk-td-img.dk-img-err img { display: none; }
.dk-td-img-ph { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 4px; }

.dk-td-part { vertical-align: top; }
.dk-part-link { font-weight: 600; color: #2563eb; text-decoration: none; line-height: 1.35; display: block; margin-bottom: 2px; }
.dk-part-link:hover { text-decoration: underline; }
.dk-mpn { font-size: 0.6875rem; color: #94a3b8; font-family: 'SF Mono', SFMono-Regular, Consolas, monospace; }

.dk-td-mfr { color: #475569; font-size: 0.75rem; }
.dk-td-desc { color: #64748b; font-size: 0.75rem; line-height: 1.45; max-width: 280px; }

.dk-td-stock { text-align: center; }
.dk-stock { display: inline-block; font-size: 0.6875rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.dk-stock--in { background: #d1fae5; color: #059669; }
.dk-stock--low { background: #fef3c7; color: #d97706; }
.dk-stock--out { background: #fee2e2; color: #dc2626; }

.dk-td-price { text-align: right; white-space: nowrap; }
.dk-price-main { display: block; font-weight: 700; font-size: 0.875rem; color: #0f172a; }
.dk-price-orig { display: block; font-size: 0.6875rem; color: #94a3b8; text-decoration: line-through; margin-top: 1px; }

.dk-td-qty { text-align: center; }
.dk-qty-input { width: 52px; padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 4px; text-align: center; font-size: 0.75rem; color: #1f2937; outline: none; transition: border-color 0.15s; }
.dk-qty-input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.12); }
.dk-na { color: #cbd5e1; font-size: 0.75rem; }

.dk-td-action { text-align: center; }
.dk-cart-form { display: contents; }
.dk-add-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px; border: none;
    background: #2563eb; color: white; cursor: pointer;
    transition: all 0.15s;
}
.dk-add-btn:hover { background: #1d4ed8; transform: scale(1.05); }
.dk-add-btn:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; transform: none; }

/* ─── Grid View (hidden by default) ─── */
.dk-hidden { display: none !important; }

.dk-product-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; margin-top: 0; }
.dk-pl-card { display: flex; background: white; transition: background 0.15s; }
.dk-pl-card:hover { background: #f0f5ff; }

.dk-pl-img { width: 140px; min-width: 140px; height: 120px; display: flex; align-items: center; justify-content: center; padding: 12px; background: #f8fafc; border-right: 1px solid #f1f5f9; }
.dk-pl-img img { max-width: 90%; max-height: 80px; object-fit: contain; }
.dk-pl-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.dk-pl-body { flex: 1; padding: 14px 18px; display: flex; align-items: stretch; gap: 16px; min-width: 0; }
.dk-pl-top { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.dk-pl-mfr { font-size: 11px; font-weight: 600; color: #2563eb; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 3px; }
.dk-pl-name { font-size: 14px; font-weight: 600; color: #0f172a; margin-bottom: 4px; line-height: 1.35; }
.dk-pl-name a { color: inherit; text-decoration: none; }
.dk-pl-name a:hover { color: #2563eb; text-decoration: underline; }
.dk-pl-mpn { font-size: 11px; color: #94a3b8; font-family: 'SF Mono', SFMono-Regular, Consolas, monospace; margin-top: 2px; }

.dk-pl-bottom { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.dk-pl-pricing { text-align: right; min-width: 100px; }
.dk-pl-price { font-size: 16px; font-weight: 800; color: #0f172a; letter-spacing: -0.3px; }
.dk-pl-compare { font-size: 11px; color: #94a3b8; text-decoration: line-through; margin-top: 1px; }

.dk-pl-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 80px; }
.dk-pl-stock { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; white-space: nowrap; }
.dk-pl-stock--in { background: #d1fae5; color: #059669; }
.dk-pl-stock--low { background: #fef3c7; color: #d97706; }
.dk-pl-stock--out { background: #fee2e2; color: #dc2626; }

.dk-pl-actions { display: flex; align-items: center; gap: 6px; }
.dk-pl-cart-form { display: contents; }
.dk-pl-cart-btn { white-space: nowrap; font-size: 12px; padding: 7px 14px; }
.dk-pl-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Pagination ─── */
.dk-pages { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.dk-page-link { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; font-size: 0.8125rem; color: #374151; text-decoration: none; border: 1px solid #d1d5db; border-radius: 4px; transition: all 0.15s; background: white; }
.dk-page-link:hover { border-color: #2563eb; color: #2563eb; }
.dk-page-active { background: #2563eb; color: white; border-color: #2563eb; }
.dk-page-active:hover { background: #1d4ed8; color: white; border-color: #1d4ed8; }
.dk-page-disabled { color: #d1d5db; cursor: default; border-color: #e5e7eb; }

/* ─── Empty State ─── */
.dk-empty { text-align: center; padding: 60px 20px; }
.dk-empty-icon { margin-bottom: 12px; color: #9ca3af; }
.dk-empty-title { font-size: 1.125rem; font-weight: 600; color: #1f2937; margin-bottom: 6px; }
.dk-empty-text { font-size: 0.875rem; color: #6b7280; margin-bottom: 16px; }

/* ─── Responsive: Table → stacked on mobile ─── */
@media(max-width:768px){
    .dk-table thead { display: none; }
    .dk-table tbody tr { display: flex; flex-direction: column; padding: 12px; border-bottom: 1px solid #e2e8f0; gap: 6px; }
    .dk-table td { padding: 2px 0; border: none; display: flex; align-items: center; gap: 8px; }
    .dk-td-check { order: -1; }
    .dk-td-img { order: 0; }
    .dk-td-part { order: 1; }
    .dk-td-mfr::before { content: 'Mfr: '; font-weight: 600; color: #94a3b8; font-size: 0.6875rem; }
    .dk-td-desc { order: 3; max-width: none; }
    .dk-td-desc::before { content: ''; }
    .dk-td-stock::before { content: 'Stock: '; font-weight: 600; color: #94a3b8; font-size: 0.6875rem; }
    .dk-td-price::before { content: 'Price: '; font-weight: 600; color: #94a3b8; font-size: 0.6875rem; }
    .dk-td-qty { order: 5; }
    .dk-td-action { order: 6; }
    .dk-th-qty, .dk-th-action, .dk-th-stock { display: none; }
    .dk-pl-card { flex-direction: column; }
    .dk-pl-img { width: 100%; min-width: 100%; height: 140px; border-right: none; border-bottom: 1px solid #f1f5f9; }
    .dk-pl-body { flex-direction: column; gap: 12px; }
    .dk-pl-bottom { justify-content: space-between; }
}

/* ============================================
   CATEGORY PAGE (DigiKey-Style)
   ============================================ */
.dk-cat-header{margin-bottom:4px}
.dk-cat-title{font-size:22px;font-weight:700;color:var(--text);margin:0 0 6px;line-height:1.3}
.dk-cat-desc{font-size:13px;color:var(--text-secondary);line-height:1.6;margin:0;max-width:800px}

/* Subcategory cards strip */
.dk-cat-subs{margin:20px 0 24px}
.dk-cat-subs-title{font-size:14px;font-weight:700;color:var(--text);margin:0 0 12px}
.dk-cat-subs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.dk-cat-sub-card{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);text-decoration:none;transition:all .15s}
.dk-cat-sub-card:hover{border-color:var(--secondary);box-shadow:var(--shadow-sm);transform:translateY(-1px)}
.dk-cat-sub-icon{width:36px;height:36px;border-radius:8px;background:var(--blue-light);display:flex;align-items:center;justify-content:center;color:var(--secondary);flex-shrink:0;transition:background .15s}
.dk-cat-sub-card:hover .dk-cat-sub-icon{background:var(--secondary);color:#fff}
.dk-cat-sub-info{display:flex;flex-direction:column;min-width:0}
.dk-cat-sub-name{font-size:12px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.dk-cat-sub-count{font-size:10px;color:var(--text-muted);margin-top:2px}

/* Sidebar category tree */
.dk-cat-tree{max-height:320px;overflow-y:auto}
.dk-cat-tree .dk-filter-link{font-size:12px;padding:6px 12px}

/* Search within */
.dk-search-within{display:flex;flex-direction:column;gap:8px}
.dk-search-within .dk-input{width:100%;padding:8px 10px;font-size:12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-card);color:var(--text)}

/* Search tag */
.dk-search-tag{display:inline-flex;align-items:center;gap:6px;font-size:12px;background:var(--blue-light);color:var(--secondary);padding:4px 10px;border-radius:var(--radius-sm);margin-left:10px;font-weight:500}
.dk-search-tag a{color:var(--text-muted);text-decoration:none;font-weight:700;font-size:14px}
.dk-search-tag a:hover{color:var(--error)}

/* About section */
.dk-cat-about{margin-top:32px;padding-top:24px;border-top:1px solid var(--border)}
.dk-cat-about h3{font-size:16px;font-weight:700;color:var(--text);margin:0 0 10px}
.dk-cat-about p{font-size:13px;color:var(--text-secondary);line-height:1.7;margin:0}

@media(max-width:768px){
    .dk-cat-subs-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
    .dk-cat-title{font-size:18px}
}

/* ============================================
   CATEGORIES INDEX (DigiKey Product Index)
   ============================================ */
.dk-cat-idx-header{margin-bottom:20px}
.dk-cat-idx-title{font-size:22px;font-weight:700;color:var(--text);margin:0 0 4px}
.dk-cat-idx-sub{font-size:13px;color:var(--text-secondary);margin:0}

.dk-cat-idx-groups{display:flex;flex-direction:column;gap:0}

.dk-cat-idx-group{border-bottom:1px solid var(--border)}
.dk-cat-idx-group:last-child{border-bottom:none}

.dk-cat-idx-group-hdr{width:100%;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:var(--bg-card);border:none;cursor:pointer;text-align:left;transition:background .15s;font-family:inherit}
.dk-cat-idx-group-hdr:hover{background:var(--blue-light)}

.dk-cat-idx-group-left{display:flex;align-items:center;gap:10px;min-width:0}
.dk-cat-idx-arrow{flex-shrink:0;color:var(--text-muted);transition:transform .2s}
.dk-cat-idx-open .dk-cat-idx-arrow{transform:rotate(180deg)}
.dk-cat-idx-group-name{font-size:14px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.dk-cat-idx-group-count{font-size:12px;font-weight:500;color:var(--text-muted);white-space:nowrap;flex-shrink:0}

.dk-cat-idx-group-body{display:none;padding:0 16px 12px 42px}
.dk-cat-idx-open .dk-cat-idx-group-body{display:block}

.dk-cat-idx-item{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;border-radius:var(--radius-sm);text-decoration:none;transition:background .15s;gap:12px}
.dk-cat-idx-item:hover{background:var(--blue-light)}
.dk-cat-idx-item-name{font-size:13px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dk-cat-idx-item:hover .dk-cat-idx-item-name{color:var(--secondary)}
.dk-cat-idx-item-count{font-size:11px;color:var(--text-muted);white-space:nowrap;flex-shrink:0}

/* Sidebar category tree for index page */
.dk-cat-sidebar-tree{max-height:400px;overflow-y:auto}

@media(max-width:768px){
    .dk-cat-idx-title{font-size:18px}
    .dk-cat-idx-group-hdr{padding:12px 12px}
    .dk-cat-idx-group-body{padding-left:28px}
}

/* ============================================
   DIGIKEY-STYLE CHECKOUT
   ============================================ */
.cko-layout { max-width: 1100px; margin: 0 auto; padding: 32px 16px; }
.cko-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.cko-header h1 { font-size: 1.5rem; font-weight: 700; color: #1f2937; margin: 0; }
.cko-badge { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: #059669; font-weight: 600; }
.cko-badge svg { width: 16px; height: 16px; }

.cko-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .cko-grid { grid-template-columns: 1fr; } }

.cko-section { background: white; border: 1px solid #e5e7eb; border-radius: 8px; padding: 24px; margin-bottom: 20px; }
.cko-section-title { font-size: 1rem; font-weight: 700; color: #1f2937; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; margin-bottom: 16px; width: 100%; display: block; }

.cko-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .cko-row { grid-template-columns: 1fr; } }

.cko-field { margin-bottom: 12px; }
.cko-field label { display: block; font-size: 0.8125rem; font-weight: 600; color: #374151; margin-bottom: 5px; }
.cko-field input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; color: #1f2937; background: white; outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.cko-field input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.cko-same { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: #374151; cursor: pointer; margin-top: 4px; }
.cko-same input[type="checkbox"] { width: 16px; height: 16px; accent-color: #2563eb; }

.cko-pay { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; font-size: 0.9375rem; font-weight: 500; color: #1f2937; cursor: pointer; }
.cko-pay:last-child { border-bottom: none; }
.cko-pay input[type="radio"] { width: 18px; height: 18px; accent-color: #2563eb; }

.cko-summary { background: white; border: 1px solid #e5e7eb; border-radius: 8px; padding: 24px; position: sticky; top: 90px; }
.cko-summary h3 { font-size: 1rem; font-weight: 700; color: #1f2937; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; }

.cko-items { max-height: 300px; overflow-y: auto; margin-bottom: 8px; }
.cko-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 12px; }
.cko-item-name { font-size: 0.8125rem; font-weight: 600; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cko-item-qty { font-size: 0.75rem; color: #6b7280; }
.cko-item-price { font-size: 0.875rem; font-weight: 600; color: #1f2937; white-space: nowrap; }

.cko-total { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.875rem; color: #374151; }
.cko-grand { border-top: 2px solid #e5e7eb; margin-top: 4px; padding-top: 12px; font-size: 1.0625rem; font-weight: 700; color: #1f2937; }

.cko-btn { width: 100%; padding: 14px; background: #2563eb; color: white; border: none; border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.15s; margin-top: 12px; }
.cko-btn:hover { background: #1d4ed8; }

.cko-muted { font-size: 0.875rem; color: #6b7280; margin: 0; }

/* ============================================
   ERROR PAGES
   ============================================ */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 48px 24px; }
.error-content { text-align: center; max-width: 480px; }
.error-icon { margin-bottom: 16px; color: var(--secondary); }
.error-code { font-size: 4rem; font-weight: 800; color: var(--secondary); line-height: 1; margin-bottom: 8px; font-family: var(--font-heading); }
.error-code.code-500 { color: var(--error); }
.error-content h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.error-content p { font-size: 0.9375rem; color: var(--text-secondary); margin: 0 0 24px; line-height: 1.6; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.error-suggestions { padding-top: 24px; border-top: 1px solid var(--border); }
.error-suggestions h4 { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.error-suggestions-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.error-suggestions-links a { font-size: 0.8125rem; color: var(--secondary); text-decoration: none; font-weight: 500; }
.error-suggestions-links a:hover { text-decoration: underline; }

/* ============================================
   LISTS & QUOTES PAGE
   ============================================ */
.ql-layout { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.ql-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ql-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0; }
.ql-tour { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--secondary); text-decoration: none; font-weight: 500; }
.ql-tour:hover { text-decoration: underline; }

.ql-login-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 16px; font-size: 0.8125rem; color: var(--text-secondary); flex-wrap: wrap; gap: 8px; }
.ql-login-bar a { color: var(--secondary); text-decoration: none; font-weight: 600; }
.ql-login-bar a:hover { text-decoration: underline; }
.ql-sep { color: var(--text-muted); margin: 0 8px; }

.ql-total { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.ql-sep-inline { color: var(--secondary); margin: 0 8px; }

.ql-toolbar { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.ql-toolbar-spacer { flex: 1; }

.ql-table-wrap { overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.ql-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; min-width: 900px; }
.ql-table th { text-align: left; padding: 10px 12px; background: var(--bg-secondary); border-bottom: 2px solid var(--border); font-weight: 600; color: var(--text); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.ql-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.ql-table tbody tr:hover { background: var(--bg-secondary); }
.ql-part { font-weight: 600; color: var(--secondary) !important; font-family: var(--font-mono); }
.ql-remove { background: none; border: none; color: var(--error); font-size: 1.25rem; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); }
.ql-remove:hover { background: var(--error-light); }

.ql-empty { text-align: center; padding: 60px 24px; }
.ql-empty svg { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 16px; }
.ql-empty h3 { font-size: 1.125rem; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.ql-empty p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }

.ql-add-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 24px; overflow: hidden; }
.ql-add-tabs { display: flex; border-bottom: 1px solid var(--border); }
.ql-add-tab { padding: 12px 20px; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition); }
.ql-add-tab:hover { color: var(--text); background: var(--bg-secondary); }
.ql-add-tab.active { color: var(--secondary); border-bottom-color: var(--secondary); }

.ql-add-panel { display: none; padding: 20px; }
.ql-add-panel.active { display: block; }

.ql-add-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ql-add-form .form-group { flex: 1; min-width: 120px; }
.ql-add-form .form-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.ql-add-form .form-group input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; color: var(--text); background: var(--bg); outline: none; box-sizing: border-box; }
.ql-add-form .form-group input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.ql-add-form-bulk { flex-direction: column; align-items: stretch; }
.ql-add-form-bulk textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.8125rem; resize: vertical; font-family: monospace; color: var(--text); background: var(--bg); box-sizing: border-box; }
.ql-add-form-bulk textarea:focus { border-color: var(--secondary); outline: none; }

.ql-upload-zone { text-align: center; padding: 40px 20px; }
.ql-upload-zone p { font-size: 0.875rem; color: var(--text-secondary); margin: 16px 0; }
.ql-upload-zone input { font-size: 0.8125rem; }
.ql-upload-zone small { display: block; font-size: 0.6875rem; color: var(--text-muted); margin-top: 8px; }

.ql-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Request Quote Landing --- */
.page-banner { background: linear-gradient(135deg, var(--primary, #003D7A) 0%, #002244 100%); padding: 48px 0 40px; color: white; }
.page-banner h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 8px; }
.page-banner p { font-size: 0.9375rem; color: rgba(255,255,255,0.8); max-width: 720px; margin: 0; line-height: 1.6; }
.page-banner-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.page-banner .btn-secondary { padding: 12px 32px; font-weight: 600; border: none; }
.page-banner .btn-outline-white { padding: 12px 32px; font-weight: 600; background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); text-decoration: none; }
.breadcrumb-trail { display: flex; gap: 6px; font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb-trail a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb-trail a:hover { color: white; }
.breadcrumb-trail span { color: white; font-weight: 500; }

.container-narrow { max-width: 960px; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; margin-bottom: 32px; }
.comparison-table th { text-align: left; padding: 12px 16px; background: var(--bg-secondary); border-bottom: 2px solid var(--border); font-weight: 600; color: var(--text); }
.comparison-table th:not(:first-child) { text-align: center; width: 120px; }
.comparison-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.comparison-table td:not(:first-child) { text-align: center; }
.comparison-table .row-alt { background: var(--bg-secondary); }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }

.cta-card { text-align: center; margin-top: 48px; padding: 32px; background: var(--bg-secondary); border-radius: var(--radius-lg); }
.cta-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.cta-card p { font-size: 0.875rem; color: var(--text-secondary); margin: 0 0 24px; }
.cta-card-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-sep { color: var(--text-muted); font-size: 0.875rem; }

.faq-section { margin-top: 48px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }

/* ============================================
   SELLER KYC PAGE
   ============================================ */
.kyc-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px; }
.kyc-step { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); background: var(--bg-secondary); }
.kyc-step.active { color: var(--secondary); background: var(--secondary-light); }
.kyc-step.completed { color: var(--success); background: var(--success-light); }
.kyc-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-tertiary); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.kyc-step.active .kyc-step-num { background: var(--secondary); color: white; }
.kyc-step.completed .kyc-step-num { background: var(--success); color: white; }
.kyc-step-line { width: 40px; height: 2px; background: var(--border); }
.kyc-step-line.active { background: var(--secondary); }

.kyc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.kyc-card h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.kyc-card > p { font-size: 0.9375rem; color: var(--text-secondary); margin: 0 0 24px; line-height: 1.6; }
.kyc-requirements { margin-bottom: 24px; }
.kyc-requirements h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 12px; }
.kyc-requirements ul { margin: 0; padding-left: 20px; }
.kyc-requirements li { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.8; }

.kyc-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.kyc-form .form-group label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.kyc-form .form-group input,
.kyc-form .form-group select,
.kyc-form .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.875rem; color: var(--text); background: var(--bg); outline: none; box-sizing: border-box; }
.kyc-form .form-group input:focus,
.kyc-form .form-group select:focus,
.kyc-form .form-group textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

.kyc-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 600px) { .kyc-upload-grid { grid-template-columns: 1fr; } }
.kyc-upload-item { text-align: center; padding: 32px 20px; border: 2px dashed var(--border); border-radius: var(--radius-lg); }
.kyc-upload-icon { color: var(--text-muted); margin-bottom: 12px; }
.kyc-upload-item label { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.kyc-upload-item input { display: block; margin: 0 auto; }
.kyc-upload-item small { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }

.kyc-success { text-align: center; padding: 48px 24px; }
.kyc-success-icon { margin-bottom: 16px; }
.kyc-success h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.kyc-success p { font-size: 0.9375rem; color: var(--text-secondary); margin: 0 0 24px; line-height: 1.6; }
.kyc-success-actions { display: flex; gap: 12px; justify-content: center; }

.kyc-card-success { text-align: center; padding: 48px 24px; }

/* --- Page Banner Enterprise Enhancements --- */
[data-theme="dark"] .page-banner { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); }
[data-theme="dark"] .ql-table { border-color: var(--border); }
[data-theme="dark"] .ql-table th { background: var(--bg-secondary); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .ql-table td { border-color: var(--border); color: var(--text-secondary); }
[data-theme="dark"] .ql-table tbody tr:hover { background: var(--bg-secondary); }
[data-theme="dark"] .ql-add-section { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .ql-add-tabs { border-color: var(--border); }
[data-theme="dark"] .ql-add-form .form-group input { background: var(--bg); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .ql-add-form-bulk textarea { background: var(--bg); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .ql-login-bar { background: var(--bg-secondary); border-color: var(--border); }
[data-theme="dark"] .comparison-table th { background: var(--bg-secondary); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .comparison-table td { border-color: var(--border); }
[data-theme="dark"] .cta-card { background: var(--bg-secondary); }
[data-theme="dark"] .kyc-card { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .kyc-step { background: var(--bg-secondary); color: var(--text-muted); }
[data-theme="dark"] .kyc-step.active { background: var(--secondary-light); color: var(--secondary); }
[data-theme="dark"] .kyc-step-line { background: var(--border); }
[data-theme="dark"] .kyc-step-line.active { background: var(--secondary); }
[data-theme="dark"] .kyc-form .form-group input,
[data-theme="dark"] .kyc-form .form-group select,
[data-theme="dark"] .kyc-form .form-group textarea { background: var(--bg); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .kyc-upload-item { border-color: var(--border); }

/* ═══════════════════════════════════════════════════════════
   NZTECH DigiKey-Inspired Homepage
   ═══════════════════════════════════════════════════════════ */

/* ─── Hero — Fullscreen Background Slider ─── */
.dk-hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 560px;
    max-height: 800px;
    overflow: hidden;
    background: #0B1221;
}

.dk-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: scale(1.05);
    will-change: opacity, transform;
}
.dk-hero-slide.dk-hero-active {
    opacity: 1;
    transform: scale(1);
    animation: dkHeroZoom 8s ease-out forwards;
}
@keyframes dkHeroZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

.dk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,18,36,0.85) 0%, rgba(15,23,42,0.7) 40%, rgba(10,18,36,0.5) 100%);
}
.dk-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,18,36,0.95) 0%, rgba(10,18,36,0.3) 40%, transparent 70%);
}

.dk-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}
.dk-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
}
.dk-hero-text { flex: 1; max-width: 640px; }

.dk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.dk-hero-slider h1 {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.dk-hero-slider h1 span {
    background: linear-gradient(135deg, #60A5FA, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dk-hero-slider p {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 32px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.dk-hero-search { max-width: 600px; }
.dk-search-form {
    display: flex;
    gap: 0;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
    backdrop-filter: blur(12px);
}
.dk-search-form:focus-within {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.14);
}
.dk-search-input-wrap { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.dk-search-icon { color: rgba(255,255,255,0.4); flex-shrink: 0; }
.dk-search-input-wrap input {
    flex: 1; background: none; border: none; outline: none;
    padding: 14px 0; font-size: 15px; color: #fff; font-family: inherit;
}
.dk-search-input-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.dk-search-btn { border-radius: 0 10px 10px 0; padding: 14px 28px; font-size: 14px; white-space: nowrap; }

.dk-hero-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
    font-size: 13px; color: rgba(255,255,255,0.4);
}
.dk-hero-tags a {
    color: rgba(255,255,255,0.6); text-decoration: none; padding: 4px 10px;
    border-radius: 6px; background: rgba(255,255,255,0.06); transition: all 0.2s; font-weight: 500;
}
.dk-hero-tags a:hover { background: rgba(255,255,255,0.15); color: #fff; }

.dk-hero-stats { display: flex; gap: 40px; flex-shrink: 0; }
.dk-hero-stat { text-align: center; }
.dk-hero-stat-val {
    font-size: 32px; font-weight: 900; color: #fff;
    letter-spacing: -0.5px; line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.dk-hero-stat-lbl {
    font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 4px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

/* Slide indicators */
.dk-hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.dk-hero-dot {
    width: 32px;
    height: 4px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.4s;
    padding: 0;
}
.dk-hero-dot.dk-hero-active {
    width: 48px;
    background: #fff;
}

/* ─── Category Bar ─── */
.dk-cat-bar{background:var(--bg-card);border-bottom:1px solid var(--border);position:sticky;top:116px;z-index:40}
.dk-cat-bar-inner{display:flex;align-items:stretch;height:48px}
.dk-cat-sidebar{position:relative}
.dk-cat-toggle{display:flex;align-items:center;gap:8px;padding:0 20px;height:100%;background:var(--secondary);color:#fff;border:none;cursor:pointer;font-size:13px;font-weight:600;font-family:inherit;white-space:nowrap;transition:background .2s}
.dk-cat-toggle:hover{background:var(--secondary-hover)}
.dk-cat-dropdown{display:none;position:absolute;top:100%;left:0;width:300px;background:var(--bg-card);border:1px solid var(--border);border-radius:0 0 8px 8px;box-shadow:0 12px 32px -8px rgba(0,0,0,.12);max-height:420px;overflow-y:auto;z-index:100}
.dk-cat-dropdown.open{display:block}
.dk-cat-item{display:flex;align-items:center;gap:10px;padding:10px 16px;font-size:13px;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border-light);transition:background .15s}
.dk-cat-item:hover{background:var(--bg-secondary);color:var(--secondary)}
.dk-cat-dot{width:6px;height:6px;border-radius:50%;background:var(--secondary);opacity:.4;flex-shrink:0}
.dk-cat-all{font-weight:600;color:var(--secondary);background:var(--blue-light)}
.dk-cat-links{display:flex;align-items:stretch;gap:0;padding-left:4px}
.dk-cat-links a{display:flex;align-items:center;padding:0 18px;font-size:13px;font-weight:500;color:var(--text-secondary);text-decoration:none;border-right:1px solid var(--border);transition:all .15s}
.dk-cat-links a:first-child{border-left:1px solid var(--border)}
.dk-cat-links a:hover{background:var(--bg-secondary);color:var(--secondary)}

/* ─── Promo Banner ─── */
.dk-promo{padding:32px 0 0}
.dk-promo-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}
.dk-promo-card{border-radius:var(--radius-lg);overflow:hidden}
.dk-promo-main{background:linear-gradient(135deg,#0B1221 0%,#162744 100%);padding:48px 40px;position:relative}
.dk-promo-main::after{content:'';position:absolute;top:-40px;right:-40px;width:250px;height:250px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.2) 0%,transparent 60%);pointer-events:none}
.dk-promo-inner{position:relative;z-index:1}
.dk-promo-tag{display:inline-block;padding:4px 12px;background:rgba(255,255,255,.1);border-radius:100px;font-size:11px;font-weight:700;color:rgba(255,255,255,.7);text-transform:uppercase;letter-spacing:.5px;margin-bottom:14px}
.dk-promo-main h3{font-size:20px;font-weight:700;color:#fff;line-height:1.4;margin-bottom:20px;max-width:440px}
.dk-promo-side{background:var(--bg-card);border:1px solid var(--border);padding:28px 24px}
.dk-promo-side-inner{display:flex;gap:16px;align-items:flex-start}
.dk-promo-side-icon{width:52px;height:52px;min-width:52px;border-radius:12px;background:var(--secondary);display:flex;align-items:center;justify-content:center}
.dk-promo-side h4{font-size:15px;font-weight:700;color:var(--text);margin-bottom:4px}
.dk-promo-side p{font-size:13px;color:var(--text-secondary);line-height:1.5}

/* ─── Section ─── */
.dk-section{padding:48px 0}
.dk-section-alt{background:var(--bg-secondary)}
.dk-section-hdr{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.dk-section-hdr h2{font-size:20px;font-weight:800;color:var(--text);letter-spacing:-.3px}
.dk-section-hdr h2 span{font-size:13px;font-weight:500;color:var(--secondary);margin-left:8px}
.dk-view-all{font-size:13px;font-weight:600;color:var(--secondary);text-decoration:none;white-space:nowrap}
.dk-view-all:hover{text-decoration:underline}

/* ─── Product Cards (DigiKey style) ─── */
.dk-featured-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.dk-product-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:all .2s;display:flex;flex-direction:column}
.dk-product-card:hover{border-color:var(--secondary);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.dk-pc-img{padding:20px;display:flex;align-items:center;justify-content:center;height:160px;background:var(--bg-secondary);position:relative}
.dk-pc-img img{max-width:80%;max-height:120px;object-fit:contain;transition:transform .25s}
.dk-product-card:hover .dk-pc-img img{transform:scale(1.06)}
.dk-pc-badge{position:absolute;top:10px;left:10px;padding:3px 10px;background:var(--secondary);color:#fff;border-radius:100px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.3px}
.dk-pc-body{padding:16px;flex:1;display:flex;flex-direction:column}
.dk-pc-mfr{font-size:11px;font-weight:600;color:var(--secondary);text-transform:uppercase;letter-spacing:.3px;margin-bottom:6px}
.dk-pc-name{font-size:14px;font-weight:600;color:var(--text);line-height:1.35;margin-bottom:6px}
.dk-pc-name a{color:inherit;text-decoration:none}
.dk-pc-name a:hover{color:var(--secondary)}
.dk-pc-mpn{font-size:11px;color:var(--text-muted);font-family:'SF Mono',SFMono-Regular,Consolas,monospace;margin-bottom:6px}
.dk-pc-desc{font-size:12px;color:var(--text-secondary);line-height:1.5;margin-bottom:auto}
.dk-pc-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding-top:12px;border-top:1px solid var(--border-light)}
.dk-pc-price{font-size:16px;font-weight:800;color:var(--text);letter-spacing:-.3px}
.dk-pc-stock{font-size:11px;font-weight:600;color:var(--success);background:var(--success-light);padding:3px 10px;border-radius:100px}

/* ─── Category Cards ─── */
.dk-cat-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:12px}
.dk-cat-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 12px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);text-decoration:none;transition:all .2s}
.dk-cat-card:hover{border-color:var(--secondary);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.dk-cat-card-icon{width:48px;height:48px;border-radius:12px;background:var(--blue-light);display:flex;align-items:center;justify-content:center;margin-bottom:10px;color:var(--secondary);transition:all .2s}
.dk-cat-card:hover .dk-cat-card-icon{background:var(--secondary);color:#fff}
.dk-cat-card-img{width:76px;height:76px;border-radius:12px;background:var(--bg-secondary);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;margin-bottom:10px;overflow:hidden;position:relative;transition:all .2s}
.dk-cat-card-img img{width:100%;height:100%;object-fit:cover;position:relative;z-index:1;transition:transform .25s}
.dk-cat-card:hover .dk-cat-card-img img{transform:scale(1.07)}
.dk-cat-card-img .dk-cat-card-icon{margin-bottom:0;position:absolute;inset:0;margin:auto}
.dk-cat-card-img-fallback .dk-cat-card-icon{background:var(--blue-light);color:var(--secondary)}
.dk-cat-card-name{font-size:12px;font-weight:600;color:var(--text);line-height:1.3}
.dk-cat-card-count{font-size:10px;color:var(--text-muted);margin-top:3px}

/* ─── Manufacturer Strip ─── */
.dk-mfr-strip{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}
.dk-mfr-item{display:flex;align-items:center;justify-content:center;padding:16px 12px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);height:64px;overflow:hidden;transition:all .2s}
.dk-mfr-item:hover{border-color:var(--secondary);box-shadow:var(--shadow-sm)}
.dk-mfr-item img{max-width:100%;max-height:32px;object-fit:contain;filter:grayscale(.3);opacity:.7;transition:all .2s}
.dk-mfr-item img + .dk-mfr-text{display:none}
.dk-mfr-item:hover img{filter:grayscale(0);opacity:1}
.dk-mfr-text{font-size:14px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}

/* ─── Trust / Authorized Distributor ─── */
.dk-trust-grid{display:grid;grid-template-columns:1fr 1.6fr;gap:48px;align-items:start;margin-bottom:40px}
.dk-trust-header{text-align:left}
.dk-trust-globe{margin-bottom:16px}
.dk-trust-header h3{font-size:22px;font-weight:800;color:var(--text);margin-bottom:8px;letter-spacing:-.4px}
.dk-trust-header p{font-size:14px;color:var(--text-secondary);line-height:1.5}
.dk-trust-features{display:flex;flex-direction:column;gap:20px}
.dk-trust-feat{display:flex;gap:16px;align-items:flex-start;padding:20px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);transition:box-shadow .2s}
.dk-trust-feat:hover{box-shadow:var(--shadow-md)}
.dk-trust-feat-icon{width:48px;height:48px;min-width:48px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.dk-trust-feat-icon--blue{background:var(--blue-light);color:var(--secondary)}
.dk-trust-feat-icon--green{background:var(--success-light);color:var(--success)}
.dk-trust-feat h4{font-size:14px;font-weight:700;color:var(--text);margin-bottom:4px}
.dk-trust-feat p{font-size:13px;color:var(--text-secondary);line-height:1.5}
.dk-about-text{font-size:14px;color:var(--text-secondary);line-height:1.7;max-width:900px}
.dk-about-text p{margin-bottom:12px}
.dk-about-text p:last-child{margin-bottom:0}

/* ─── Newsletter ─── */
.dk-newsletter{padding:48px 0;background:linear-gradient(135deg,#0B1221 0%,#162744 100%);position:relative;overflow:hidden}
.dk-newsletter::after{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);background-size:48px 48px;pointer-events:none}
.dk-newsletter-inner{display:flex;align-items:center;justify-content:space-between;gap:32px;position:relative;z-index:1}
.dk-newsletter-text h2{font-size:22px;font-weight:800;color:#fff;letter-spacing:-.4px}
.dk-newsletter-form{display:flex;gap:8px;flex-shrink:0}
.dk-newsletter-form input{padding:12px 18px;border:1.5px solid rgba(255,255,255,.15);border-radius:var(--radius);background:rgba(255,255,255,.08);color:#fff;font-size:14px;font-family:inherit;width:280px;outline:none;transition:border-color .2s}
.dk-newsletter-form input::placeholder{color:rgba(255,255,255,.35)}
.dk-newsletter-form input:focus{border-color:rgba(255,255,255,.35)}

/* ─── Homepage Responsive ─── */
@media(max-width:1200px){
    .dk-featured-grid{grid-template-columns:repeat(3,1fr)}
    .dk-cat-grid{grid-template-columns:repeat(5,1fr)}
    .dk-mfr-strip{grid-template-columns:repeat(6,1fr)}
}
@media(max-width:1024px){
    .dk-hero-inner{flex-direction:column;text-align:center;gap:32px}
    .dk-hero-text{max-width:100%}
    .dk-hero-stats{justify-content:center}
    .dk-hero-slider h1{font-size:38px}
    .dk-hero-search{max-width:100%}
    .dk-hero-tags{justify-content:center}
    .dk-promo-grid{grid-template-columns:1fr}
    .dk-cat-links{display:none}
    .dk-trust-grid{grid-template-columns:1fr;gap:32px}
    .dk-trust-header{text-align:center}
}
@media(max-width:768px){
    .dk-featured-grid{grid-template-columns:repeat(2,1fr)}
    .dk-cat-grid{grid-template-columns:repeat(4,1fr)}
    .dk-mfr-strip{grid-template-columns:repeat(4,1fr)}
    .dk-hero-slider h1{font-size:30px}
    .dk-hero-slider p{font-size:15px}
    .dk-hero-stats{gap:24px}
    .dk-hero-stat-val{font-size:24px}
    .dk-hero-slider{height:70vh;min-height:480px}
    .dk-newsletter-inner{flex-direction:column;text-align:center}
    .dk-newsletter-form{width:100%;max-width:400px}
    .dk-newsletter-form input{width:100%;flex:1}
    .dk-promo-main{padding:32px 24px}
}
@media(max-width:480px){
    .dk-featured-grid{grid-template-columns:1fr}
    .dk-cat-grid{grid-template-columns:repeat(3,1fr)}
    .dk-mfr-strip{grid-template-columns:repeat(3,1fr)}
    .dk-hero-slider{height:60vh;min-height:420px}
    .dk-hero-slider h1{font-size:26px;letter-spacing:-1px}
    .dk-search-btn{padding:12px 20px;font-size:13px}
}

[data-theme="dark"] .dk-product-card{background:var(--bg-card);border-color:var(--border)}
[data-theme="dark"] .dk-product-card:hover{border-color:var(--secondary)}
[data-theme="dark"] .dk-cat-card{background:var(--bg-card);border-color:var(--border)}
[data-theme="dark"] .dk-cat-card:hover{border-color:var(--secondary)}
[data-theme="dark"] .dk-mfr-item{background:var(--bg-card);border-color:var(--border)}
[data-theme="dark"] .dk-trust-feat{background:var(--bg-card);border-color:var(--border)}
[data-theme="dark"] .dk-promo-side{background:var(--bg-card);border-color:var(--border)}
[data-theme="dark"] .dk-promo-main{background:linear-gradient(135deg,var(--bg-secondary) 0%,var(--bg-tertiary) 100%)}
[data-theme="dark"] .dk-cat-bar{background:var(--bg-card);border-color:var(--border)}

/* ═══ Homepage "Mesmerism" Enhancements ═══ */

/* Hero decorative orbs + grid + floating chips */
.dk-hero-decor{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.dk-orb{position:absolute;border-radius:50%;filter:blur(60px);opacity:.5;animation:dkOrbFloat 9s ease-in-out infinite}
.dk-orb-1{width:380px;height:380px;top:-120px;right:-80px;background:radial-gradient(circle,#2563EB 0%,transparent 65%)}
.dk-orb-2{width:300px;height:300px;bottom:-140px;left:-60px;background:radial-gradient(circle,#06B6D4 0%,transparent 65%);animation-delay:1.5s}
.dk-orb-3{width:220px;height:220px;top:38%;left:44%;background:radial-gradient(circle,#34D399 0%,transparent 65%);opacity:.32;animation-delay:3s}
.dk-hero-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse at center,black 30%,transparent 75%);mask-image:radial-gradient(ellipse at center,black 30%,transparent 75%)}
@keyframes dkOrbFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-24px)}}

.dk-float-chip{position:absolute;display:flex;align-items:center;gap:8px;padding:10px 16px;background:rgba(15,23,42,.55);border:1px solid rgba(255,255,255,.15);border-radius:100px;color:#fff;font-size:12px;font-weight:600;backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(0,0,0,.25);animation:dkFloatChip 6s ease-in-out infinite}
.dk-float-chip svg{color:#34D399}
.dk-float-chip-1{top:16%;right:6%;animation-delay:0s}
.dk-float-chip-2{bottom:16%;right:16%;animation-delay:2.5s}
.dk-float-chip-2 svg{color:#60A5FA}
@keyframes dkFloatChip{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}

/* Staggered hero entrance + gradient shimmer */
.dk-hero-anim{opacity:0;animation:dkFadeUp .7s cubic-bezier(.16,1,.3,1) forwards}
.dk-hero-badge.dk-hero-anim{animation-delay:.05s}
.dk-hero-text h1.dk-hero-anim{animation-delay:.15s}
.dk-hero-text p.dk-hero-anim{animation-delay:.28s}
.dk-hero-search.dk-hero-anim{animation-delay:.42s}
.dk-hero-stats.dk-hero-anim{animation-delay:.6s}
@keyframes dkFadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

.dk-hero-slider h1 span{
    background:linear-gradient(135deg,#60A5FA 0%,#34D399 50%,#60A5FA 100%);
    background-size:200% 200%;
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    animation:dkGradShift 6s ease-in-out infinite;
}
@keyframes dkGradShift{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}

.dk-search-btn{animation:dkBtnPulse 2.8s ease-in-out infinite}
@keyframes dkBtnPulse{0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,.45)}50%{box-shadow:0 0 0 14px rgba(37,99,235,0)}}

/* ═══ Sitewide Independence Day Banner (replaces promo banner while active) ═══ */
.id-banner{position:relative;z-index:90;background:linear-gradient(90deg,#013A1B 0%,#01502A 48%,#0A6A34 100%);color:#fff;font-size:.8125rem;overflow:hidden;animation:idSlideDown .6s cubic-bezier(.16,1,.3,1) .35s both}
.id-banner::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 10% 0%,rgba(255,255,255,.10),transparent 45%),radial-gradient(ellipse at 90% 110%,rgba(253,230,138,.09),transparent 42%);pointer-events:none}
.id-banner::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.8) 28%,#FDE68A 50%,rgba(255,255,255,.8) 72%,transparent);pointer-events:none}
.id-banner.is-hidden{display:none}
.id-inner{display:flex;align-items:center;justify-content:center;gap:10px 16px;max-width:var(--max-width);margin:0 auto;padding:8px 48px;text-align:center;flex-wrap:wrap}
.id-flag{display:inline-flex;flex-shrink:0;width:30px;height:20px;border-radius:3px;overflow:hidden;border:1px solid rgba(255,255,255,.65);box-shadow:0 2px 6px rgba(0,0,0,.35)}
.id-flag-svg{display:block;width:100%;height:100%}
.id-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:100px;background:rgba(253,230,138,.14);border:1px solid rgba(253,230,138,.5);color:#FDE68A;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;white-space:nowrap}
.id-badge svg{width:10px;height:10px;flex-shrink:0}
.id-msg{font-weight:700;white-space:nowrap}
.id-msg b{color:#FDE68A}
.id-count{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.id-cd-label{font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;color:rgba(255,255,255,.7)}
.id-cd{display:inline-flex;align-items:center;gap:3px;font-variant-numeric:tabular-nums}
.id-cd b{display:inline-block;min-width:26px;padding:2px 6px;border-radius:6px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);font-size:12px;font-weight:800;line-height:1.4;text-align:center;color:#fff}
.id-cd i{font-style:normal;font-size:9px;font-weight:700;color:rgba(255,255,255,.62);text-transform:uppercase;letter-spacing:.4px;margin:0 2px}
.id-cd .id-sep{color:rgba(255,255,255,.5);font-weight:800;font-size:12px}
.id-cta{display:inline-flex;align-items:center;gap:8px;flex-shrink:0}
.id-cta-sell{display:inline-flex;align-items:center;gap:6px;padding:5px 16px;border-radius:100px;background:#FDE68A;color:#013A1B;font-size:12px;font-weight:800;text-decoration:none;letter-spacing:.2px;transition:all .2s;box-shadow:0 4px 14px rgba(0,0,0,.28);white-space:nowrap}
.id-cta-sell:hover{background:#fff;transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.32)}
.id-cta-sell svg{width:13px;height:13px;flex-shrink:0}
.id-cta-acct{display:inline-flex;align-items:center;padding:5px 14px;border-radius:100px;border:1px solid rgba(255,255,255,.45);color:#fff;font-size:12px;font-weight:700;text-decoration:none;transition:all .2s;white-space:nowrap}
.id-cta-acct:hover{border-color:#fff;background:rgba(255,255,255,.1)}
.id-sub{flex-basis:100%;font-size:11.5px;line-height:1.55;color:rgba(255,255,255,.82);margin:2px 0 0}
.id-sub strong{color:#fff}
.id-close{position:absolute;top:50%;right:10px;transform:translateY(-50%);width:26px;height:26px;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:rgba(255,255,255,.12);color:rgba(255,255,255,.85);cursor:pointer;transition:all .2s;padding:0}
.id-close:hover{background:rgba(255,255,255,.26);color:#fff}
.id-close svg{width:13px;height:13px}
@keyframes idSlideDown{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}
.hide-header .id-banner{display:none}
@media(max-width:900px){.id-sub{display:none}}
@media(max-width:720px){
    .id-badge{display:none}
    .id-msg{white-space:normal}
}
@media(max-width:560px){
    .id-inner{gap:7px;padding:7px 40px}
    .id-cd .id-sec,.id-cd .id-sep-sec{display:none}
    .id-cta-acct{display:none}
    .id-msg{font-size:11.5px}
}
@media(max-width:420px){
    .id-count{display:none}
}
/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce){
    .id-banner{animation:none}
    .dk-hero-anim,.dk-orb,.dk-float-chip{animation:none!important;opacity:1!important}
}

/* ═══ Sitewide Promo Banner (5-day limited offer) ═══ */
.promo-banner{position:relative;z-index:90;background:linear-gradient(90deg,#0B1221 0%,#10264B 45%,#1D4ED8 100%);color:#fff;font-size:.8125rem;overflow:hidden;animation:promoSlideDown .6s cubic-bezier(.16,1,.3,1) .35s both}
.promo-banner::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(96,165,250,.55) 35%,rgba(52,211,153,.45) 70%,transparent)}
.promo-banner.is-hidden{display:none}
.promo-inner{display:flex;align-items:center;justify-content:center;gap:14px;max-width:var(--max-width);margin:0 auto;padding:8px 48px;text-align:center;flex-wrap:wrap}
.promo-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:100px;background:rgba(251,191,36,.16);border:1px solid rgba(251,191,36,.45);color:#FCD34D;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;white-space:nowrap}
.promo-badge svg{width:11px;height:11px;flex-shrink:0}
.promo-msg{font-weight:700;white-space:nowrap}
.promo-sub{color:rgba(255,255,255,.72);white-space:nowrap}
.promo-count{display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.promo-count b{display:inline-block;min-width:28px;padding:2px 6px;border-radius:6px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.24);font-size:12px;font-weight:800;line-height:1.4;text-align:center;color:#fff}
.promo-count i{font-style:normal;font-size:9.5px;font-weight:700;color:rgba(255,255,255,.62);text-transform:uppercase;letter-spacing:.4px;margin:0 2px}
.promo-count .pc-sep{color:rgba(255,255,255,.45);font-weight:800;font-size:12px}
.promo-cta{display:inline-flex;align-items:center;gap:6px;padding:5px 16px;border-radius:100px;background:#fff;color:#1D4ED8;font-size:12px;font-weight:800;text-decoration:none;letter-spacing:.2px;transition:all .2s;box-shadow:0 4px 14px rgba(0,0,0,.28);white-space:nowrap}
.promo-cta:hover{background:#FCD34D;color:#0B1221;transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.3)}
.promo-cta svg{width:13px;height:13px;flex-shrink:0}
.promo-close{position:absolute;top:50%;right:10px;transform:translateY(-50%);width:26px;height:26px;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;background:rgba(255,255,255,.12);color:rgba(255,255,255,.85);cursor:pointer;transition:all .2s;padding:0}
.promo-close:hover{background:rgba(255,255,255,.26);color:#fff}
.promo-close svg{width:13px;height:13px}
@keyframes promoSlideDown{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}
.hide-header .promo-banner{display:none}
@media(max-width:900px){.promo-sub{display:none}}
@media(max-width:640px){
    .promo-inner{gap:8px;padding:7px 40px}
    .promo-badge{display:none}
    .promo-count .pc-sec,.promo-count .pc-sep-sec{display:none}
    .promo-msg{font-size:12px}
}
@media(max-width:420px){
    .promo-count{display:none}
    .promo-msg{white-space:normal}
}
@media (prefers-reduced-motion: reduce){.promo-banner{animation:none}}

/* ═══ Homepage — DigiKey professional polish ═══ */
.dk-section-hdr{position:relative;margin-bottom:28px}
.dk-section-hdr h2{display:flex;align-items:center;gap:10px;font-size:20px;letter-spacing:-.3px}
.dk-section-hdr h2::before{content:'';width:4px;height:22px;border-radius:2px;background:linear-gradient(180deg,var(--secondary),var(--accent))}
.dk-view-all{display:inline-flex;align-items:center;gap:6px;padding:7px 15px;border:1px solid var(--border);border-radius:100px;font-size:12.5px;font-weight:600;color:var(--secondary);background:var(--bg-card);transition:all .2s}
.dk-view-all:hover{border-color:var(--secondary);background:var(--blue-light);transform:translateY(-1px)}
.dk-cat-card{position:relative;overflow:hidden}
.dk-cat-card::before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--secondary),var(--accent));opacity:0;transition:opacity .25s}
.dk-cat-card:hover::before{opacity:1}
.dk-cat-card-icon{background:linear-gradient(135deg,var(--blue-light),rgba(6,182,212,.14));border:1px solid rgba(37,99,235,.1)}
.dk-cat-card-name{color:var(--text-secondary)}
.dk-cat-card:hover .dk-cat-card-name{color:var(--text)}
.dk-pc-img{background:linear-gradient(180deg,#F8FAFC 0%,#EEF2F7 100%);border-bottom:1px solid var(--border-light)}
.dk-pc-btn{width:100%;margin-top:12px}
.dk-pc-price{color:#0F172A}
[data-theme="dark"] .dk-pc-img{background:var(--bg-tertiary);border-bottom-color:var(--border-light)}
[data-theme="dark"] .dk-pc-price{color:var(--text)}
.dk-mfr-item{background:var(--bg-card);border-color:var(--border)}
.dk-mfr-text{color:var(--text-secondary)}
.dk-mfr-item:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm)}

/* ═══ Product images link to PDP (DigiKey style) ═══ */
.dk-td-img > a.dk-td-img-link{display:flex;align-items:center;justify-content:center;width:44px;height:44px}
.dk-td-img > a.dk-td-img-link:hover img{opacity:.75}
.dk-pl-img > a.dk-pl-img-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.dk-pl-img > a.dk-pl-img-link:hover img{opacity:.8}
.dk-pc-img > a.dk-pc-img-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.dk-pc-img > a.dk-pc-img-link:hover img{opacity:.8}
.product-card-image{height:160px;background:var(--bg-secondary);display:flex;align-items:center;justify-content:center;padding:16px;position:relative}
.product-card-image > a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.product-card-image > a:hover img{opacity:.8}
.card-image-wrap > a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.card-image-wrap > a img{max-width:85%;max-height:100%;object-fit:contain}
.card-image-wrap > a:hover img{opacity:.8}

/* ═══ Mobile nav — fix mega-menu/dropdown clipping ═══ */
@media (max-width: 900px) {
  .nav-secondary-inner { height: auto; min-height: 40px; flex-wrap: wrap; align-items: flex-start; overflow: visible; padding: 4px 16px; gap: 8px; }
  .nav-secondary-inner .nav-dropdown-menu { width: 100%; }
  .mega-grid { grid-template-columns: 1fr; min-width: 0; gap: 4px; padding: 4px 0 12px; }
  .mega-col h4 { margin-top: 8px; }
}

/* ═══ Legacy admin/vendor sidebar — mobile drawer ═══ */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 99; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.sidebar-overlay.active { display: block; }
@media (max-width: 900px) {
  .admin-sidebar { width: 280px; max-width: 86vw; transform: translateX(-100%); transition: transform .25s cubic-bezier(.4,0,.2,1); box-shadow: none; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.14); }
  .admin-main { margin-left: 0; padding: 16px; }
  .sidebar-toggle { display: none; }
  .sidebar-toggle-mobile { display: flex; }
}

/* ════════════════════════════════════════════════════════════
   SESSION 24 — DIGIKEY-STYLE HEADER REDESIGN (NZTECH branded)
   Structure: utility strip → logo/search row → category bar
   ════════════════════════════════════════════════════════════ */

/* --- Utility strip (top tier) --- */
.hd-util { background: var(--bg-secondary); border-bottom: 1px solid var(--border); font-size: 0.78125rem; color: var(--text-secondary); position: relative; z-index: 102; }
.hd-util-inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 12px; }
.hd-util-left { display: flex; align-items: center; gap: 8px; color: var(--text-muted); min-width: 0; }
.hd-util-left svg { width: 14px; height: 14px; color: var(--secondary); flex-shrink: 0; }
.hd-util-greeting { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-util-right { display: flex; align-items: center; gap: 2px; }
.hd-util-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: none; background: none; cursor: pointer; font: inherit; font-size: inherit; font-weight: 500; color: var(--text-secondary); text-decoration: none; white-space: nowrap; border-radius: var(--radius-sm); transition: all var(--transition); }
.hd-util-link:hover { color: var(--secondary); background: var(--bg-tertiary); }
.hd-util-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.hd-util-sell { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 5px 12px; border-radius: var(--radius-full); background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; transition: all var(--transition); }
.hd-util-sell:hover { background: var(--secondary); color: #fff; }
.hd-util .dropdown-menu { z-index: 103; }

/* --- Search bar: solid search button --- */
.search-bar .hd-search-btn { align-self: stretch; padding: 0 22px; background: var(--secondary); color: #fff; border: none; border-radius: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.875rem; transition: background var(--transition); }
.search-bar .hd-search-btn:hover { background: var(--secondary-hover); color: #fff; }
.search-bar .hd-search-btn svg { width: 17px; height: 17px; }
.hd-search-label { display: inline; }

/* --- Category bar (dark navy, marketplace feel) --- */
.nav-secondary { background: var(--primary); border-bottom: 1px solid rgba(255,255,255,0.06); }
@media (min-width: 901px) { .nav-secondary-inner { height: 46px; } }
.nav-secondary-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: var(--radius-sm); font-weight: 500; color: rgba(255,255,255,0.84); }
.nav-secondary-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-secondary-accent { color: #7DD3FC; font-weight: 600; }
.nav-secondary-accent:hover { color: #fff; background: rgba(125,211,252,0.14); }
.nav-secondary-support { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.8125rem; font-weight: 500; padding: 5px 8px; border-radius: var(--radius-sm); white-space: nowrap; transition: all var(--transition); }
.nav-secondary-support:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-secondary-support svg { width: 15px; height: 15px; flex-shrink: 0; }

/* --- Browse (All Products) trigger + mega menu --- */
.hd-browse { display: inline-flex; align-items: center; gap: 8px; background: var(--secondary); color: #fff; border: none; border-radius: var(--radius-md); padding: 9px 14px; font: inherit; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background var(--transition); }
.hd-browse:hover { background: var(--secondary-hover); color: #fff; }
.hd-browse svg { width: 16px; height: 16px; flex-shrink: 0; }
.hd-browse .hd-browse-chev { width: 13px; height: 13px; opacity: 0.85; }
.nav-dropdown-menu.hd-browse-menu { min-width: 680px; left: 0; }
.hd-browse-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 6px; border-bottom: 1px solid var(--border-light); }
.hd-browse-head strong { font-family: var(--font-heading); font-size: 0.875rem; color: var(--text); }
.hd-browse-head a { font-size: 0.8125rem; font-weight: 600; color: var(--secondary); text-decoration: none; white-space: nowrap; }
.hd-browse-head a:hover { color: var(--secondary-hover); text-decoration: underline; }

/* --- Dark mode overrides --- */
[data-theme="dark"] .hd-util { background: #0F172A; border-color: var(--border); }
[data-theme="dark"] .hd-util-link { color: var(--text-secondary); }
[data-theme="dark"] .hd-util-link:hover { color: var(--text); background: var(--bg-tertiary); }
[data-theme="dark"] .hd-util-sell { background: var(--secondary); }
[data-theme="dark"] .nav-secondary { background: #0B1121; }
[data-theme="dark"] .nav-secondary-link { color: rgba(255,255,255,0.84); }
[data-theme="dark"] .nav-secondary-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
[data-theme="dark"] .nav-secondary-accent { color: #7DD3FC; }
[data-theme="dark"] .nav-secondary-accent:hover { color: #fff; background: rgba(125,211,252,0.14); }
[data-theme="dark"] .nav-secondary-support { color: rgba(255,255,255,0.72); }
[data-theme="dark"] .nav-secondary-support:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hd-util-left { display: none; }
  .hd-util-link.hd-util-opt { display: none; }
  .hd-util-inner { justify-content: flex-end; }
  .hd-util-sell { margin-left: 0; }
  .nav-dropdown-menu.hd-browse-menu { min-width: 0; }
}
@media (max-width: 640px) {
  .hd-search-label { display: none; }
  .nav-secondary-support { display: none; }
}

/* ════════════════════════════════════════════════════════════
   SESSION 24b — HEADER STYLING POLISH (DigiKey-grade finish)
   ════════════════════════════════════════════════════════════ */

/* --- Utility strip: hairline separators + tighter rhythm --- */
.hd-util-right { gap: 0; }
.hd-util-right .hd-util-link + .hd-util-link::before,
.hd-util-right .hd-util-link + .dropdown::before {
  content: ''; width: 1px; height: 14px; background: var(--border);
  margin: 0 8px 0 2px; flex-shrink: 0;
}
.hd-util-right .hd-util-sell { margin-left: 6px; }
.hd-util-link { transition: color var(--transition), background var(--transition); }

/* --- Logo row: larger brand mark --- */
.nav-brand-logo { height: 44px; transition: opacity var(--transition); }
.nav-brand:hover .nav-brand-logo { opacity: 0.85; }

/* --- Search bar: taller presence, clearer category chip, richer focus --- */
.search-bar { max-width: 640px; }
.search-category-select {
  background: var(--bg-tertiary);
  border-right: 1px solid var(--border);
  font-weight: 500;
}
.search-bar:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 8px 24px rgba(37, 99, 235, 0.08);
}
.search-bar .hd-search-btn { padding: 0 26px; }
.search-bar .hd-search-btn:active { background: #1D4ED8; }

/* --- Category bar: brand accent hairline + chevron animation --- */
.nav-secondary { position: relative; }
.nav-secondary::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--secondary) 0%, #38BDF8 100%);
  z-index: 1; pointer-events: none;
}
.nav-secondary-link,
.hd-browse,
.nav-secondary-support { transition: background var(--transition), color var(--transition); }
.nav-dropdown-toggle svg:last-child { transition: transform var(--transition); }
.nav-dropdown.open > .nav-dropdown-toggle svg:last-child { transform: rotate(180deg); }

/* --- Dropdown panels: blue top accent, deeper elevation --- */
.nav-secondary .nav-dropdown-menu {
  min-width: 230px;
  border-top: 3px solid var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  padding: 6px;
}
.nav-secondary .nav-dropdown-item { padding: 9px 12px; }
.nav-secondary .nav-dropdown-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  padding-left: 15px;
}

/* --- Mega menu: footer row + safety scroll --- */
.hd-browse-menu { max-height: calc(100vh - 220px); overflow-y: auto; }
.hd-browse-menu::-webkit-scrollbar { width: 8px; }
.hd-browse-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.hd-browse-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--border-light);
  margin: 0 4px 4px; padding: 10px 12px 4px;
}
.hd-browse-foot a {
  font-size: 0.8125rem; font-weight: 600; color: var(--secondary);
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
}
.hd-browse-foot a:hover { color: var(--secondary-hover); text-decoration: underline; }
.mega-col a { padding: 6px 10px; border-radius: var(--radius-sm); }

/* --- Dark mode refinements --- */
[data-theme="dark"] .search-category-select { background: var(--bg-tertiary); }
[data-theme="dark"] .nav-secondary .nav-dropdown-menu { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
[data-theme="dark"] .hd-browse-menu::-webkit-scrollbar-thumb { background: var(--border); }

/* --- Responsive polish --- */
@media (max-width: 900px) {
  .nav-brand-logo { height: 36px; }
  .hd-browse-foot { padding: 10px 8px 6px; }
  .nav-secondary .nav-dropdown-menu { border-top: 2px solid var(--secondary); }
}
@media (max-width: 640px) {
  .search-bar { max-width: 100%; }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  animation: cookieSlideUp 0.35s ease-out;
}
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-consent-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
}
.cookie-consent-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.cookie-consent-text svg { flex: none; margin-top: 2px; color: var(--secondary); }
.cookie-consent-text a { color: var(--secondary); font-weight: 600; text-decoration: none; }
.cookie-consent-text a:hover { text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 8px; flex: none; }
.cookie-btn {
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.cookie-btn-reject {
  background: var(--bg-tertiary);
  color: var(--text);
  border-color: var(--border);
}
.cookie-btn-reject:hover { background: var(--border-light); }
.cookie-btn-accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn-accept:hover { background: var(--secondary-hover); }

[data-theme="dark"] .cookie-consent {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .cookie-btn-reject { background: var(--bg-tertiary); border-color: var(--border); }
[data-theme="dark"] .cookie-btn-reject:hover { background: var(--primary-light); }

@media (max-width: 640px) {
  .cookie-consent-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-consent-actions { flex-direction: column; }
  .cookie-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent { animation: none; }
}

/* ============================================
   LEGACY UTILITY CLASSES (auto-generated)
   Replaces inline style="" on old-system pages.
   ============================================ */
.ut-1, [data-ut-1] { color:var(--success) }
.ut-2, [data-ut-2] { margin-top:16px }
.ut-3, [data-ut-3] { margin-top:12px }
.ut-4, [data-ut-4] { display:flex;align-items:center;gap:8px;font-size:0.875rem;cursor:pointer }
.ut-5, [data-ut-5] { font-size:0.875rem;color:var(--text-secondary) }
.ut-6, [data-ut-6] { background:var(--bg-primary);border:1px solid var(--border);border-radius:8px;padding:12px 16px }
.ut-7, [data-ut-7] { font-size:0.75rem;color:var(--text-muted);margin-top:8px }
.ut-8, [data-ut-8] { min-height:60px;resize:vertical }
.ut-9, [data-ut-9] { margin-top:8px;font-size:0.8125rem }
.ut-10, [data-ut-10] { visibility:hidden }
.ut-11, [data-ut-11] { color:var(--error) }
.ut-12, [data-ut-12] { padding:2rem 0 4rem }
.ut-13, [data-ut-13] { font-size:1.5rem }
.ut-14, [data-ut-14] { font-size:0.9375rem }
.ut-15, [data-ut-15] { width:120px;margin:0 auto 0.5rem }
.ut-16, [data-ut-16] { font-size:1.25rem;font-weight:700;color:var(--secondary) }
.ut-17, [data-ut-17] { stroke:var(--error) }
.ut-18, [data-ut-18] { display:flex;justify-content:space-between;align-items:center;margin-bottom:20px }
.ut-19, [data-ut-19] { display:flex;align-items:center;gap:6px;font-size:0.8125rem;cursor:pointer }
.ut-20, [data-ut-20] { accent-color:var(--secondary) }
.ut-21, [data-ut-21] { font-size:0.8125rem;color:var(--secondary);font-weight:600;text-decoration:none }
.ut-22, [data-ut-22] { background:rgba(37,99,235,0.1);color:var(--secondary) }
.ut-23, [data-ut-23] { color:var(--secondary) }
.ut-24, [data-ut-24] { background:rgba(16,185,129,0.1);color:var(--success) }
.ut-25, [data-ut-25] { background:rgba(245,158,11,0.1);color:var(--warning) }
.ut-26, [data-ut-26] { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.ut-27, [data-ut-27] { background: var(--card-bg); border: 1px solid var(--border); padding: 2rem; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 1rem; }
.ut-28, [data-ut-28] { display: flex; align-items: center; gap: 0.75rem; }
.ut-29, [data-ut-29] { margin: 0; color: var(--secondary); }
.ut-30, [data-ut-30] { font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); }
.ut-31, [data-ut-31] { margin: 0.5rem 0; }
.ut-32, [data-ut-32] { color: var(--text-primary); }
.ut-33, [data-ut-33] { margin: 1rem 0 0.5rem; }
.ut-34, [data-ut-34] { color: var(--secondary); text-decoration: none; }
.ut-35, [data-ut-35] { width: fit-content; }
.ut-36, [data-ut-36] { margin-right: 0.5rem; }
.ut-37, [data-ut-37] { gap:0.25rem }
.ut-38, [data-ut-38] { color:var(--text-muted) }
.ut-39, [data-ut-39] { display:flex;flex-direction:column;gap:0.75rem }
.ut-40, [data-ut-40] { background:rgba(139,92,246,0.1);color:#8B5CF6 }
.ut-41, [data-ut-41] { color:var(--text-secondary) }
.ut-42, [data-ut-42] { list-style:disc }
.ut-43, [data-ut-43] { resize:vertical }
.ut-44, [data-ut-44] { background:rgba(220,38,38,0.1);color:#DC2626 }
.ut-45, [data-ut-45] { font-size:0.9rem }
.ut-46, [data-ut-46] { font-size:0.8rem }
.ut-47, [data-ut-47] { text-decoration:none;color:inherit;display:block }
.ut-48, [data-ut-48] { color: var(--secondary); text-decoration: none; transition: color var(--transition-fast); }
.ut-49, [data-ut-49] { display:flex;align-items:center;gap:12px }
.ut-50, [data-ut-50] { background:rgba(37,99,235,.1);color:#2563EB }
.ut-51, [data-ut-51] { background:rgba(16,185,129,.1);color:#10B981 }
.ut-52, [data-ut-52] { background:rgba(245,158,11,.1);color:#F59E0B }
.ut-53, [data-ut-53] { background:rgba(139,92,246,.1);color:#8B5CF6 }
.ut-54, [data-ut-54] { display:flex;align-items:flex-end;gap:2px;height:160px;padding:16px 0;overflow-x:auto }
.ut-55, [data-ut-55] { flex:1;display:flex;flex-direction:column;align-items:center;min-width:20px }
.ut-56, [data-ut-56] { text-align:center;padding:40px;color:#94A3B8 }
.ut-57, [data-ut-57] { display:flex;flex-direction:column;gap:8px }
.ut-58, [data-ut-58] { display:flex;justify-content:space-between;font-size:13px;margin-bottom:4px }
.ut-59, [data-ut-59] { font-weight:600 }
.ut-60, [data-ut-60] { height:8px;background:#F1F5F9;border-radius:100px;overflow:hidden }
.ut-61, [data-ut-61] { text-align:center;padding:20px;color:#94A3B8 }
.ut-62, [data-ut-62] { padding:0 }
.ut-63, [data-ut-63] { text-align:center;padding:24px;color:#94A3B8 }
.ut-64, [data-ut-64] { display:flex;align-items:flex-end;gap:4px;height:120px;padding:16px 0 }
.ut-65, [data-ut-65] { flex:1;display:flex;flex-direction:column;align-items:center }
.ut-66, [data-ut-66] { font-size:9px;color:#94A3B8;margin-top:4px }
.ut-67, [data-ut-67] { margin-bottom:16px }
.ut-68, [data-ut-68] { display:grid;grid-template-columns:1fr 1fr;gap:16px }
.ut-69, [data-ut-69] { margin-bottom:8px }
.ut-70, [data-ut-70] { display:flex;gap:12px;margin-top:16px }
.ut-71, [data-ut-71] { width:80px;height:40px;background:#F1F5F9;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#94A3B8;font-size:10px }
.ut-72, [data-ut-72] { font-size:13px;color:#64748B }
.ut-73, [data-ut-73] { font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis }
.ut-74, [data-ut-74] { display:flex;gap:4px }
.ut-75, [data-ut-75] { text-align:center;padding:2rem;color:#94A3B8 }
.ut-76, [data-ut-76] { background:rgba(99,102,241,.1);color:#6366F1 }
.ut-77, [data-ut-77] { max-width:500px;margin-top:24px }
.ut-78, [data-ut-78] { display:flex;gap:8px;align-items:center }
.ut-79, [data-ut-79] { font-size:13px }
.ut-80, [data-ut-80] { display:flex;gap:4px;align-items:center }
.ut-81, [data-ut-81] { color:#EF4444 }
.ut-82, [data-ut-82] { font-size:12px;color:#94A3B8 }
.ut-83, [data-ut-83] { font-family:monospace }
.ut-84, [data-ut-84] { display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px }
.ut-85, [data-ut-85] { margin:16px 0 8px }
.ut-86, [data-ut-86] { text-align:center;padding:1rem;color:#94A3B8 }
.ut-87, [data-ut-87] { display:flex;gap:8px }
.ut-88, [data-ut-88] { font-size:13px;color:#94A3B8 }
.ut-89, [data-ut-89] { max-width:700px }
.ut-90, [data-ut-90] { border-left: 3px solid #2563EB; border-radius: 8px; }
.ut-91, [data-ut-91] { vertical-align:middle;margin-right:6px }
.ut-92, [data-ut-92] { padding: 2rem; text-align: center; }
.ut-93, [data-ut-93] { background:rgba(239,68,68,.1);color:#EF4444 }
.ut-94, [data-ut-94] { font-weight:600;font-size:13px }
.ut-95, [data-ut-95] { font-family:monospace;font-size:13px }
.ut-96, [data-ut-96] { display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:100px;font-size:12px;font-weight:600;background:rgba(245,158,11,.1);color:#F59E0B }
.ut-97, [data-ut-97] { max-height:600px;overflow-y:auto;font-family:monospace;font-size:12px;line-height:1.6;padding:0 }
.ut-98, [data-ut-98] { padding:6px 16px;border-bottom:1px solid #F1F5F9;white-space:pre-wrap;word-break:break-all }
.ut-99, [data-ut-99] { padding:40px;text-align:center;color:#94A3B8 }
.ut-100, [data-ut-100] { font-size:12px;color:#94A3B8;white-space:nowrap }
.ut-101, [data-ut-101] { font-size:13px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.ut-102, [data-ut-102] { font-size:11px;padding:2px 6px;background:#F1F5F9;border-radius:4px }
.ut-103, [data-ut-103] { text-align:center;padding:32px;color:#94A3B8 }
.ut-104, [data-ut-104] { font-size:0.8125rem;color:var(--text-muted) }
.ut-105, [data-ut-105] { display:inline-flex;gap:0.25rem;align-items:center }
.ut-106, [data-ut-106] { flex-wrap:wrap }
.ut-107, [data-ut-107] { flex:1;min-width:250px }
.ut-108, [data-ut-108] { cursor:pointer;padding:0.5rem 0 }
.ut-109, [data-ut-109] { font-size:0.875rem }
.ut-110, [data-ut-110] { width:auto }
.ut-111, [data-ut-111] { overflow-x:auto }
.ut-112, [data-ut-112] { width:60px }
.ut-113, [data-ut-113] { width:100px }
.ut-114, [data-ut-114] { width:50px;height:50px;background:var(--bg-tertiary);border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:var(--text-muted) }
.ut-115, [data-ut-115] { max-width:300px }
.ut-116, [data-ut-116] { font-size:0.8125rem;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.ut-117, [data-ut-117] { width:auto;font-size:0.75rem;padding:0.25rem 0.5rem;margin-bottom:0.25rem }
.ut-118, [data-ut-118] { display:block;width:100% }
.ut-119, [data-ut-119] { border-color:var(--warning);background:rgba(245,158,11,0.05) }
.ut-120, [data-ut-120] { color:var(--warning) }
.ut-121, [data-ut-121] { font-size:0.875rem;color:var(--text-secondary);line-height:2 }
.ut-122, [data-ut-122] { background:var(--bg-tertiary);padding:0.5rem;margin:0.25rem 0;border-radius:4px }
.ut-123, [data-ut-123] { background:rgba(148,163,184,.1);color:#94A3B8 }
.ut-124, [data-ut-124] { display:flex;gap:8px;flex-wrap:wrap }
.ut-125, [data-ut-125] { width:auto;padding:6px 10px }
.ut-126, [data-ut-126] { font-family:monospace;font-size:12px }
.ut-127, [data-ut-127] { background:#F1F5F9;color:#475569 }
.ut-128, [data-ut-128] { max-width:900px;padding:24px }
.ut-129, [data-ut-129] { display:flex;gap:12px;margin-top:20px }
.ut-130, [data-ut-130] { display:inline-flex;margin-left:auto;gap:8px;flex-wrap:wrap }
.ut-131, [data-ut-131] { display:flex;gap:8px;align-items:center;margin-bottom:12px }
.ut-132, [data-ut-132] { width:30px }
.ut-133, [data-ut-133] { width:40px;height:40px;background:#F1F5F9;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#94A3B8;font-size:10px }
.ut-134, [data-ut-134] { max-width:450px }
.ut-135, [data-ut-135] { margin-bottom:24px }
.ut-136, [data-ut-136] { display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px }
.ut-137, [data-ut-137] { display:flex;gap:4px;margin-bottom:16px }
.ut-138, [data-ut-138] { color:#94A3B8;font-size:12px }
.ut-139, [data-ut-139] { white-space:nowrap }
.ut-140, [data-ut-140] { font-size:13px;max-width:250px }
.ut-141, [data-ut-141] { font-size:13px;color:#94A3B8;white-space:nowrap }
.ut-142, [data-ut-142] { display:flex;gap:4px;flex-wrap:nowrap }
.ut-143, [data-ut-143] { padding:4px 10px;font-size:12px }
.ut-144, [data-ut-144] { padding:4px 10px;font-size:12px;color:#EF4444 }
.ut-145, [data-ut-145] { background:#8B5CF620;color:#8B5CF6;border:1px solid #8B5CF640 }
.ut-146, [data-ut-146] { padding:16px 24px;background:#F8FAFC;border-top:1px solid #E2E8F0 }
.ut-147, [data-ut-147] { padding:12px;background:#FEF2F2;border-radius:8px;margin-bottom:16px;font-size:13px;color:#DC2626;border:1px solid #FECACA }
.ut-148, [data-ut-148] { font-weight:600;margin-bottom:6px;display:block }
.ut-149, [data-ut-149] { width:100%;max-width:600px;font-family:monospace;font-size:13px;padding:8px 12px;border:1px solid #E2E8F0;border-radius:6px }
.ut-150, [data-ut-150] { max-height:400px;overflow-y:auto;padding:0 }
.ut-151, [data-ut-151] { font-size:12px;padding:2px 6px;background:#F1F5F9;border-radius:4px }
.ut-152, [data-ut-152] { font-size:13px;max-width:150px;overflow:hidden;text-overflow:ellipsis }
.ut-153, [data-ut-153] { font-size:13px;font-family:monospace }
.ut-154, [data-ut-154] { font-size:12px }
.ut-155, [data-ut-155] { max-width:800px;padding:24px;overflow:visible }
.ut-156, [data-ut-156] { margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid #F1F5F9 }
.ut-157, [data-ut-157] { margin:24px 0 16px;padding-bottom:8px;border-bottom:2px solid #F1F5F9 }
.ut-158, [data-ut-158] { display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px }
.ut-159, [data-ut-159] { margin-top:24px;padding-top:16px;border-top:1px solid var(--admin-border);display:flex;align-items:center;justify-content:space-between }
.ut-160, [data-ut-160] { font-size:0.8125rem;color:var(--admin-text-muted) }
.ut-161, [data-ut-161] { margin-bottom:1.5rem }
.ut-162, [data-ut-162] { display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem }
.ut-163, [data-ut-163] { display:flex;align-items:flex-end;gap:1rem }
.ut-164, [data-ut-164] { margin-bottom:0 }
.ut-165, [data-ut-165] { margin-top:1rem }
.ut-166, [data-ut-166] { font-size:11px;color:#64748B;margin-top:2px }
.ut-167, [data-ut-167] { font-size:11px;color:#64748B }
.ut-168, [data-ut-168] { background:#EFF6FF;color:#2563EB }
.ut-169, [data-ut-169] { display:flex;gap:4px;flex-wrap:wrap }
.ut-170, [data-ut-170] { color:#10B981 }
.ut-171, [data-ut-171] { margin-top:1.5rem }
.ut-172, [data-ut-172] { display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem;align-items:end }
.ut-173, [data-ut-173] { margin-top:0.5rem }
.ut-174, [data-ut-174] { padding:16px }
.ut-175, [data-ut-175] { font-size:14px;color:#64748B;margin-bottom:8px }
.ut-176, [data-ut-176] { flex:1;max-width:75% }
.ut-177, [data-ut-177] { color:#94A3B8 }
.ut-178, [data-ut-178] { font-size:10px;padding:1px 6px }
.ut-179, [data-ut-179] { padding:16px;display:flex;gap:12px;flex-wrap:wrap }
.ut-180, [data-ut-180] { max-width:200px;overflow:hidden;text-overflow:ellipsis }
.ut-181, [data-ut-181] { display:flex;gap:4px;flex-wrap:wrap;align-items:center }
.ut-182, [data-ut-182] { display:inline-flex;gap:4px;align-items:center }
.ut-183, [data-ut-183] { width:100px;padding:3px 6px;font-size:12px;border:1px solid #E2E8F0;border-radius:4px }
.ut-184, [data-ut-184] { display:flex;justify-content:center;align-items:center;gap:8px;margin-top:16px }
.ut-185, [data-ut-185] { border-color:#2563eb;border-width:2px }
.ut-186, [data-ut-186] { background:rgba(0,61,122,0.1);color:#003D7A }
.ut-187, [data-ut-187] { font-size:0.875rem;color:var(--text-muted,#94A3B8);margin:0 0 16px }
.ut-188, [data-ut-188] { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px }
.ut-189, [data-ut-189] { display:flex;align-items:flex-start;gap:12px;padding:16px;border-radius:12px;background:var(--bg-secondary,#F8FAFC) }
.ut-190, [data-ut-190] { flex-shrink:0;width:32px;height:32px;border-radius:8px;background:rgba(16,185,129,0.1);display:flex;align-items:center;justify-content:center;color:#10B981 }
.ut-191, [data-ut-191] { font-size:0.8125rem;color:var(--text-muted,#94A3B8);margin:4px 0 0 }
.ut-192, [data-ut-192] { background:var(--bg-secondary,#F8FAFC);border-radius:16px;padding:32px;text-align:center }
.ut-193, [data-ut-193] { margin:0 auto 16px;display:block }
.ut-194, [data-ut-194] { font-size:1.1rem;font-weight:700;margin:0 0 8px }
.ut-195, [data-ut-195] { font-size:0.875rem;color:var(--text-muted);margin:0 0 20px;line-height:1.6 }
.ut-196, [data-ut-196] { display:inline-flex;align-items:center;gap:8px }
.ut-197, [data-ut-197] { margin-bottom:32px }
.ut-198, [data-ut-198] { padding-top:3rem;padding-bottom:1rem;background:linear-gradient(135deg,var(--bg-primary),color-mix(in srgb,var(--primary) 4%,var(--bg-primary)));position:relative;overflow:hidden }
.ut-199, [data-ut-199] { position:absolute;inset:0;opacity:0.03;pointer-events:none;background-image:radial-gradient(circle at 50% 50%,var(--primary) 0,transparent 50%) }
.ut-200, [data-ut-200] { position:relative;z-index:1 }
.ut-201, [data-ut-201] { max-width:600px;margin:0 auto;text-align:center }
.ut-202, [data-ut-202] { font-size:2.75rem;margin-bottom:0.75rem }
.ut-203, [data-ut-203] { font-size:1.125rem }
.ut-204, [data-ut-204] { padding-top:1rem }
.ut-205, [data-ut-205] { display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:2rem }
.ut-206, [data-ut-206] { background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem }
.ut-207, [data-ut-207] { font-size:1.1rem;margin-bottom:1rem;padding-bottom:0.5rem;border-bottom:2px solid var(--primary);display:inline-block }
.ut-208, [data-ut-208] { list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0.5rem }
.ut-209, [data-ut-209] { color:var(--accent);text-decoration:none;font-size:0.9rem;display:flex;align-items:center;gap:0.375rem }
.ut-210, [data-ut-210] { font-size:1.1rem;margin-bottom:1rem;padding-bottom:0.5rem;border-bottom:2px solid var(--secondary);display:inline-block }
.ut-211, [data-ut-211] { color:var(--text-muted);font-size:0.8rem }
.ut-212, [data-ut-212] { font-size:1.1rem;margin-bottom:1rem;padding-bottom:0.5rem;border-bottom:2px solid #10b981;display:inline-block }
.ut-213, [data-ut-213] { color:var(--accent);text-decoration:none;font-size:0.9rem }
.ut-214, [data-ut-214] { font-size:1.1rem;margin-bottom:1rem;padding-bottom:0.5rem;border-bottom:2px solid #f59e0b;display:inline-block }
.ut-215, [data-ut-215] { font-size:1.1rem;margin-bottom:1rem;padding-bottom:0.5rem;border-bottom:2px solid #8b5cf6;display:inline-block }
.ut-216, [data-ut-216] { font-size:1.1rem;margin-bottom:1rem;padding-bottom:0.5rem;border-bottom:2px solid #06b6d4;display:inline-block }
.ut-217, [data-ut-217] { color:#DC2626 }
.ut-218, [data-ut-218] { font-weight:400;font-size:13px;color:var(--primary,#2563EB);text-decoration:none }
.ut-219, [data-ut-219] { color:#64748B;font-size:12px }
.ut-220, [data-ut-220] { color:#2563EB;font-weight:600 }
.ut-221, [data-ut-221] { color:#2563EB }
.ut-222, [data-ut-222] { color:#64748B }
.ut-223, [data-ut-223] { color:#F59E0B }
.ut-224, [data-ut-224] { display:flex;gap:8px;margin:0 }
.ut-225, [data-ut-225] { margin-left:auto;display:flex;gap:8px }
.ut-226, [data-ut-226] { display:flex;align-items:center;gap:10px }
.ut-227, [data-ut-227] { font-size:12px;color:#64748B }
.ut-228, [data-ut-228] { padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:14px;background:#FEF2F2;color:#DC2626 }
.ut-229, [data-ut-229] { max-width:900px }
.ut-230, [data-ut-230] { font-size:14px;font-weight:700;color:var(--primary,#003D7A);margin:0 0 16px;padding-bottom:8px;border-bottom:2px solid var(--primary,#003D7A) }
.ut-231, [data-ut-231] { font-size:14px;font-weight:700;color:var(--primary,#003D7A);margin:24px 0 16px;padding-bottom:8px;border-bottom:2px solid var(--primary,#003D7A) }
.ut-232, [data-ut-232] { grid-template-columns:1fr 1fr 1fr }
.ut-233, [data-ut-233] { color:#94A3B8;font-size:11px }
.ut-234, [data-ut-234] { margin-top:-8px }
.ut-235, [data-ut-235] { max-width:120px }
.ut-236, [data-ut-236] { display:flex;align-items:center;gap:8px;padding-top:24px }
.ut-237, [data-ut-237] { display:flex;gap:12px;margin-top:24px;padding-top:16px;border-top:2px solid var(--border,#E2E8F0) }
.ut-238, [data-ut-238] { padding:12px 32px }
.ut-239, [data-ut-239] { max-width:800px }
.ut-240, [data-ut-240] { display:flex;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #F1F5F9 }
.ut-241, [data-ut-241] { border:1px solid var(--border,#E2E8F0);border-radius:12px;overflow:hidden;margin-bottom:16px }
.ut-242, [data-ut-242] { font-weight:500;font-size:13px }
.ut-243, [data-ut-243] { text-align:right;padding:10px 16px;font-weight:600;font-size:13px }
.ut-244, [data-ut-244] { font-weight:700;color:#2563EB }
.ut-245, [data-ut-245] { display:flex;gap:8px;margin-top:16px }
.ut-246, [data-ut-246] { padding:8px 12px;border:1px solid #E2E8F0;border-radius:8px;font-size:13px }
.ut-247, [data-ut-247] { color:#94A3B8;font-size:13px }
.ut-248, [data-ut-248] { grid-template-columns:repeat(auto-fill,minmax(200px,1fr)) }
.ut-249, [data-ut-249] { font-size:20px }
.ut-250, [data-ut-250] { font-size:20px;color:#2563EB }
.ut-251, [data-ut-251] { font-size:20px;color:#10B981 }
.ut-252, [data-ut-252] { font-size:20px;color:#64748B }
.ut-253, [data-ut-253] { max-width:400px }
.ut-254, [data-ut-254] { color:#DC2626;font-size:13px;margin-bottom:12px }
.ut-255, [data-ut-255] { text-align:center;padding:40px }
.ut-256, [data-ut-256] { font-size:14px;color:#64748B;margin:8px 0 20px }
.ut-257, [data-ut-257] { max-width:600px }
.ut-258, [data-ut-258] { display:flex;align-items:center;gap:16px;margin-bottom:20px }
.ut-259, [data-ut-259] { font-size:16px }
.ut-260, [data-ut-260] { grid-template-columns:repeat(auto-fill,minmax(170px,1fr)) }
.ut-261, [data-ut-261] { display:flex;align-items:center;gap:10px;margin-bottom:6px }
.ut-262, [data-ut-262] { font-size:13px;font-weight:600;width:30px }
.ut-263, [data-ut-263] { flex:1;height:8px;background:#F1F5F9;border-radius:100px;overflow:hidden }
.ut-264, [data-ut-264] { font-size:12px;color:#94A3B8;width:40px }
.ut-265, [data-ut-265] { color:#F59E0B;font-weight:600 }
.ut-266, [data-ut-266] { font-size:13px;color:#64748B;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.ut-267, [data-ut-267] { background:rgba(37,99,235,0.1);color:#2563eb }
.ut-268, [data-ut-268] { background:rgba(239,68,68,0.1);color:#ef4444 }
.ut-269, [data-ut-269] { background:rgba(16,185,129,0.1);color:#10b981 }
.ut-270, [data-ut-270] { background:rgba(245,158,11,0.1);color:#f59e0b }
.ut-271, [data-ut-271] { align-self:flex-start;gap:0.25rem;padding-left:0 }
.ut-272, [data-ut-272] { padding:2rem 0 3rem }
.ut-273, [data-ut-273] { background:linear-gradient(135deg,#0a0f1e,#1a2744);border-radius:16px;padding:2rem 2.5rem;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:2rem;flex-wrap:wrap }
.ut-274, [data-ut-274] { font-size:1.5rem;font-weight:700;margin:0 0 .5rem;color:#fff }
.ut-275, [data-ut-275] { color:rgba(255,255,255,.7);margin:0 0 1rem }
.ut-276, [data-ut-276] { display:flex;gap:1.5rem;flex-wrap:wrap }
.ut-277, [data-ut-277] { display:flex;align-items:center;gap:.5rem;font-size:.88rem;color:rgba(255,255,255,.8) }
.ut-278, [data-ut-278] { color:#fff;text-decoration:none }
.ut-279, [data-ut-279] { color:rgba(255,255,255,.8) }
.ut-280, [data-ut-280] { text-align:center;flex-shrink:0 }
.ut-281, [data-ut-281] { background:#2563eb;color:#fff;padding:.75rem 2rem;border-radius:10px;font-weight:600;text-decoration:none;display:inline-block }
.ut-282, [data-ut-282] { color:rgba(255,255,255,.5);font-size:.8rem;margin:.5rem 0 0 }
.ut-283, [data-ut-283] { width:auto;padding:6px 10px;font-size:13px }
.ut-284, [data-ut-284] { font-weight:500 }
.ut-285, [data-ut-285] { color:#8B5CF6 }
.ut-286, [data-ut-286] { color:#059669 }
.ut-287, [data-ut-287] { text-align:center }
.ut-288, [data-ut-288] { color:#10B981;font-weight:600 }
.ut-289, [data-ut-289] { background:#FEF2F2;color:#DC2626;border:1px solid #FECACA;padding:12px 16px;border-radius:8px;margin-bottom:16px;font-size:14px }
.ut-290, [data-ut-290] { font-size:20px;font-weight:800;color:#059669 }
.ut-291, [data-ut-291] { text-align:right;line-height:1.3 }
.ut-292, [data-ut-292] { font-size:14px }
.ut-293, [data-ut-293] { display:inline-flex;align-items:center;gap:8px;padding:12px 24px;font-size:0.9375rem;font-weight:600;border-radius:10px;text-decoration:none;background:#2563EB;color:white;white-space:nowrap }
.ut-294, [data-ut-294] { background:rgba(59,130,246,.1);color:#3B82F6 }
.ut-295, [data-ut-295] { font-size:12px;color:#2563EB;text-decoration:none;font-weight:500 }
.ut-296, [data-ut-296] { display:flex;align-items:center;gap:16px;flex-wrap:wrap }
.ut-297, [data-ut-297] { flex:1;min-width:120px;text-align:center;padding:12px;background:#F8FAFC;border-radius:8px }
.ut-298, [data-ut-298] { font-size:1.5rem;font-weight:700;color:#0F172A }
.ut-299, [data-ut-299] { font-size:0.75rem;color:#64748B;margin-top:4px }
.ut-300, [data-ut-300] { flex:1;min-width:120px;text-align:center;padding:12px;background:#F0FDF4;border-radius:8px }
.ut-301, [data-ut-301] { font-size:1.5rem;font-weight:700;color:#059669 }
.ut-302, [data-ut-302] { flex:1;min-width:120px;text-align:center;padding:12px;background:#FEF2F2;border-radius:8px }
.ut-303, [data-ut-303] { font-size:1.5rem;font-weight:700;color:#DC2626 }
.ut-304, [data-ut-304] { display:inline-flex;align-items:center;gap:6px;padding:10px 20px;background:#2563EB;color:white;border-radius:8px;text-decoration:none;font-weight:600;font-size:0.875rem }
.ut-305, [data-ut-305] { padding:40px 20px }
.ut-306, [data-ut-306] { width:32px;height:32px;font-size:12px }
.ut-307, [data-ut-307] { font-size:12px;color:#94A3B8;font-weight:400 }
.ut-308, [data-ut-308] { font-size:16px;margin-bottom:8px;color:#1E293B }
.ut-309, [data-ut-309] { text-align:right;padding:10px 16px;font-size:13px }
.ut-310, [data-ut-310] { text-align:right;padding:10px 16px;font-weight:700;font-size:15px }
.ut-311, [data-ut-311] { font-weight:700;font-size:15px;color:#2563EB }
.ut-312, [data-ut-312] { display:flex;gap:12px;flex-wrap:wrap }
.ut-313, [data-ut-313] { padding:8px;border:1px solid #E2E8F0;border-radius:8px;font-size:13px }
.ut-314, [data-ut-314] { display:flex;gap:8px;align-items:center;flex-wrap:wrap }
.ut-315, [data-ut-315] { max-width:960px }
.ut-316, [data-ut-316] { margin-bottom:8px;display:inline-block;margin-right:8px;position:relative }
.ut-317, [data-ut-317] { flex-shrink:0;padding:4px 8px }
.ut-318, [data-ut-318] { margin-bottom:8px;display:flex;align-items:center;gap:8px }
.ut-319, [data-ut-319] { display:flex;gap:12px;margin-top:24px;padding-top:16px;border-top:1px solid #F1F5F9 }
.ut-320, [data-ut-320] { margin-bottom:12px }
.ut-321, [data-ut-321] { font-size:18px;font-weight:700;color:#2563EB }
.ut-322, [data-ut-322] { display:grid;grid-template-columns:300px 1fr;gap:20px;margin-bottom:24px }
.ut-323, [data-ut-323] { font-size:13px;min-width:30px }
.ut-324, [data-ut-324] { font-size:12px;color:#94A3B8;min-width:30px;text-align:right }
.ut-325, [data-ut-325] { padding:0 20px }
.ut-326, [data-ut-326] { border-left-color:#10B981 }
.ut-327, [data-ut-327] { margin:4px 0 0;font-size:13px }
.ut-328, [data-ut-328] { position:absolute;top:12px;right:12px;display:flex;gap:6px;z-index:5 }
.ut-329, [data-ut-329] { text-align:center;font-size:0.75rem;color:var(--text-muted);margin-top:4px }
.ut-330, [data-ut-330] { font-size:0.8125rem;font-weight:600;margin-bottom:8px;color:var(--text-primary) }
.ut-331, [data-ut-331] { font-weight:400;font-size:0.75rem;color:var(--text-muted) }
.ut-332, [data-ut-332] { display:flex;gap:16px;margin-bottom:12px;font-size:0.75rem;color:var(--text-muted) }
.ut-333, [data-ut-333] { display:inline-flex;align-items:center;gap:6px }
.ut-334, [data-ut-334] { font-size:11px;background:var(--success);color:white;padding:2px 8px;border-radius:10px;font-weight:700 }
.ut-335, [data-ut-335] { font-size:11px;background:var(--error);color:white;padding:2px 8px;border-radius:10px;font-weight:700 }
.ut-336, [data-ut-336] { font-size:13px;color:var(--text-muted);margin-bottom:10px }
.ut-337, [data-ut-337] { font-size:14px;color:var(--text-secondary);line-height:1.7 }
.ut-338, [data-ut-338] { display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--bg-secondary);border-radius:var(--radius-md);margin-bottom:16px }
.ut-339, [data-ut-339] { color:var(--success);flex-shrink:0 }
.ut-340, [data-ut-340] { font-size:13px;color:var(--text-secondary) }
.ut-341, [data-ut-341] { color:var(--text-primary) }
.ut-342, [data-ut-342] { margin-top:24px }
.ut-343, [data-ut-343] { color:var(--success,#10B981) }
.ut-344, [data-ut-344] { background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-xl);padding:24px 32px;margin-bottom:32px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px }
.ut-345, [data-ut-345] { font-size:16px;font-weight:700;margin-bottom:4px }
.ut-346, [data-ut-346] { font-size:14px;color:var(--text-secondary);margin:0 }
.ut-347, [data-ut-347] { display:flex;gap:12px;flex-shrink:0 }
.ut-348, [data-ut-348] { display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--secondary);text-decoration:none }
.ut-349, [data-ut-349] { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px }
.ut-350, [data-ut-350] { font-weight:700;font-size:20px }
.ut-351, [data-ut-351] { font-size:12px;color:var(--success);font-weight:600 }
.ut-352, [data-ut-352] { display:flex;align-items:center;gap:8px }
.ut-353, [data-ut-353] { height:36px }
.ut-354, [data-ut-354] { color:var(--secondary);margin:0 8px }
.ut-355, [data-ut-355] { flex:1 }
.ut-356, [data-ut-356] { width:180px }
.ut-357, [data-ut-357] { width:140px }
.ut-358, [data-ut-358] { width:80px }
.ut-359, [data-ut-359] { width:70px }
.ut-360, [data-ut-360] { width:120px }
.ut-361, [data-ut-361] { text-align:center;padding:40px 20px; }
.ut-362, [data-ut-362] { font-size:0.875rem;color:var(--text-secondary);margin:16px 0; }
.ut-363, [data-ut-363] { font-size:0.8125rem; }
.ut-364, [data-ut-364] { font-size:0.6875rem;color:var(--text-muted);margin-top:8px; }
.ut-365, [data-ut-365] { padding:20px; }
.ut-366, [data-ut-366] { flex-direction:column;align-items:stretch; }
.ut-367, [data-ut-367] { width:100%;padding:8px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:0.8125rem;resize:vertical;font-family:monospace }
.ut-368, [data-ut-368] { background:linear-gradient(135deg,var(--primary,#003D7A) 0%,#002244 100%);padding:48px 0 40px;color:white; }
.ut-369, [data-ut-369] { display:flex;gap:6px;font-size:0.75rem;color:rgba(255,255,255,0.6);margin-bottom:16px; }
.ut-370, [data-ut-370] { color:rgba(255,255,255,0.6);text-decoration:none; }
.ut-371, [data-ut-371] { color:white;font-weight:500; }
.ut-372, [data-ut-372] { font-size:1.75rem;font-weight:700;margin:0 0 8px; }
.ut-373, [data-ut-373] { font-size:0.9375rem;color:rgba(255,255,255,0.8);max-width:720px;margin:0;line-height:1.6; }
.ut-374, [data-ut-374] { display:flex;gap:12px;margin-top:24px;flex-wrap:wrap; }
.ut-375, [data-ut-375] { padding:12px 32px;font-weight:600;border:none; }
.ut-376, [data-ut-376] { padding:12px 32px;font-weight:600;background:rgba(255,255,255,0.15);color:white;border:1px solid rgba(255,255,255,0.3);text-decoration:none; }
.ut-377, [data-ut-377] { padding:48px 0; }
.ut-378, [data-ut-378] { max-width:960px;margin:0 auto; }
.ut-379, [data-ut-379] { font-size:1.25rem;font-weight:700;color:var(--text-primary);margin:0 0 24px; }
.ut-380, [data-ut-380] { font-size:0.9375rem;color:var(--text-secondary);margin:0 0 32px; }
.ut-381, [data-ut-381] { overflow-x:auto; }
.ut-382, [data-ut-382] { width:100%;border-collapse:collapse;font-size:0.8125rem; }
.ut-383, [data-ut-383] { text-align:left;padding:12px 16px;background:var(--bg-secondary);border-bottom:2px solid var(--border);font-weight:600;color:var(--text-primary); }
.ut-384, [data-ut-384] { text-align:center;padding:12px 16px;background:var(--bg-secondary);border-bottom:2px solid var(--border);font-weight:600;color:var(--text-primary);width:120px; }
.ut-385, [data-ut-385] { padding:10px 16px;color:var(--text-secondary);border-bottom:1px solid var(--border); }
.ut-386, [data-ut-386] { text-align:center;padding:10px 16px;border-bottom:1px solid var(--border);color:var(--success) }
.ut-387, [data-ut-387] { text-align:center;margin-top:48px;padding:32px;background:var(--bg-secondary);border-radius:var(--radius-lg); }
.ut-388, [data-ut-388] { font-size:1.125rem;font-weight:700;color:var(--text-primary);margin:0 0 8px; }
.ut-389, [data-ut-389] { font-size:0.875rem;color:var(--text-secondary);margin:0 0 24px; }
.ut-390, [data-ut-390] { display:flex;gap:12px;justify-content:center;flex-wrap:wrap; }
.ut-391, [data-ut-391] { padding:12px 32px; }
.ut-392, [data-ut-392] { display:flex;align-items:center;color:var(--text-muted);font-size:0.875rem; }
.ut-393, [data-ut-393] { padding:12px 32px;text-decoration:none; }
.ut-394, [data-ut-394] { margin-top:48px; }
.ut-395, [data-ut-395] { font-size:1.125rem;font-weight:700;color:var(--text-primary);margin:0 0 24px; }
.ut-396, [data-ut-396] { display:flex;flex-direction:column;gap:8px; }
.ut-397, [data-ut-397] { border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden; }
.ut-398, [data-ut-398] { padding:14px 16px;font-size:0.875rem;font-weight:600;color:var(--text-primary);cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between; }
.ut-399, [data-ut-399] { flex-shrink:0;transition:transform 0.2s }
.ut-400, [data-ut-400] { padding:0 16px 14px;font-size:0.8125rem;color:var(--text-secondary);line-height:1.6; }
.ut-401, [data-ut-401] { text-align:center;padding:2rem }
.ut-402, [data-ut-402] { margin-top:1rem;font-size:13px;color:var(--text-muted) }
.ut-403, [data-ut-403] { margin-bottom:2rem }
.ut-404, [data-ut-404] { margin-bottom:0.5rem;font-size:13px;color:var(--text-muted) }
.ut-405, [data-ut-405] { display:flex;gap:1rem }

/* --- legacy utility additions (Phase B) --- */
.ut-406, [data-ut-406] { max-width:200px;max-height:80px;border-radius:6px;object-fit:cover }
.ut-407, [data-ut-407] { width:80px;height:40px;object-fit:cover;border-radius:4px }
.ut-408, [data-ut-408] { width:70px;padding:4px 8px;font-size:13px;border:1px solid #E2E8F0;border-radius:4px }
.ut-409, [data-ut-409] { text-transform:uppercase }
.ut-410, [data-ut-410] { width:250px;padding:6px 12px }
.ut-411, [data-ut-411] { color:inherit;text-decoration:none }
.ut-412, [data-ut-412] { width:50px;height:50px;object-fit:contain;border-radius:4px;background:var(--bg-secondary) }
.ut-413, [data-ut-413] { color:#2563EB;text-decoration:none }
.ut-414, [data-ut-414] { width:160px;padding:6px 12px }
.ut-415, [data-ut-415] { width:40px;height:40px;object-fit:cover;border-radius:6px }
.ut-416, [data-ut-416] { color:var(--accent);text-decoration:none;font-weight:500 }
.ut-417, [data-ut-417] { min-width:32px }
.ut-418, [data-ut-418] { color:#2563EB;text-decoration:none;font-weight:500 }
.ut-419, [data-ut-419] { width:40px;height:40px;object-fit:cover;border-radius:6px;border:1px solid #E2E8F0 }
.ut-420, [data-ut-420] { background:#F59E0B;color:#fff }
.ut-421, [data-ut-421] { width:60px;height:60px;border-radius:12px;object-fit:cover;border:1px solid #E2E8F0 }
.ut-422, [data-ut-422] { color:#2563EB;text-decoration:none;font-weight:600 }
.ut-423, [data-ut-423] { width:80px;height:80px;object-fit:cover;border-radius:8px;border:1px solid #E2E8F0 }
.ut-424, [data-ut-424] { margin-top:8px }
.ut-425, [data-ut-425] { width:44px }
.ut-426, [data-ut-426] { height:36px;padding:0 16px;font-size:13px;white-space:nowrap }
.ut-427, [data-ut-427] { background:#FAFBFC }

/* ============ Customer Dashboard — Procurement Workspace ============ */
.dash-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-kpi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.dash-kpi:hover { border-color: var(--secondary); box-shadow: 0 8px 24px rgba(37,99,235,.10); transform: translateY(-2px); }
.dash-kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dash-kpi-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.dash-kpi-value { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.dash-kpi-sub { font-size: 0.75rem; color: var(--text-muted); }
.dash-kpi .stat-icon { width: 38px; height: 38px; border-radius: 10px; }

.dash-card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.dash-card-title { font-size: 0.9375rem; font-weight: 700; margin: 0; padding: 0; border: none; }

.dash-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.dash-quick { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.dash-quick:hover { border-color: var(--secondary); box-shadow: 0 8px 24px rgba(37,99,235,.10); transform: translateY(-2px); }
.dash-quick-body { display: flex; flex-direction: column; min-width: 0; }
.dash-quick-title { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.dash-quick-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 640px) {
  .dash-kpi-grid { grid-template-columns: 1fr 1fr; }
  .dash-kpi-value { font-size: 1.25rem; }
}
