/* === Autoparts B2B/B2C - Main Stylesheet === */

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b77;
  --secondary: #1d3557;
  --secondary-light: #264a7a;
  --accent: #f77f00;
  --accent-light: #fcb045;
  --bg-dark: #0d1117;
  --bg-darker: #010409;
  --bg-card: #161b22;
  --bg-card-hover: #1c2333;
  --bg-input: #21262d;
  --bg-nav: #0d1117;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --border: #30363d;
  --border-light: #21262d;
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
  --info: #58a6ff;
  --header-h: 72px;
  --max-w: 1400px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  --font-mono: JetBrains Mono, Fira Code, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-family);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--info); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* === Header === */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000; height: var(--header-h);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: var(--text-primary); text-decoration: none; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.logo span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 16px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; border-radius: var(--radius); transition: all 0.2s; }
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); text-decoration: none; }
.nav-link.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-btn { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; position: relative; }
.header-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--text-muted); }
.header-btn .badge { position: absolute; top: -4px; right: -4px; background: var(--primary); color: white; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-menu-btn { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-secondary); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--bg-dark); border-bottom: 1px solid var(--border); padding: 16px 24px; z-index: 999; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav.active { display: block; }
.mobile-nav .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
@media (max-width: 768px) { .nav { display: none; } .mobile-menu-btn { display: flex; } .header-actions .switcher-group { display: none; } }

/* === YMM Filter Hero === */
.ymm-hero { padding: 140px 0 80px; background: linear-gradient(135deg, var(--bg-darker) 0%, var(--secondary) 50%, var(--bg-darker) 100%); position: relative; overflow: hidden; }
.ymm-hero::before { content: "; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(230,57,70,0.1) 0%, transparent 50%), radial-gradient(ellipse at 70% 50%, rgba(247,127,0,0.08) 0%, transparent 50%); pointer-events: none; }
.ymm-hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.ymm-hero h1 { font-size: 3rem; margin-bottom: 12px; background: linear-gradient(135deg, var(--text-primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ymm-hero p { font-size: 1.15rem; margin-bottom: 36px; color: var(--text-muted); }
.ymm-filter-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow-lg); max-width: 800px; margin: 0 auto; }
.ymm-selectors { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.ymm-selectors .form-group { margin-bottom: 0; }
.ymm-selectors select, .ymm-selectors input { width: 100%; }
.ymm-search-btn { padding: 10px 28px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; white-space: nowrap; height: 44px; transition: all 0.2s; }
.ymm-search-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.ymm-vin-toggle { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ymm-vin-toggle button { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; transition: color 0.2s; padding: 4px 12px; border-radius: var(--radius-sm); }
.ymm-vin-toggle button:hover { color: var(--info); background: var(--bg-input); }
.vin-search-row { display: none; margin-top: 16px; }
.vin-search-row.active { display: block; }
.vin-input-group { display: flex; gap: 8px; }
.vin-input-group input { flex: 1; }

/* === Vehicle Type Navigation === */
.vehicle-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.vehicle-nav-btn { padding: 10px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; font-size: 0.9rem; font-weight: 500; }
.vehicle-nav-btn:hover, .vehicle-nav-btn.active { background: var(--bg-card-hover); border-color: var(--primary); color: var(--primary); }

/* === Quick Access Categories === */
.hero-featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.hero-feat-item { padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; transition: all 0.3s; cursor: pointer; }
.hero-feat-item:hover { background: var(--bg-card-hover); border-color: var(--primary); transform: translateY(-2px); }
.hero-feat-item .icon { font-size: 1.5rem; margin-bottom: 4px; }
.hero-feat-item span { font-size: 0.85rem; font-weight: 500; }
@media (max-width: 768px) { .hero-featured { grid-template-columns: repeat(2, 1fr); } }

/* === Form Elements === */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
select, input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], textarea { width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 0.95rem; font-family: var(--font-family); transition: border-color 0.2s; outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--primary); }
select { cursor: pointer; 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='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea { resize: vertical; min-height: 100px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; border: none; font-family: var(--font-family); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-muted); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

/* === Sections === */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.category-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: all 0.3s; cursor: pointer; position: relative; overflow: hidden; }
.category-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transition: transform 0.3s; transform-origin: left; }
.category-card:hover { background: var(--bg-card-hover); border-color: var(--text-muted); transform: translateY(-2px); }
.category-card:hover::before { transform: scaleX(1); }
.category-icon { width: 48px; height: 48px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(230,57,70,0.15), rgba(247,127,0,0.15)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.category-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.category-card p { font-size: 0.85rem; color: var(--text-muted); }
.category-card .subcats { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.category-card .subcat-tag { font-size: 0.75rem; padding: 3px 10px; background: var(--bg-input); border-radius: 20px; color: var(--text-secondary); }

/* === Products Grid === */
.products-section { padding: 48px 0; }
.products-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.products-header h2 { font-size: 1.5rem; }
.products-toolbar { display: flex; gap: 8px; align-items: center; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--text-muted); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-image { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--bg-input), var(--bg-card-hover)); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--text-muted); position: relative; }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-new { background: var(--success); color: white; }
.badge-hot { background: var(--primary); color: white; }
.badge-sale { background: var(--accent); color: white; }
.product-actions-bar { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.product-card:hover .product-actions-bar { opacity: 1; }
.product-action-btn { width: 32px; height: 32px; border-radius: 50%; 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 0.2s; font-size: 0.8rem; }
.product-action-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 4px; }
.product-name { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-sku { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 10px; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-light); }
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.product-price .currency { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.add-to-cart-btn { padding: 6px 14px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 4px; }
.add-to-cart-btn:hover { background: var(--primary-dark); }

/* === Pagination === */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-btn { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; transition: all 0.2s; font-size: 0.85rem; }
.page-btn:hover { border-color: var(--text-muted); color: var(--text-primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* === Loading === */
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 60px; color: var(--text-muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Trust Bar === */
.trust-bar { padding: 48px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.trust-item { padding: 16px; }
.trust-icon { font-size: 2rem; margin-bottom: 8px; }
.trust-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.8rem; color: var(--text-muted); }

/* === Features === */
.features-section { padding: 64px 0; background: var(--bg-darker); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: all 0.3s; }
.feature-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); }

/* === Newsletter === */
.newsletter-section { padding: 48px 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.newsletter-inner { text-align: center; max-width: 500px; margin: 0 auto; }
.newsletter-inner h3 { margin-bottom: 8px; }
.newsletter-inner p { font-size: 0.85rem; margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; }
@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* === Certification Badges === */
.cert-grid { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.cert-badge { width: 80px; height: 80px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--text-muted); font-weight: 700; text-align: center; text-transform: uppercase; }
.cert-badge.iso { border-color: var(--info); color: var(--info); }
.cert-badge.tuv { border-color: var(--accent); color: var(--accent); }
.cert-badge.sae { border-color: var(--success); color: var(--success); }
.cert-badge.dot { border-color: var(--primary); color: var(--primary); }

/* === Product Detail === */
.product-detail { padding: 120px 0 60px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-main-image { width: 100%; aspect-ratio: 4/3; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 5rem; color: var(--text-muted); margin-bottom: 12px; }
.product-thumbnails { display: flex; gap: 8px; }
.product-thumbnail { width: 72px; height: 72px; border: 2px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s; background: var(--bg-input); }
.product-thumbnail.active, .product-thumbnail:hover { border-color: var(--primary); }
.product-info-detail h1 { font-size: 1.8rem; margin-bottom: 8px; }
.product-meta { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.product-meta-item { font-size: 0.85rem; color: var(--text-muted); }
.product-meta-item strong { color: var(--text-secondary); font-weight: 500; }
.product-description { margin-bottom: 24px; line-height: 1.7; }
.product-specs { margin-bottom: 24px; }
.product-specs h3 { font-size: 1.1rem; margin-bottom: 12px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.specs-table td:first-child { color: var(--text-secondary); font-weight: 500; width: 40%; }
.detail-price { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.detail-price .currency { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.tiered-pricing { background: var(--bg-input); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
.tiered-pricing h4 { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; }
.tier-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border-light); }
.tier-row:last-child { border-bottom: none; }
.tier-qty { color: var(--text-secondary); }
.tier-price { color: var(--primary); font-weight: 600; }
.detail-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.qty-selector { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; background: var(--bg-input); border: none; color: var(--text-primary); font-size: 1.2rem; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--bg-card-hover); }
.qty-input { width: 60px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); font-size: 1rem; font-weight: 600; padding: 8px; }
.fitment-list { margin-top: 24px; }
.fitment-list h3 { font-size: 1.1rem; margin-bottom: 12px; }
.fitment-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.fitment-table th { text-align: left; padding: 8px 12px; background: var(--bg-input); color: var(--text-secondary); font-weight: 600; border-bottom: 1px solid var(--border); }
.fitment-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); }
.fitment-table tr:hover td { background: var(--bg-input); }

/* === B2B Inquiry === */
.b2b-section { padding: 120px 0 60px; }
.b2b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.b2b-info h1 { margin-bottom: 16px; }
.b2b-info p { margin-bottom: 24px; line-height: 1.7; }
.b2b-benefits { list-style: none; }
.b2b-benefits li { padding: 12px 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.b2b-benefits li::before { content: "✓"; color: var(--success); font-weight: 700; }
.b2b-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.b2b-form-card h2 { font-size: 1.3rem; margin-bottom: 20px; }
@media (max-width: 1024px) { .product-detail-grid { grid-template-columns: 1fr; } .b2b-grid { grid-template-columns: 1fr; } }

/* === Compare === */
.compare-section { padding: 120px 0 60px; }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: center; border: 1px solid var(--border); min-width: 140px; }
.compare-table th { background: var(--bg-card); font-weight: 600; }
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--text-secondary); }
.compare-table tr:nth-child(even) td { background: var(--bg-input); }

/* === Cart Sidebar === */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; z-index: 2000; }
.cart-overlay.active { display: block; }
.cart-sidebar { position: fixed; top: 0; right: -480px; width: 480px; max-width: 100vw; height: 100vh; background: var(--bg-card); border-left: 1px solid var(--border); z-index: 2001; display: flex; flex-direction: column; transition: right 0.3s ease; }
.cart-sidebar.active { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-header h2 { font-size: 1.2rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.cart-empty .icon { font-size: 3rem; margin-bottom: 16px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--bg-input); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-sku { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cart-item-qty { display: flex; align-items: center; gap: 4px; }
.cart-item-qty button { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-input); color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.cart-item-qty span { min-width: 28px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.cart-item-price { font-weight: 700; font-size: 0.95rem; }
.cart-item-remove { color: var(--text-muted); cursor: pointer; font-size: 0.8rem; background: none; border: none; padding: 4px; }
.cart-item-remove:hover { color: var(--danger); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.cart-checkout-btn { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.cart-checkout-btn:hover { background: var(--primary-dark); }

/* === Modal === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 1.2rem; }
.modal-close { width: 32px; height: 32px; border: none; background: none; color: var(--text-secondary); font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.modal-close:hover { color: var(--text-primary); background: var(--bg-input); }
.modal-body { padding: 24px; }

/* === Footer === */
.footer { background: var(--bg-darker); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); }
.footer h4 { font-size: 0.9rem; margin-bottom: 16px; color: var(--text-primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); text-decoration: none; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border-light); font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* === Blog === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.blog-card:hover { transform: translateY(-2px); border-color: var(--text-muted); }
.blog-card-image { height: 200px; background: linear-gradient(135deg, var(--bg-input), var(--bg-card-hover)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--text-muted); }
.blog-card-body { padding: 20px; }
.blog-card-tag { display: inline-block; padding: 2px 10px; background: rgba(230,57,70,0.15); color: var(--primary); border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 8px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.blog-card-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 12px; }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; } }

/* === Switchers === */
.switcher-group { display: flex; align-items: center; gap: 4px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; }
.switcher-btn { padding: 6px 10px; font-size: 0.75rem; font-weight: 600; background: none; border: none; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm); transition: all 0.2s; text-transform: uppercase; }
.switcher-btn.active { background: var(--bg-card); color: var(--text-primary); }
.switcher-btn:hover:not(.active) { color: var(--text-secondary); }

/* === WhatsApp Float === */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; box-shadow: 0 4px 16px rgba(37,211,102,0.4); cursor: pointer; z-index: 999; transition: all 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); color: white; }

/* === Toast Notifications === */
.toast-container { position: fixed; top: 90px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 14px 20px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 400px; animation: slideIn 0.3s ease; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* === Page & Utility === */
.page-content { padding-top: var(--header-h); min-height: calc(100vh - 400px); }
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* === Skeleton Loading === */
.skeleton { background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-card-hover) 50%, var(--bg-input) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === Responsive Tweaks === */
@media (max-width: 1024px) { .ymm-selectors { grid-template-columns: 1fr 1fr; } .ymm-search-btn { grid-column: 1 / -1; } }
@media (max-width: 768px) { .ymm-hero { padding: 120px 0 60px; } .ymm-hero h1 { font-size: 2rem; } .ymm-selectors { grid-template-columns: 1fr; } .ymm-filter-box { padding: 20px; } h1 { font-size: 1.8rem; } h2 { font-size: 1.5rem; } .categories-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } .trust-grid { grid-template-columns: repeat(2, 1fr); } .features-grid { grid-template-columns: 1fr 1fr; } .cart-sidebar { width: 100vw; } }
@media (max-width: 480px) { .ymm-hero h1 { font-size: 1.5rem; } .categories-grid { grid-template-columns: 1fr; } .products-grid { grid-template-columns: 1fr; } .features-grid { grid-template-columns: 1fr; } .trust-grid { grid-template-columns: 1fr; } .header-actions .header-btn:not(.cart-btn) { display: none; } }

/* ===== VORTPARTS ENHANCED STYLES ===== */
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 36px; font-size: 1.05rem; border-radius: 8px; font-weight: 700; }
.hero-cta .btn-primary { background: #e63946; color: #fff; border: 2px solid #e63946; }
.hero-cta .btn-primary:hover { background: #c1121f; transform: translateY(-2px); }
.hero-cta .btn-secondary { background: transparent; color: #f0f6fc; border: 2px solid #f0f6fc; }
.hero-cta .btn-secondary:hover { background: rgba(240,246,252,0.1); transform: translateY(-2px); }
.trust-banner { display: flex; justify-content: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.trust-banner span { font-size: 0.85rem; color: #8b949e; display: flex; align-items: center; gap: 6px; }
.stats-section { padding: 48px 0; background: #161b22; border-top: 1px solid #30363d; border-bottom: 1px solid #30363d; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 2rem; font-weight: 800; color: #e63946; margin-bottom: 4px; }
.stat-item p { font-size: 0.85rem; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: #161b22; border: 1px solid #30363d; border-radius: 8px; max-height: 300px; overflow-y: auto; z-index: 100; display: none; }
.search-suggestions.active { display: block; }
.search-suggestion-item { padding: 10px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; border-bottom: 1px solid #21262d; }
.search-suggestion-item:hover { background: #21262d; }
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #161b22; border-top: 2px solid #e63946; padding: 12px 24px; z-index: 999; display: none; transform: translateY(100%); transition: transform 0.3s; }
.compare-bar.active { display: block; transform: translateY(0); }
.compare-bar-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.compare-items { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
.compare-item { width: 80px; height: 80px; background: #21262d; border: 1px solid #30363d; border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; font-size: 1.5rem; flex-shrink: 0; }
.compare-item .remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #e63946; color: #fff; border: none; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.compare-btn { padding: 10px 24px; background: #e63946; color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.compare-count { font-size: 0.8rem; color: #8b949e; white-space: nowrap; }
.nav-cta { padding: 8px 20px; background: #e63946; color: #fff; border-radius: 8px; font-weight: 700; font-size: 0.85rem; }
.nav-cta:hover { background: #c1121f; color: #fff; text-decoration: none; }
.b2b-mid-banner { padding: 48px 0; background: linear-gradient(135deg,#1d3557,#0d1117); text-align: center; }
.b2b-mid-banner h2 { font-size: 1.8rem; margin-bottom: 8px; }
.b2b-mid-banner p { margin-bottom: 20px; color: #8b949e; }
.b2b-mid-banner .btn { padding: 14px 36px; background: #e63946; color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.testimonials-section { padding: 64px 0; background: #161b22; }
.testimonial-card { background: #21262d; border: 1px solid #30363d; border-radius: 12px; padding: 32px; text-align: center; display: none; animation: fadeIn 0.5s ease; }
.testimonial-card.active { display: block; }
.testimonial-card .stars { color: #f77f00; font-size: 1.2rem; margin-bottom: 12px; }
.testimonial-card blockquote { font-size: 1.05rem; font-style: italic; color: #f0f6fc; line-height: 1.6; margin-bottom: 16px; }
.testimonial-card .author { font-weight: 600; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.testimonial-dot { width: 10px; height: 10px; border-radius: 50%; background: #30363d; border: none; cursor: pointer; }
.testimonial-dot.active { background: #e63946; }
.about-section { padding: 64px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 1.8rem; margin-bottom: 16px; }
.about-text .mission { font-size: 1.1rem; color: #f0f6fc; font-weight: 500; margin-bottom: 24px; }
.value-item { display: flex; gap: 12px; margin-bottom: 16px; }
.value-item .icon { font-size: 1.5rem; flex-shrink: 0; }
.value-item h4 { font-size: 1rem; margin-bottom: 2px; }
.value-item p { font-size: 0.85rem; color: #8b949e; }
.about-image { width: 100%; aspect-ratio: 4/3; background: #21262d; border: 1px solid #30363d; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #6e7681; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.loading-screen { position: fixed; inset: 0; background: #0d1117; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; }
.loading-screen.hidden { display: none; }
.loading-logo { font-size: 2.5rem; font-weight: 800; }
.loading-logo span { color: #e63946; }
.loading-bar { width: 200px; height: 3px; background: #21262d; border-radius: 2px; margin-top: 16px; overflow: hidden; }
.loading-bar-fill { height: 100%; background: #e63946; width: 0; animation: loadBar 1.5s ease forwards; }
@keyframes loadBar { to { width: 100%; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.scroll-progress { position: fixed; top: 72px; left: 0; height: 3px; background: #e63946; z-index: 999; width: 0; transition: width 0.1s; }
.recently-viewed { position: fixed; bottom: 90px; right: 24px; z-index: 998; }
.recently-toggle { width: 48px; height: 48px; border-radius: 50%; background: #161b22; border: 1px solid #30363d; color: #8b949e; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.recently-panel { position: absolute; bottom: 56px; right: 0; width: 320px; max-height: 400px; overflow-y: auto; background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 16px; display: none; }
.recently-panel.active { display: block; }
.recently-panel h4 { font-size: 0.9rem; margin-bottom: 12px; color: #8b949e; }
.recently-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #21262d; cursor: pointer; }
.recently-item:last-child { border-bottom: none; }
.recently-item .name { font-size: 0.8rem; color: #f0f6fc; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) { .nav-cta { display: none; } }
