/*
 * ELECTROFIX B2B Electronics Distributor Theme Stylesheet
 * Optimized for Custom WordPress / WooCommerce Integration
 * Naming Convention: ef- prefix for modular elements
 */

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

/* ==========================================================================
   1. Design System & CSS Variables
   ========================================================================== */
:root {
  /* Colors */
  --ef-primary: #0a2240;
  /* Deep Navy - Header, primary branding */
  --ef-primary-light: #16365c;
  /* Slate Blue - Secondary navigation / hero accent */
  --ef-primary-dark: #041021;
  /* Near Black - Top bar and rich footer */
  --ef-accent: #005eb8;
  /* Classic B2B Distributor Blue - Main actions, active states */
  --ef-accent-hover: #004b93;
  /* Hover blue */
  --ef-neon-glow: #00d2ff;
  /* Neon Cyan - Glowing indicator & circuit lines */
  --ef-neon-glow-rgb: 0, 210, 255;

  --ef-success: #10b981;
  /* Emerald Green - In stock badge, active indicators */
  --ef-warning: #f59e0b;
  /* Amber Yellow - Low stock warning */
  --ef-error: #ef4444;
  /* Coral Red - Out of stock badge */

  --ef-text-main: #1f2937;
  /* Dark Charcoal - Body copy */
  --ef-text-muted: #6b7280;
  /* Muted Gray - Secondary descriptions, part numbers */
  --ef-text-light: #9ca3af;
  /* Silver Gray - Borders, breadcrumbs */
  --ef-bg-body: #f8fafc;
  /* Soft Light Slate - Page background */
  --ef-bg-card: #ffffff;
  /* Pure White - Content containers */
  --ef-bg-light: #f1f5f9;
  /* Soft Gray - Table headings, alternating rows */
  --ef-white: #ffffff;
  /* Plain White */

  --ef-border-color: #e2e8f0;
  /* Card and divider lines */
  --ef-border-focus: #005eb8;
  /* Interactive elements focus color */

  /* Layout Metrics */
  --ef-max-width: 1440px;
  --ef-border-radius-sm: 3px;
  --ef-border-radius: 6px;
  --ef-border-radius-lg: 12px;

  /* Typography */
  --ef-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ef-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --ef-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --ef-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --ef-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --ef-shadow-glow: 0 0 15px rgba(0, 210, 255, 0.25);

  /* Animations */
  --ef-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset & Global Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ef-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ef-text-main);
  background-color: var(--ef-bg-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ef-accent);
  text-decoration: none;
  transition: var(--ef-transition);
}

a:hover {
  color: var(--ef-accent-hover);
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Layout Container */
.ef-container {
  width: 100%;
  max-width: var(--ef-max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

/* Section Title */
.ef-section-title {
  font-family: var(--ef-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ef-section-title span {
  font-size: 0.9rem;
  font-family: var(--ef-font-body);
  font-weight: 500;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ef-bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--ef-text-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ef-text-muted);
}

/* ==========================================================================
   3. Header Structure (.ef-header)
   ========================================================================== */
.ef-header {
  background-color: var(--ef-bg-card);
  box-shadow: var(--ef-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--ef-border-color);
}

/* 3.1 Top Information Bar */
.ef-topbar {
  background-color: var(--ef-primary-dark);
  color: var(--ef-white);
  font-size: 11px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ef-topbar .ef-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ef-topbar-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.ef-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.ef-topbar-item svg {
  width: 14px;
  height: 14px;
  color: var(--ef-neon-glow);
}

.ef-topbar-nav {
  display: flex;
  gap: 15px;
}

.ef-topbar-link {
  color: rgba(255, 255, 255, 0.8);
}

.ef-topbar-link:hover {
  color: var(--ef-white);
}

/* 3.2 Main Header Section */
.ef-main-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--ef-border-color);
}

.ef-main-header .ef-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* Brand Logo */
.ef-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ef-logo-icon {
  background-color: transparent;
  color: var(--ef-white);
  font-family: var(--ef-font-heading);
  font-weight: 800;
  font-size: 20px;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ef-border-radius);
  position: relative;
  overflow: hidden;
}

.ef-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ef-logo-text {
  display: flex;
  flex-direction: column;
}

.ef-logo-title {
  font-family: var(--ef-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--ef-primary);
  line-height: 1;
  letter-spacing: -0.5px;
}

.ef-logo-subtitle {
  font-size: 10px;
  color: var(--ef-text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Large Search Bar */
.ef-search-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.ef-search-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  border: 2px solid var(--ef-primary);
  border-radius: var(--ef-border-radius);
  overflow: hidden;
  box-shadow: var(--ef-shadow-sm);
  background-color: var(--ef-white);
}

.ef-search-input {
  border: none;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--ef-text-main);
  background-color: transparent;
  width: 100%;
}

.ef-search-input::placeholder {
  color: var(--ef-text-light);
}

.ef-search-category {
  border: none;
  border-left: 1px solid var(--ef-border-color);
  padding: 0 12px;
  font-size: 12.5px;
  background-color: var(--ef-bg-body);
  color: var(--ef-text-main);
  cursor: pointer;
}

.ef-search-btn {
  background-color: var(--ef-accent);
  color: var(--ef-white);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ef-transition);
}

.ef-search-btn:hover {
  background-color: var(--ef-accent-hover);
}

.ef-search-btn svg {
  width: 18px;
  height: 18px;
}

/* Search suggestions panel */
.ef-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: 0 0 var(--ef-border-radius) var(--ef-border-radius);
  box-shadow: var(--ef-shadow-lg);
  z-index: 110;
  display: none;
  overflow: hidden;
  margin-top: 2px;
}

.ef-search-suggest-item {
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--ef-bg-light);
  transition: var(--ef-transition);
}

.ef-search-suggest-item:hover {
  background-color: var(--ef-bg-light);
}

.ef-search-suggest-part {
  font-weight: 600;
  color: var(--ef-primary);
  font-family: monospace;
  font-size: 13px;
}

.ef-search-suggest-desc {
  color: var(--ef-text-main);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ef-search-suggest-brand {
  color: var(--ef-text-muted);
  font-size: 11px;
  font-weight: 500;
  background-color: var(--ef-bg-light);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Actions Menu (Quick Order, Track Order, Login, Cart) */
.ef-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ef-header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ef-primary);
  font-size: 11px;
  font-weight: 600;
  transition: var(--ef-transition);
  position: relative;
}

.ef-header-action-btn:hover {
  color: var(--ef-accent);
}

.ef-header-action-btn svg {
  width: 22px;
  height: 22px;
}

.ef-cart-badge {
  position: absolute;
  top: -4px;
  right: 4px;
  background-color: var(--ef-accent);
  color: var(--ef-white);
  font-size: 9px;
  font-weight: 700;
  height: 16px;
  min-width: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px var(--ef-white);
}

/* 3.3 Navigation Bar */
.ef-nav-bar {
  background-color: var(--ef-primary);
  color: var(--ef-white);
  display: flex;
  align-items: center;
}

.ef-nav-bar .ef-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ef-nav-group {
  display: flex;
  align-items: center;
}

/* Category Trigger */
.ef-nav-category-trigger {
  background-color: var(--ef-accent);
  color: var(--ef-white);
  font-family: var(--ef-font-heading);
  font-weight: 700;
  font-size: 13.5px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--ef-transition);
}

.ef-nav-category-trigger:hover {
  background-color: var(--ef-accent-hover);
}

.ef-nav-category-trigger svg {
  width: 18px;
  height: 18px;
}

/* Main menu links */
.ef-nav-menu {
  display: flex;
  align-items: center;
}

.ef-nav-item {
  position: relative;
}

.ef-nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ef-nav-link:hover {
  color: var(--ef-white);
  background-color: var(--ef-primary-light);
}

.ef-nav-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

/* Mega menu dropdown logic */
.ef-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--ef-white);
  color: var(--ef-text-main);
  box-shadow: var(--ef-shadow-lg);
  border: 1px solid var(--ef-border-color);
  border-top: none;
  min-width: 220px;
  display: none;
  z-index: 99;
}

.ef-nav-item:hover .ef-nav-dropdown {
  display: block;
}

.ef-nav-dropdown-item a {
  padding: 10px 20px;
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ef-text-main);
  border-bottom: 1px solid var(--ef-bg-light);
}

.ef-nav-dropdown-item a:hover {
  background-color: var(--ef-bg-light);
  color: var(--ef-accent);
}

/* Support phone on the right */
.ef-nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ef-neon-glow);
}

.ef-nav-phone svg {
  width: 16px;
  height: 16px;
}

/* Mobile Menu Hamburger */
.ef-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 24px;
  justify-content: center;
  cursor: pointer;
}

.ef-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ef-primary);
  border-radius: 2px;
  transition: var(--ef-transition);
}

/* ==========================================================================
   4. Hero Section (.ef-hero) - Premium B2B Semiconductor Glow
   ========================================================================== */
.ef-hero {
  background: radial-gradient(circle at 70% 50%, var(--ef-primary-light) 0%, var(--ef-primary-dark) 100%);
  color: var(--ef-white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Circuit trace patterns using SVG overlay */
.ef-hero-bg-traces {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
  stroke: var(--ef-neon-glow);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  fill: none;
}

.ef-hero .ef-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.ef-hero-content {
  max-width: 600px;
}

.ef-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--ef-neon-glow);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.ef-hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ef-neon-glow);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

.ef-hero-title {
  font-family: var(--ef-font-heading);
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
}

.ef-hero-title span {
  background: linear-gradient(135deg, var(--ef-white) 40%, var(--ef-neon-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ef-hero-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Live key search terms */
.ef-hero-searches {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ef-hero-searches a {
  color: var(--ef-white);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 10px;
  border-radius: 30px;
  transition: var(--ef-transition);
  font-family: monospace;
}

.ef-hero-searches a:hover {
  background: var(--ef-accent);
}

/* Stats bar inside Hero */
.ef-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.ef-hero-stat-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 110px;
}

.ef-hero-stat-num {
  font-family: var(--ef-font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ef-neon-glow);
  white-space: nowrap;
  line-height: 1.2;
}

.ef-hero-stat-lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.3;
}

/* Holographic Microchip visual on Right Side */
.ef-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ef-chip-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  background: rgba(10, 34, 64, 0.4);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--ef-border-radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.05), inset 0 0 20px rgba(0, 210, 255, 0.05);
}

/* Outer PCB Ring Animation */
.ef-pcb-ring {
  position: absolute;
  width: 90%;
  height: 90%;
  border: 1px dashed rgba(0, 210, 255, 0.15);
  border-radius: 50%;
  animation: rotate-pcb 40s linear infinite;
}

@keyframes rotate-pcb {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ef-microchip {
  width: 180px;
  height: 180px;
  background-color: #1e293b;
  border: 4px solid #0f172a;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 210, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--ef-transition);
  animation: float-chip 6s ease-in-out infinite;
}

@keyframes float-chip {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.ef-microchip:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 210, 255, 0.55);
}

/* Pins around the chip */
.ef-microchip-pins {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ef-microchip-pins::before,
.ef-microchip-pins::after {
  content: '';
  position: absolute;
  background-color: #cbd5e1;
}

/* Side pins */
.ef-microchip-pins::before {
  top: 12px;
  bottom: 12px;
  left: -8px;
  right: -8px;
  box-shadow:
    0 16px 0 #cbd5e1, 0 32px 0 #cbd5e1, 0 48px 0 #cbd5e1, 0 64px 0 #cbd5e1,
    0 80px 0 #cbd5e1, 0 96px 0 #cbd5e1, 0 112px 0 #cbd5e1, 0 128px 0 #cbd5e1,
    188px 0 0 #cbd5e1, 188px 16px 0 #cbd5e1, 188px 32px 0 #cbd5e1, 188px 48px 0 #cbd5e1,
    188px 64px 0 #cbd5e1, 188px 80px 0 #cbd5e1, 188px 96px 0 #cbd5e1, 188px 112px 0 #cbd5e1,
    188px 128px 0 #cbd5e1;
  width: 8px;
  height: 8px;
}

/* Top & Bottom pins */
.ef-microchip-pins::after {
  left: 12px;
  right: 12px;
  top: -8px;
  bottom: -8px;
  box-shadow:
    16px 0 0 #cbd5e1, 32px 0 0 #cbd5e1, 48px 0 0 #cbd5e1, 64px 0 0 #cbd5e1,
    80px 0 0 #cbd5e1, 96px 0 0 #cbd5e1, 112px 0 0 #cbd5e1, 128px 0 0 #cbd5e1,
    0 188px 0 #cbd5e1, 16px 188px 0 #cbd5e1, 32px 188px 0 #cbd5e1, 48px 188px 0 #cbd5e1,
    64px 188px 0 #cbd5e1, 80px 188px 0 #cbd5e1, 96px 188px 0 #cbd5e1, 112px 188px 0 #cbd5e1,
    128px 188px 0 #cbd5e1;
  width: 8px;
  height: 8px;
}

.ef-chip-core {
  width: 75px;
  height: 75px;
  background: radial-gradient(circle, #334155 0%, #0f172a 100%);
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ef-neon-glow);
  font-family: var(--ef-font-heading);
  font-weight: 800;
  font-size: 16px;
  box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.2);
}

.ef-chip-core svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 5px var(--ef-neon-glow));
}

.ef-chip-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-top: 10px;
  font-family: monospace;
}

/* ==========================================================================
   5. Category Grid (.ef-category-card)
   ========================================================================== */
.ef-categories-section {
  padding: 50px 0;
  background-color: var(--ef-bg-card);
}

.ef-categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.ef-category-card {
  background-color: var(--ef-bg-body);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 20px 12px;
  text-align: center;
  transition: var(--ef-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ef-category-card:hover {
  background-color: var(--ef-white);
  border-color: var(--ef-accent);
  box-shadow: var(--ef-shadow-md);
  transform: translateY(-3px);
}

.ef-category-img {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  box-shadow: var(--ef-shadow-sm);
  transition: var(--ef-transition);
}

.ef-category-card:hover .ef-category-img {
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

.ef-category-img svg {
  width: 42px;
  height: 42px;
}

.ef-category-name {
  font-family: var(--ef-font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ef-primary);
}

.ef-category-count {
  font-size: 10px;
  color: var(--ef-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   6. Product Cards (.ef-product-card)
   ========================================================================== */
.ef-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.ef-product-card {
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: var(--ef-transition);
  position: relative;
}

.ef-product-card:hover {
  border-color: var(--ef-accent);
  box-shadow: var(--ef-shadow-lg);
  transform: translateY(-4px);
}

/* Badges */
.ef-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 30px;
  z-index: 5;
}

.ef-badge-instock {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--ef-success);
}

.ef-badge-lowstock {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--ef-warning);
}

.ef-badge-outstock {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--ef-error);
}

.ef-card-img-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160px;
  background-color: var(--ef-bg-body);
  border-radius: var(--ef-border-radius);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--ef-bg-light);
}

.ef-card-img-link svg {
  max-width: 80%;
  max-height: 80%;
  transition: var(--ef-transition);
}

.ef-product-card:hover .ef-card-img-link svg {
  transform: scale(1.05);
}

.ef-card-brand {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ef-text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ef-card-part-no {
  font-family: monospace;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ef-primary);
  margin-bottom: 2px;
}

.ef-card-title {
  font-family: var(--ef-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--ef-text-main);
  line-height: 1.35;
  margin-bottom: 10px;
  height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ef-card-meta {
  font-size: 11px;
  color: var(--ef-text-muted);
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--ef-border-color);
  padding-bottom: 8px;
}

/* Price tiers layout */
.ef-card-pricing {
  margin-top: auto;
  margin-bottom: 12px;
}

.ef-card-price-label {
  font-size: 10px;
  color: var(--ef-text-muted);
}

.ef-card-price {
  font-family: var(--ef-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ef-accent);
  line-height: 1.2;
}

.ef-card-price span {
  font-size: 11px;
  font-weight: 500;
  color: var(--ef-text-muted);
}

/* B2B Multi-tier Pricing Preview */
.ef-card-tiers {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ef-text-muted);
  margin-top: 4px;
  background-color: var(--ef-bg-body);
  padding: 4px 6px;
  border-radius: 3px;
}

.ef-card-tiers span strong {
  color: var(--ef-text-main);
}

/* Card Button */
.ef-card-btn {
  width: 100%;
  background-color: var(--ef-primary);
  color: var(--ef-white);
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--ef-border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--ef-transition);
}

.ef-card-btn:hover {
  background-color: var(--ef-accent);
}

.ef-card-btn svg {
  width: 14px;
  height: 14px;
}

/* List view for category grid */
.ef-products-grid.ef-list-view {
  grid-template-columns: 1fr;
  gap: 15px;
}

.ef-products-grid.ef-list-view .ef-product-card {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
}

.ef-products-grid.ef-list-view .ef-card-img-link {
  height: 100px;
  width: 100px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.ef-products-grid.ef-list-view .ef-card-info {
  flex: 1;
}

.ef-products-grid.ef-list-view .ef-card-title {
  height: auto;
  -webkit-line-clamp: 1;
}

.ef-products-grid.ef-list-view .ef-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  width: 200px;
  flex-shrink: 0;
  border-left: 1px solid var(--ef-border-color);
  padding-left: 20px;
}

.ef-products-grid.ef-list-view .ef-card-pricing {
  margin-top: 0;
  margin-bottom: 8px;
}

.ef-products-grid.ef-list-view .ef-card-btn {
  width: auto;
  padding: 8px 24px;
}

/* ==========================================================================
   7. Why Choose Us Section
   ========================================================================== */
.ef-why-section {
  padding: 40px 0;
  background-color: var(--ef-primary);
  color: var(--ef-white);
  border-bottom: 4px solid var(--ef-accent);
}

.ef-why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.ef-why-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ef-why-icon {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--ef-neon-glow);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.ef-why-icon svg {
  width: 24px;
  height: 24px;
}

.ef-why-title {
  font-family: var(--ef-font-heading);
  font-size: 13.5px;
  font-weight: 700;
}

.ef-why-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* ==========================================================================
   8. Brand Scrolling Bar
   ========================================================================== */
.ef-brands-section {
  padding: 30px 0;
  background-color: var(--ef-white);
  border-bottom: 1px solid var(--ef-border-color);
}

.ef-brands-scroller {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  padding: 10px 0;
}

.ef-brands-scroller::-webkit-scrollbar {
  display: none;
}

.ef-brand-logo-img {
  max-height: 32px;
  opacity: 0.55;
  transition: var(--ef-transition);
  cursor: pointer;
  flex-shrink: 0;
}

.ef-brand-logo-img:hover {
  opacity: 1;
}

/* ==========================================================================
   9. Newsletter & Trust Banner
   ========================================================================== */
.ef-newsletter {
  background: linear-gradient(135deg, var(--ef-primary) 0%, var(--ef-primary-light) 100%);
  color: var(--ef-white);
  padding: 40px 0;
}

.ef-newsletter .ef-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
}

.ef-newsletter-heading {
  font-family: var(--ef-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ef-newsletter-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
}

.ef-newsletter-form {
  display: flex;
  gap: 10px;
}

.ef-newsletter-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--ef-border-radius);
  padding: 12px 16px;
  color: var(--ef-white);
  font-size: 13px;
  transition: var(--ef-transition);
}

.ef-newsletter-input:focus {
  border-color: var(--ef-neon-glow);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.ef-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ef-newsletter-btn {
  background-color: var(--ef-accent);
  color: var(--ef-white);
  padding: 0 24px;
  border-radius: var(--ef-border-radius);
  font-weight: 700;
  font-family: var(--ef-font-heading);
  transition: var(--ef-transition);
}

.ef-newsletter-btn:hover {
  background-color: var(--ef-accent-hover);
}

/* ==========================================================================
   10. Footer Section (.ef-footer)
   ========================================================================== */
.ef-footer {
  background-color: var(--ef-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px 0;
  border-top: 3px solid var(--ef-accent);
  font-size: 12.5px;
}

.ef-footer-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.9fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ef-footer-col-title {
  font-family: var(--ef-font-heading);
  color: var(--ef-white);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ef-footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--ef-accent);
}

.ef-footer-about {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ef-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ef-footer-logo .ef-logo-icon {
  background-color: transparent;
  width: 82px;
  height: 82px;
}

.ef-footer-logo-title {
  font-family: var(--ef-font-heading);
  font-weight: 800;
  color: var(--ef-white);
  font-size: 18px;
}

.ef-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ef-footer-links a {
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ef-footer-links a:hover {
  color: var(--ef-white);
  transform: translateX(3px);
}

.ef-footer-links a::before {
  content: '›';
  font-size: 16px;
  line-height: 1;
  color: var(--ef-accent);
}

.ef-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ef-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ef-footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--ef-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.ef-footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.ef-footer-social-link {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--ef-transition);
}

.ef-footer-social-link:hover {
  background-color: var(--ef-accent);
  color: var(--ef-white);
  transform: translateY(-2px);
}

.ef-footer-social-link svg {
  width: 16px;
  height: 16px;
}

.ef-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.ef-footer-payments {
  display: flex;
  gap: 8px;
}

.ef-footer-payments svg {
  height: 22px;
  width: auto;
}

/* ==========================================================================
   11. Breadcrumbs Widget
   ========================================================================== */
.ef-breadcrumbs {
  background-color: var(--ef-bg-card);
  padding: 12px 0;
  border-bottom: 1px solid var(--ef-border-color);
  font-size: 12px;
}

.ef-breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ef-text-muted);
}

.ef-breadcrumbs-item a {
  color: var(--ef-text-muted);
}

.ef-breadcrumbs-item a:hover {
  color: var(--ef-accent);
}

.ef-breadcrumbs-item::after {
  content: '/';
  margin-left: 6px;
  color: var(--ef-text-light);
}

.ef-breadcrumbs-item:last-child {
  color: var(--ef-primary);
  font-weight: 600;
}

.ef-breadcrumbs-item:last-child::after {
  display: none;
}

/* ==========================================================================
   12. Category Page Split Layout
   ========================================================================== */
.ef-category-layout {
  padding: 30px 0;
}

.ef-category-layout .ef-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

/* 12.1 Sidebar Filter widget */
.ef-sidebar-filter {
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 20px;
  position: sticky;
  top: 150px;
  box-shadow: var(--ef-shadow-sm);
}

.ef-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ef-border-color);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.ef-filter-title {
  font-family: var(--ef-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ef-primary);
}

.ef-clear-filters-btn {
  font-size: 11px;
  color: var(--ef-accent);
  font-weight: 600;
}

.ef-clear-filters-btn:hover {
  text-decoration: underline;
}

.ef-filter-section {
  border-bottom: 1px solid var(--ef-bg-light);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.ef-filter-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.ef-filter-section-title {
  font-family: var(--ef-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ef-filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding-right: 4px;
}

.ef-filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ef-text-main);
  cursor: pointer;
}

.ef-filter-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--ef-accent);
}

.ef-filter-item span {
  font-size: 11px;
  color: var(--ef-text-muted);
  margin-left: auto;
}

/* Custom Search inside filter */
.ef-filter-search {
  position: relative;
  margin-bottom: 10px;
}

.ef-filter-search-input {
  width: 100%;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-sm);
  background-color: var(--ef-bg-body);
}

/* Custom price range slider wrapper */
.ef-price-range-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.ef-price-range-inputs input {
  width: 100%;
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-sm);
  padding: 5px 8px;
  font-size: 11px;
  text-align: center;
}

.ef-filter-apply-btn {
  width: 100%;
  margin-top: 12px;
  background-color: var(--ef-accent);
  color: var(--ef-white);
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--ef-border-radius-sm);
  transition: var(--ef-transition);
}

.ef-filter-apply-btn:hover {
  background-color: var(--ef-accent-hover);
}

/* 12.2 Right Area Category toolbar */
.ef-category-header-banner {
  background-color: var(--ef-primary);
  background-image: linear-gradient(135deg, var(--ef-primary) 50%, var(--ef-primary-light) 100%);
  color: var(--ef-white);
  border-radius: var(--ef-border-radius);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.ef-category-banner-title {
  font-family: var(--ef-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ef-category-banner-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
  line-height: 1.5;
}

.ef-toolbar {
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--ef-shadow-sm);
}

.ef-toolbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12.5px;
}

.ef-products-count strong {
  color: var(--ef-primary);
}

.ef-toolbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ef-sort-select {
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-sm);
  padding: 5px 10px;
  font-size: 12.5px;
  background-color: var(--ef-white);
}

.ef-view-toggles {
  display: flex;
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-sm);
  overflow: hidden;
}

.ef-view-btn {
  padding: 6px 10px;
  background-color: var(--ef-white);
  color: var(--ef-text-muted);
  display: flex;
  align-items: center;
  transition: var(--ef-transition);
}

.ef-view-btn.active {
  background-color: var(--ef-bg-light);
  color: var(--ef-primary);
}

.ef-view-btn svg {
  width: 14px;
  height: 14px;
}

/* Pagination */
.ef-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.ef-pagination-item {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-sm);
  background-color: var(--ef-white);
  color: var(--ef-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: var(--ef-transition);
}

.ef-pagination-item:hover,
.ef-pagination-item.active {
  background-color: var(--ef-primary);
  border-color: var(--ef-primary);
  color: var(--ef-white);
}

.ef-pagination-item.disabled {
  color: var(--ef-text-light);
  pointer-events: none;
  background-color: var(--ef-bg-light);
}

/* ==========================================================================
   13. Product Detail Page Structure
   ========================================================================== */
.ef-product-detail {
  padding: 30px 0;
}

.ef-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
  padding: 30px;
  box-shadow: var(--ef-shadow-sm);
  margin-bottom: 30px;
}

/* Gallery Component */
.ef-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ef-gallery-main {
  height: 380px;
  background-color: var(--ef-bg-body);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ef-gallery-main svg {
  max-width: 70%;
  max-height: 70%;
}

.ef-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ef-gallery-thumb {
  height: 80px;
  border: 2px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  background-color: var(--ef-bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ef-transition);
}

.ef-gallery-thumb:hover,
.ef-gallery-thumb.active {
  border-color: var(--ef-accent);
  background-color: var(--ef-white);
}

.ef-gallery-thumb svg {
  max-width: 60%;
  max-height: 60%;
}

/* Product Meta Columns */
.ef-detail-meta {
  display: flex;
  flex-direction: column;
}

.ef-detail-brand {
  font-family: var(--ef-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ef-accent);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.ef-detail-title {
  font-family: var(--ef-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--ef-primary);
  line-height: 1.25;
  margin-bottom: 10px;
}

.ef-detail-part-row {
  display: flex;
  gap: 20px;
  font-size: 12.5px;
  color: var(--ef-text-muted);
  border-bottom: 1px solid var(--ef-border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.ef-detail-part-row span strong {
  color: var(--ef-text-main);
  font-family: monospace;
}

/* Stock Status bar */
.ef-detail-stock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.ef-detail-stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--ef-success);
}

.ef-detail-stock-dot.low {
  background-color: var(--ef-warning);
}

.ef-detail-stock-dot.out {
  background-color: var(--ef-error);
}

/* Price breaks table (B2B Volume discounts) */
.ef-detail-price-section {
  background-color: var(--ef-bg-body);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 16px;
  margin-bottom: 24px;
}

.ef-detail-price-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ef-text-muted);
  margin-bottom: 8px;
}

.ef-price-breaks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.ef-price-breaks-table th,
.ef-price-breaks-table td {
  padding: 6px 12px;
}

.ef-price-breaks-table th {
  color: var(--ef-text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--ef-border-color);
}

.ef-price-breaks-table tr:hover td {
  background-color: rgba(0, 94, 184, 0.05);
}

.ef-price-breaks-table td strong {
  color: var(--ef-accent);
}

/* Purchase Actions Box */
.ef-purchase-actions {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.ef-qty-selector {
  display: flex;
  border: 2px solid var(--ef-primary);
  border-radius: var(--ef-border-radius);
  overflow: hidden;
  height: 44px;
}

.ef-qty-btn {
  width: 30px;
  background-color: var(--ef-white);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-qty-btn:hover {
  background-color: var(--ef-bg-light);
}

.ef-qty-input {
  flex: 1;
  border: none;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.ef-add-to-cart-btn {
  background-color: var(--ef-accent);
  color: var(--ef-white);
  font-family: var(--ef-font-heading);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--ef-border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--ef-transition);
  height: 44px;
}

.ef-add-to-cart-btn:hover {
  background-color: var(--ef-accent-hover);
}

.ef-add-to-cart-btn svg {
  width: 18px;
  height: 18px;
}

.ef-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 24px;
}

.ef-buy-now-btn,
.ef-rfq-btn {
  padding: 10px;
  border-radius: var(--ef-border-radius);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  transition: var(--ef-transition);
}

.ef-buy-now-btn {
  background-color: var(--ef-primary);
  color: var(--ef-white);
}

.ef-buy-now-btn:hover {
  background-color: var(--ef-primary-light);
}

.ef-rfq-btn {
  background-color: var(--ef-white);
  border: 1.5px dashed var(--ef-primary);
  color: var(--ef-primary);
}

.ef-rfq-btn:hover {
  background-color: var(--ef-bg-light);
}

/* Trust block badge */
.ef-detail-trust-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--ef-border-color);
  padding-top: 20px;
}

.ef-detail-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ef-text-muted);
}

.ef-detail-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--ef-accent);
}

/* Tabs Panel Component */
.ef-tabs-section {
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
  overflow: hidden;
  box-shadow: var(--ef-shadow-sm);
  margin-bottom: 40px;
}

.ef-tabs-nav {
  display: flex;
  background-color: var(--ef-bg-light);
  border-bottom: 1px solid var(--ef-border-color);
}

.ef-tab-btn {
  padding: 15px 24px;
  font-family: var(--ef-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ef-text-muted);
  border-right: 1px solid var(--ef-border-color);
  background-color: transparent;
  transition: var(--ef-transition);
  position: relative;
}

.ef-tab-btn:hover {
  color: var(--ef-primary);
  background-color: var(--ef-white);
}

.ef-tab-btn.active {
  color: var(--ef-accent);
  background-color: var(--ef-white);
  border-bottom: 2px solid var(--ef-accent);
}

.ef-tab-panel {
  padding: 24px;
  display: none;
}

.ef-tab-panel.active {
  display: block;
}

/* Tab descriptions */
.ef-tab-desc-content {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ef-text-main);
}

.ef-tab-desc-content p {
  margin-bottom: 12px;
}

.ef-tab-desc-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Specifications Table */
.ef-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ef-specs-table tr {
  border-bottom: 1px solid var(--ef-border-color);
}

.ef-specs-table tr:last-child {
  border-bottom: none;
}

.ef-specs-table td {
  padding: 10px 16px;
}

.ef-specs-label {
  font-weight: 600;
  color: var(--ef-primary);
  width: 30%;
  background-color: var(--ef-bg-body);
}

.ef-specs-value {
  color: var(--ef-text-main);
}

/* Datasheet layout wrapper */
.ef-datasheet-section {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--ef-bg-body);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 20px;
}

.ef-datasheet-icon {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--ef-error);
  padding: 12px;
  border-radius: var(--ef-border-radius);
}

.ef-datasheet-icon svg {
  width: 32px;
  height: 32px;
}

.ef-datasheet-info h4 {
  font-family: var(--ef-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 4px;
}

.ef-datasheet-info p {
  font-size: 11.5px;
  color: var(--ef-text-muted);
}

.ef-datasheet-download-btn {
  background-color: var(--ef-primary);
  color: var(--ef-white);
  padding: 10px 20px;
  border-radius: var(--ef-border-radius);
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  transition: var(--ef-transition);
}

.ef-datasheet-download-btn:hover {
  background-color: var(--ef-primary-light);
}

/* ==========================================================================
   14. About & Contact Pages
   ========================================================================== */
.ef-page-hero {
  background-color: var(--ef-primary);
  color: var(--ef-white);
  padding: 40px 0;
  text-align: center;
}

.ef-page-title {
  font-family: var(--ef-font-heading);
  font-size: 2.25rem;
  font-weight: 800;
}

.ef-page-section {
  padding: 50px 0;
}

.ef-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ef-about-text h3 {
  font-family: var(--ef-font-heading);
  font-size: 1.5rem;
  color: var(--ef-primary);
  margin-bottom: 12px;
}

.ef-about-text p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ef-text-main);
  margin-bottom: 16px;
}

/* Certification stats grid */
.ef-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.ef-cert-card {
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--ef-shadow-sm);
}

.ef-cert-badge-logo {
  color: var(--ef-accent);
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 800;
}

.ef-cert-card h4 {
  font-family: var(--ef-font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 4px;
}

.ef-cert-card p {
  font-size: 10px;
  color: var(--ef-text-muted);
}

/* Contact RFQ/BOM form container */
.ef-contact-wrapper {
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
  padding: 30px;
  box-shadow: var(--ef-shadow-sm);
}

.ef-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.ef-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ef-form-group.full-width {
  grid-column: span 2;
}

.ef-form-label {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ef-primary);
}

.ef-form-input,
.ef-form-select,
.ef-form-textarea {
  border: 1.5px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 10px 14px;
  font-size: 13px;
  transition: var(--ef-transition);
}

.ef-form-input:focus,
.ef-form-select:focus,
.ef-form-textarea:focus {
  border-color: var(--ef-accent);
  box-shadow: 0 0 8px rgba(0, 94, 184, 0.15);
}

.ef-form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* File BOM uploader style */
.ef-bom-upload-zone {
  border: 2px dashed var(--ef-accent);
  background-color: rgba(0, 94, 184, 0.02);
  border-radius: var(--ef-border-radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--ef-transition);
}

.ef-bom-upload-zone:hover {
  background-color: rgba(0, 94, 184, 0.05);
}

.ef-bom-upload-icon {
  color: var(--ef-accent);
  margin-bottom: 8px;
}

.ef-bom-upload-icon svg {
  width: 32px;
  height: 32px;
  margin: 0 auto;
}

.ef-bom-upload-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ef-primary);
  margin-bottom: 4px;
}

.ef-bom-upload-desc {
  font-size: 11px;
  color: var(--ef-text-muted);
}

.ef-form-submit-btn {
  background-color: var(--ef-accent);
  color: var(--ef-white);
  padding: 12px 24px;
  border-radius: var(--ef-border-radius);
  font-weight: 700;
  font-family: var(--ef-font-heading);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--ef-transition);
}

.ef-form-submit-btn:hover {
  background-color: var(--ef-accent-hover);
}

.ef-contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ef-contact-card {
  display: flex;
  gap: 15px;
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 20px;
  box-shadow: var(--ef-shadow-sm);
}

.ef-contact-card-icon {
  background-color: rgba(0, 94, 184, 0.1);
  color: var(--ef-accent);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ef-contact-card-icon svg {
  width: 20px;
  height: 20px;
}

.ef-contact-card-info h4 {
  font-family: var(--ef-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 4px;
}

.ef-contact-card-info p {
  font-size: 12.5px;
  color: var(--ef-text-muted);
  line-height: 1.5;
}

.ef-contact-card-info a {
  font-weight: 600;
}

/* ==========================================================================
   15. Toast Notification System & Quick Order Modal
   ========================================================================== */
.ef-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
}

.ef-toast {
  background-color: var(--ef-primary-dark);
  color: var(--ef-white);
  padding: 12px 18px;
  border-radius: var(--ef-border-radius);
  box-shadow: var(--ef-shadow-lg);
  border-left: 4px solid var(--ef-accent);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ef-toast.success {
  border-left-color: var(--ef-success);
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.ef-toast svg {
  width: 18px;
  height: 18px;
  color: var(--ef-neon-glow);
  flex-shrink: 0;
}

/* Modal box */
.ef-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 16, 33, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.ef-modal {
  background-color: var(--ef-white);
  border-radius: var(--ef-border-radius-lg);
  box-shadow: var(--ef-shadow-lg);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  animation: zoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ef-modal-header {
  background-color: var(--ef-primary);
  color: var(--ef-white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ef-modal-title {
  font-family: var(--ef-font-heading);
  font-size: 15px;
  font-weight: 700;
}

.ef-modal-close-btn {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  transition: var(--ef-transition);
}

.ef-modal-close-btn:hover {
  color: var(--ef-white);
}

.ef-modal-body {
  padding: 24px;
}

/* Quick order layout */
.ef-quick-order-row {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.ef-quick-order-row input {
  border: 1.5px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-sm);
  padding: 8px 12px;
  font-size: 12.5px;
}

.ef-quick-order-row select {
  border: 1.5px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-sm);
  padding: 8px;
  font-size: 12px;
}

.ef-quick-order-remove-btn {
  color: var(--ef-error);
  font-size: 16px;
}

.ef-quick-order-add-line-btn {
  color: var(--ef-accent);
  font-weight: 600;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.ef-quick-order-add-line-btn:hover {
  text-decoration: underline;
}

.ef-quick-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--ef-border-color);
  padding-top: 16px;
}

.ef-btn-cancel,
.ef-btn-submit {
  padding: 10px 20px;
  font-weight: 700;
  border-radius: var(--ef-border-radius);
  font-size: 12.5px;
}

.ef-btn-cancel {
  background-color: var(--ef-bg-light);
  color: var(--ef-text-main);
}

.ef-btn-cancel:hover {
  background-color: var(--ef-border-color);
}

.ef-btn-submit {
  background-color: var(--ef-accent);
  color: var(--ef-white);
}

.ef-btn-submit:hover {
  background-color: var(--ef-accent-hover);
}

/* ==========================================================================
   16. Responsive Breakpoints (Mobile-First Setup)
   ========================================================================== */

/* Up to Tablet Port (1024px) */
@media (max-width: 1024px) {
  .ef-main-header .ef-container {
    grid-template-columns: auto 1fr;
    gap: 15px;
  }

  .ef-header-actions {
    grid-column: span 2;
    justify-content: space-between;
    border-top: 1px solid var(--ef-border-color);
    padding-top: 10px;
  }

  .ef-nav-bar .ef-container {
    position: relative;
  }

  /* Mobile menu toggle display */
  .ef-hamburger {
    display: flex;
  }

  .ef-nav-group {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--ef-primary);
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--ef-shadow-lg);
    display: none;
    z-index: 90;
  }

  .ef-nav-group.active {
    display: flex;
  }

  .ef-nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .ef-nav-link {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .ef-nav-dropdown {
    position: static;
    background-color: var(--ef-primary-light);
    color: var(--ef-white);
    box-shadow: none;
    border: none;
  }

  .ef-nav-dropdown-item a {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .ef-nav-phone {
    padding: 12px 20px;
  }

  .ef-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ef-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ef-why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ef-category-layout .ef-container {
    grid-template-columns: 1fr;
  }

  .ef-sidebar-filter {
    position: static;
    box-shadow: none;
    margin-bottom: 20px;
  }

  .ef-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ef-gallery-main {
    height: 300px;
  }
}

/* Up to Mobile Port (768px) */
@media (max-width: 768px) {
  .ef-topbar {
    display: none;
    /* Hide topbar on mobile to clean up space */
  }

  .ef-search-container {
    grid-column: span 2;
    order: 3;
  }

  .ef-main-header .ef-container {
    grid-template-columns: 1fr auto;
  }

  .ef-hero .ef-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .ef-hero-content {
    margin: 0 auto;
  }

  .ef-hero-badge {
    justify-content: center;
  }

  .ef-hero-title {
    font-size: 2.25rem;
  }

  .ef-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .ef-hero-visual {
    order: -1;
    margin-bottom: 20px;
  }

  /* Scale down 3D Board scene on mobile */
  .ef-scene-3d {
    width: 280px;
    height: 280px;
    perspective: 800px;
  }

  .ef-pcb-board {
    width: 240px;
    height: 240px;
    transform: rotateX(55deg) rotateZ(-45deg) translate(0px, 0px);
  }

  @keyframes float-pcb-3d {
    0% {
      transform: rotateX(55deg) rotateZ(-45deg) translate(0px, 0px) translateZ(0);
    }

    50% {
      transform: rotateX(55deg) rotateZ(-45deg) translate(0px, 0px) translateZ(8px);
    }

    100% {
      transform: rotateX(55deg) rotateZ(-45deg) translate(0px, 0px) translateZ(0);
    }
  }

  .ef-chip-socket-glow {
    top: 55px;
    left: 55px;
    width: 130px;
    height: 130px;
  }

  .ef-microchip-3d {
    top: 60px;
    left: 60px;
    width: 120px;
    height: 120px;
  }

  .ef-chip-core-3d {
    width: 70px;
    height: 70px;
  }

  .ef-logo-icon-3d {
    font-size: 20px;
  }

  .ef-logo-brand-3d {
    font-size: 7px;
  }

  .ef-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ef-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ef-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ef-newsletter .ef-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ef-newsletter-form {
    flex-direction: column;
  }

  .ef-footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ef-grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ef-form-grid {
    grid-template-columns: 1fr;
  }

  .ef-form-group.full-width {
    grid-column: span 1;
  }

  .ef-gallery-main {
    height: 250px;
  }

  .ef-purchase-actions {
    grid-template-columns: 1fr;
  }

  .ef-qty-selector {
    width: 120px;
    margin: 0 auto;
  }
}

/* Extra Small Screens (576px) */
@media (max-width: 576px) {
  .ef-search-category {
    display: none;
    /* Hide category selector inside search box to fit input */
  }
}

/* Small Screens (480px) */
@media (max-width: 480px) {
  .ef-hero-title {
    font-size: 1.8rem;
  }

  .ef-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ef-products-grid {
    grid-template-columns: 1fr;
  }

  .ef-why-grid {
    grid-template-columns: 1fr;
  }

  .ef-secondary-actions {
    grid-template-columns: 1fr;
  }

  /* Micro scaling for very small screens */
  .ef-scene-3d {
    width: 220px;
    height: 220px;
    perspective: 600px;
  }

  .ef-pcb-board {
    width: 180px;
    height: 180px;
  }

  .ef-chip-socket-glow {
    top: 40px;
    left: 40px;
    width: 100px;
    height: 100px;
  }

  .ef-microchip-3d {
    top: 45px;
    left: 45px;
    width: 90px;
    height: 90px;
  }

  .ef-chip-core-3d {
    width: 50px;
    height: 50px;
  }

  .ef-logo-icon-3d {
    font-size: 16px;
  }

  .ef-logo-brand-3d {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
}

/* ==========================================================================
   17. Shopping Cart Slide-out Drawer (.ef-cart-drawer)
   ========================================================================== */
.ef-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 16, 33, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  display: none;
}

.ef-cart-overlay.active {
  display: block;
}

.ef-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100%;
  background-color: var(--ef-white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.ef-cart-drawer.active {
  transform: translateX(0);
}

.ef-drawer-header {
  background-color: var(--ef-primary);
  color: var(--ef-white);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ef-drawer-title {
  font-family: var(--ef-font-heading);
  font-size: 15px;
  font-weight: 700;
}

.ef-drawer-close-btn {
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  transition: var(--ef-transition);
}

.ef-drawer-close-btn:hover {
  color: var(--ef-white);
}

.ef-drawer-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ef-drawer-empty {
  text-align: center;
  color: var(--ef-text-muted);
  margin-top: 50px;
  font-size: 13.5px;
}

.ef-drawer-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px auto;
  color: var(--ef-text-light);
}

.ef-drawer-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--ef-border-color);
  padding-bottom: 12px;
}

.ef-drawer-item-img {
  width: 50px;
  height: 50px;
  background-color: var(--ef-bg-body);
  border-radius: var(--ef-border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-drawer-item-img svg {
  max-width: 80%;
  max-height: 80%;
}

.ef-drawer-item-info {
  display: flex;
  flex-direction: column;
}

.ef-drawer-item-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ef-primary);
  font-family: monospace;
}

.ef-drawer-item-desc {
  font-size: 11.5px;
  color: var(--ef-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.ef-drawer-item-meta {
  font-size: 11px;
  color: var(--ef-accent);
  margin-top: 2px;
}

.ef-drawer-item-price {
  font-weight: 700;
  font-size: 13px;
  color: var(--ef-text-main);
  text-align: right;
}

.ef-drawer-footer {
  border-top: 1px solid var(--ef-border-color);
  padding: 20px;
  background-color: var(--ef-bg-body);
}

.ef-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 15px;
  color: var(--ef-primary);
  margin-bottom: 16px;
}

.ef-drawer-subtotal span:last-child {
  color: var(--ef-accent);
}

.ef-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ef-drawer-checkout-btn,
.ef-drawer-cart-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--ef-border-radius);
  font-weight: 700;
  text-align: center;
  font-size: 13px;
  transition: var(--ef-transition);
}

.ef-drawer-checkout-btn {
  background-color: var(--ef-accent);
  color: var(--ef-white);
}

.ef-drawer-checkout-btn:hover {
  background-color: var(--ef-accent-hover);
}

.ef-drawer-cart-btn {
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  color: var(--ef-primary);
}

.ef-drawer-cart-btn:hover {
  background-color: var(--ef-bg-light);
}

/* ==========================================================================
   19. 3D Isometric Microchip PCB Visual
   ========================================================================== */
.ef-scene-3d {
  width: 380px;
  height: 380px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ef-pcb-board {
  width: 320px;
  height: 320px;
  background-color: #0b1a30;
  /* Dark B2B Blue/Green PCB color */
  border: 4px solid #142c4c;
  border-radius: 12px;
  position: relative;
  transform: rotateX(55deg) rotateZ(-45deg) translate(30px, -30px);
  transform-style: preserve-3d;
  box-shadow:
    -1px 1px 0px #040c17,
    -2px 2px 0px #040c17,
    -3px 3px 0px #040c17,
    -4px 4px 0px #040c17,
    -5px 5px 0px #040c17,
    -6px 6px 0px #040c17,
    -12px 12px 30px rgba(0, 0, 0, 0.6);
  animation: float-pcb-3d 6s ease-in-out infinite;
}

@keyframes float-pcb-3d {
  0% {
    transform: rotateX(55deg) rotateZ(-45deg) translate(30px, -30px) translateZ(0);
  }

  50% {
    transform: rotateX(55deg) rotateZ(-45deg) translate(30px, -30px) translateZ(10px);
  }

  100% {
    transform: rotateX(55deg) rotateZ(-45deg) translate(30px, -30px) translateZ(0);
  }
}

/* Traces SVG */
.ef-pcb-traces-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(1px);
}

/* Chip Socket Neon Outline */
.ef-chip-socket-glow {
  position: absolute;
  top: 75px;
  left: 75px;
  width: 170px;
  height: 170px;
  border: 3px solid var(--ef-neon-glow);
  box-shadow:
    0 0 15px rgba(0, 210, 255, 0.6),
    inset 0 0 15px rgba(0, 210, 255, 0.4);
  border-radius: 8px;
  transform: translateZ(2px);
  animation: pulse-glow-3d 2s infinite ease-in-out;
}

@keyframes pulse-glow-3d {

  0%,
  100% {
    opacity: 0.6;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6), inset 0 0 10px rgba(0, 210, 255, 0.4);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.9), inset 0 0 15px rgba(0, 210, 255, 0.7);
  }
}

/* 3D Elevated Microchip */
.ef-microchip-3d {
  position: absolute;
  top: 80px;
  left: 80px;
  width: 160px;
  height: 160px;
  transform: translateZ(20px);
  transform-style: preserve-3d;
  transition: var(--ef-transition);
}

.ef-microchip-3d:hover {
  transform: translateZ(32px);
  /* Lift higher on hover */
}

/* Chip Top Surface */
.ef-chip-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1b263b;
  /* Matte black/grey plastic body */
  border: 1px solid #2e3e5c;
  border-radius: 6px;
  transform: translateZ(8px);
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

/* 3D chip side walls */
.ef-chip-side {
  position: absolute;
  background-color: #0f1624;
  /* Darker shaded color for 3D sides */
}

.side-front {
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  transform: rotateX(-90deg);
  transform-origin: bottom;
}

.side-right {
  top: 0;
  right: -8px;
  width: 8px;
  height: 100%;
  transform: rotateY(90deg);
  transform-origin: right;
}

/* Screws in the corners */
.ef-chip-screw {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #cbd5e1 30%, #475569 100%);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.screw-tl {
  top: 6px;
  left: 6px;
}

.screw-tr {
  top: 6px;
  right: 6px;
}

.screw-bl {
  bottom: 6px;
  left: 6px;
}

.screw-br {
  bottom: 6px;
  right: 6px;
}

/* Glowing Core */
.ef-chip-core-3d {
  width: 90px;
  height: 90px;
  background-color: #0d1e36;
  border: 2px solid var(--ef-neon-glow);
  border-radius: 6px;
  box-shadow:
    0 0 15px rgba(0, 210, 255, 0.5),
    inset 0 0 10px rgba(0, 210, 255, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* AS Logo text & styling */
.ef-chip-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ef-logo-icon-3d {
  font-family: var(--ef-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--ef-white);
  line-height: 1;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.8), 0 0 20px rgba(0, 210, 255, 0.6);
  letter-spacing: -1px;
}

.ef-logo-brand-3d {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* SMD components scattered on the PCB */
.ef-smd-resistor {
  position: absolute;
  width: 14px;
  height: 8px;
  background-color: #334155;
  /* Charcoal body */
  border-left: 2px solid #cbd5e1;
  /* Silver contacts */
  border-right: 2px solid #cbd5e1;
  transform: translateZ(2px);
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.5);
}

.smd-1 {
  top: 30px;
  left: 40px;
  transform: rotate(15deg) translateZ(2px);
}

.smd-2 {
  bottom: 40px;
  right: 30px;
  transform: rotate(-35deg) translateZ(2px);
}

.ef-smd-capacitor {
  position: absolute;
  width: 12px;
  height: 6px;
  background-color: #b45309;
  /* Brown ceramic body */
  border-left: 2.5px solid #cbd5e1;
  border-right: 2.5px solid #cbd5e1;
  transform: translateZ(2.5px);
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.5);
}

.smd-3 {
  top: 40px;
  right: 80px;
  transform: rotate(90deg) translateZ(2.5px);
}

.smd-4 {
  bottom: 80px;
  left: 35px;
  transform: rotate(45deg) translateZ(2.5px);
}

.ef-smd-ic {
  position: absolute;
  width: 24px;
  height: 16px;
  background-color: #1e293b;
  border-radius: 1px;
  transform: translateZ(3px);
  box-shadow:
    -0.5px 0.5px 0px #0f172a,
    -1px 1px 0px #0f172a,
    -2px 2px 5px rgba(0, 0, 0, 0.5);
}

.smd-5 {
  top: 220px;
  left: 30px;
  transform: rotate(-10deg) translateZ(3px);
}

/* ==========================================================================
   20. Shopping Cart Drawer Controls & Small Screen Responsive Adjustments
   ========================================================================== */
.ef-drawer-qty-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.ef-drawer-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-sm);
  overflow: hidden;
  height: 26px;
  background-color: var(--ef-white);
}

.ef-drawer-qty-btn {
  width: 24px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ef-bg-light);
  border: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--ef-primary);
  cursor: pointer;
  transition: var(--ef-transition);
}

.ef-drawer-qty-btn:hover {
  background-color: var(--ef-border-color);
}

.ef-drawer-qty-input {
  width: 32px;
  height: 26px;
  text-align: center;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--ef-text-main);
  background-color: var(--ef-white);
  -moz-appearance: textfield;
}

.ef-drawer-qty-input::-webkit-outer-spin-button,
.ef-drawer-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ef-drawer-remove-btn {
  color: var(--ef-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  transition: var(--ef-transition);
}

.ef-drawer-remove-btn:hover {
  color: var(--ef-error);
  text-decoration: underline;
}

/* Specific scaling for small mobile viewports (320px, 375px) */
@media (max-width: 375px) {
  .ef-header-actions {
    gap: 8px !important;
  }

  .ef-header-action-btn {
    font-size: 9px !important;
    gap: 2px !important;
  }

  .ef-header-action-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .ef-cart-badge {
    top: -6px !important;
    right: 0px !important;
    height: 14px !important;
    min-width: 14px !important;
    font-size: 8px !important;
  }

  .ef-categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 320px) {
  .ef-header-actions {
    gap: 4px !important;
  }

  .ef-header-action-btn {
    font-size: 8px !important;
  }
}

/* ==========================================================================
   21. FAQ Accordion Section
   ========================================================================== */
.ef-faq-container {
  margin-top: 30px;
  background-color: var(--ef-bg-card);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
  padding: 24px;
  box-shadow: var(--ef-shadow-sm);
}

.ef-faq-title {
  font-family: var(--ef-font-heading);
  font-size: 1.25rem;
  color: var(--ef-primary);
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--ef-bg-light);
  padding-bottom: 12px;
}

.ef-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ef-faq-item {
  border-bottom: 1px solid var(--ef-border-color);
  padding-bottom: 12px;
}

.ef-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ef-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 0;
  text-align: left;
  font-family: var(--ef-font-body);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ef-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--ef-transition);
}

.ef-faq-question:hover {
  color: var(--ef-accent);
}

.ef-faq-icon {
  width: 16px;
  height: 16px;
  color: var(--ef-text-muted);
  transition: transform 0.25s ease;
}

.ef-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding-right: 24px;
}

.ef-faq-answer p {
  font-size: 12px;
  color: var(--ef-text-muted);
  line-height: 1.6;
  padding-bottom: 8px;
}

/* Active State */
.ef-faq-item.active .ef-faq-icon {
  transform: rotate(180deg);
  color: var(--ef-accent);
}

.ef-faq-item.active .ef-faq-answer {
  max-height: 200px;
  padding-top: 4px;
}
/* =========================================================
 * Product card layout stability — applies to homepage Featured,
 * shop archive, and related products via woocommerce/content-product.php
 * ========================================================= */
.ef-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.ef-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.ef-product-image-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}
.ef-product-image-wrap img,
.ef-product-image-wrap a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ef-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.ef-product-card .ef-add-to-cart,
.ef-product-card .add_to_cart_button,
.ef-product-card .ef-card-btn {
  margin-top: auto;
}

/* ==========================================================================
   17b. WooCommerce mini-cart styled to match Electrofix drawer design
   ========================================================================== */
.ef-drawer-body ul.woocommerce-mini-cart,
.ef-drawer-body ul.cart_list,
.ef-drawer-body ul.product_list_widget {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.ef-drawer-body li.woocommerce-mini-cart-item,
.ef-drawer-body li.mini_cart_item {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--ef-border-color);
  padding: 0 0 12px 0;
  margin: 0;
  list-style: none;
}
.ef-drawer-body li.mini_cart_item > a:not(.remove) {
  display: contents;
  color: var(--ef-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  font-family: monospace;
}
.ef-drawer-body li.mini_cart_item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background-color: var(--ef-bg-body);
  border-radius: var(--ef-border-radius-sm);
  padding: 4px;
  margin: 0;
  float: none;
}
.ef-drawer-body li.mini_cart_item .quantity {
  grid-column: 3;
  font-weight: 700;
  font-size: 13px;
  color: var(--ef-text-main);
  text-align: right;
  white-space: nowrap;
}
.ef-drawer-body li.mini_cart_item .quantity .amount {
  display: block;
  color: var(--ef-accent);
  font-weight: 700;
}
.ef-drawer-body li.mini_cart_item a.remove,
.ef-drawer-body li.mini_cart_item a.remove_from_cart_button {
  position: absolute;
  top: -2px;
  right: 0;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background: transparent;
  color: var(--ef-text-muted);
  font-size: 16px;
  text-decoration: none;
  font-weight: 700;
}
.ef-drawer-body li.mini_cart_item a.remove:hover {
  color: var(--ef-accent);
  background: var(--ef-bg-light);
}
.ef-drawer-body .woocommerce-mini-cart__empty-message {
  text-align: center;
  color: var(--ef-text-muted);
  margin: 50px 0 0;
  font-size: 13.5px;
}
/* Hide WC's own subtotal + buttons — our drawer footer renders them */
.ef-drawer-body p.woocommerce-mini-cart__total,
.ef-drawer-body p.woocommerce-mini-cart__buttons,
.ef-drawer-body .woocommerce-mini-cart__total,
.ef-drawer-body .woocommerce-mini-cart__buttons {
  display: none !important;
}

/* ==========================================================================
   18. Electrofix custom mini-cart (cart drawer rows)
   ========================================================================== */
.ef-drawer-body ul.ef-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ef-drawer-body .ef-mini-cart-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--ef-border-color);
  list-style: none;
}
.ef-drawer-body .ef-mini-cart-item:last-child { border-bottom: none; }
.ef-drawer-body .ef-mini-cart-thumb {
  width: 56px;
  height: 56px;
  background: var(--ef-bg-body, #f1f5f9);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ef-drawer-body .ef-mini-cart-thumb img,
.ef-drawer-body .ef-mini-cart-thumb a img {
  width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; padding: 4px;
}
.ef-drawer-body .ef-mini-cart-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ef-drawer-body .ef-mini-cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: flex-start;
}
.ef-drawer-body .ef-mini-cart-info { min-width: 0; }
.ef-drawer-body .ef-mini-cart-sku {
  font-family: monospace, ui-monospace, SFMono-Regular;
  font-weight: 700;
  font-size: 14px;
  color: var(--ef-primary, #0a1f44);
  line-height: 1.2;
}
.ef-drawer-body .ef-mini-cart-name {
  font-size: 13px;
  color: var(--ef-text-muted, #64748b);
  line-height: 1.35;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ef-drawer-body .ef-mini-cart-name a { color: inherit; text-decoration: none; }
.ef-drawer-body .ef-mini-cart-pricing { text-align: right; white-space: nowrap; }
.ef-drawer-body .ef-mini-cart-total {
  color: var(--ef-primary, #0a1f44);
  font-weight: 800;
  font-size: 15px;
}
.ef-drawer-body .ef-mini-cart-unit {
  font-size: 11px;
  color: var(--ef-text-muted, #64748b);
  margin-top: 2px;
}
.ef-drawer-body .ef-mini-cart-actions {
  display: flex; align-items: center; gap: 14px;
}
.ef-drawer-body .ef-mini-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ef-border-color, #e2e8f0);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.ef-drawer-body .ef-mini-qty-btn {
  width: 28px; height: 30px;
  background: #fff; border: none;
  color: var(--ef-text-main, #0f172a);
  font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.ef-drawer-body .ef-mini-qty-btn:hover { background: var(--ef-bg-body, #f1f5f9); }
.ef-drawer-body .ef-mini-qty-input {
  width: 38px; height: 30px;
  text-align: center; border: none;
  border-left: 1px solid var(--ef-border-color);
  border-right: 1px solid var(--ef-border-color);
  font-size: 13px; font-weight: 600;
  -moz-appearance: textfield;
  background: #fff;
}
.ef-drawer-body .ef-mini-qty-input::-webkit-outer-spin-button,
.ef-drawer-body .ef-mini-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ef-drawer-body .ef-mini-remove {
  font-size: 13px;
  color: var(--ef-text-muted, #64748b);
  text-decoration: none;
  font-weight: 500;
}
.ef-drawer-body .ef-mini-remove:hover { color: var(--ef-accent, #c0392b); }

/* Hide legacy WC mini-cart pieces if they ever render alongside */
.ef-drawer-body p.woocommerce-mini-cart__total,
.ef-drawer-body p.woocommerce-mini-cart__buttons { display: none !important; }

/* ==========================================================================
   19. Single product native WC form styled as Electrofix
   ========================================================================== */
.ef-purchase-actions form.cart.ef-cart-form {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0;
}
.ef-purchase-actions form.cart .ef-qty-selector {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ef-border-color, #e2e8f0);
  border-radius: 6px; overflow: hidden; background: #fff;
}
.ef-purchase-actions form.cart .ef-qty-selector .ef-qty-btn {
  width: 36px; height: 44px; border: none; background: #fff;
  font-size: 18px; cursor: pointer; color: var(--ef-text-main);
}
.ef-purchase-actions form.cart .ef-qty-selector .ef-qty-btn:hover { background: var(--ef-bg-body); }
.ef-purchase-actions form.cart .quantity {
  margin: 0; padding: 0; display: inline-flex;
  border-left: 1px solid var(--ef-border-color);
  border-right: 1px solid var(--ef-border-color);
}
.ef-purchase-actions form.cart .quantity label { display: none; }
.ef-purchase-actions form.cart input.qty,
.ef-purchase-actions form.cart .ef-qty-input {
  width: 56px; height: 44px; text-align: center;
  border: none; background: #fff; font-size: 15px; font-weight: 600;
  -moz-appearance: textfield;
}
.ef-purchase-actions form.cart input.qty::-webkit-outer-spin-button,
.ef-purchase-actions form.cart input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ef-purchase-actions form.cart button.single_add_to_cart_button.ef-add-to-cart-btn {
  flex: 1; min-width: 220px;
  height: 44px; padding: 0 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ef-accent, #005eb8); color: #fff;
  border: none; border-radius: 6px; cursor: pointer;
  font-weight: 700; font-size: 15px;
  text-transform: none; letter-spacing: 0;
}
.ef-purchase-actions form.cart button.single_add_to_cart_button.ef-add-to-cart-btn:hover {
  background: var(--ef-accent-dark, #004a91);
}
.ef-purchase-actions form.cart button.single_add_to_cart_button.ef-add-to-cart-btn svg {
  width: 18px; height: 18px;
}

/* ===== WooCommerce default tabs → Electrofix tab skin ===== */
.ef-tabs-section .woocommerce-tabs { padding: 0; }
.ef-tabs-section .woocommerce-tabs ul.tabs,
.ef-tabs-section .woocommerce-tabs ul.wc-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  background-color: var(--ef-bg-light);
  border-bottom: 1px solid var(--ef-border-color);
}
.ef-tabs-section .woocommerce-tabs ul.tabs li,
.ef-tabs-section .woocommerce-tabs ul.wc-tabs li {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ef-border-color);
  border-radius: 0;
  position: relative;
}
.ef-tabs-section .woocommerce-tabs ul.tabs li::before,
.ef-tabs-section .woocommerce-tabs ul.tabs li::after,
.ef-tabs-section .woocommerce-tabs ul.wc-tabs li::before,
.ef-tabs-section .woocommerce-tabs ul.wc-tabs li::after { display: none !important; content: none !important; }
.ef-tabs-section .woocommerce-tabs ul.tabs li a,
.ef-tabs-section .woocommerce-tabs ul.wc-tabs li a {
  display: block;
  padding: 15px 24px;
  font-family: var(--ef-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ef-text-muted);
  text-decoration: none;
  background: transparent;
  border: 0;
  transition: var(--ef-transition);
}
.ef-tabs-section .woocommerce-tabs ul.tabs li a:hover,
.ef-tabs-section .woocommerce-tabs ul.wc-tabs li a:hover {
  color: var(--ef-primary);
  background-color: var(--ef-white);
}
.ef-tabs-section .woocommerce-tabs ul.tabs li.active,
.ef-tabs-section .woocommerce-tabs ul.wc-tabs li.active {
  background-color: var(--ef-white);
  border-bottom: 2px solid var(--ef-accent);
  margin-bottom: -1px;
}
.ef-tabs-section .woocommerce-tabs ul.tabs li.active a,
.ef-tabs-section .woocommerce-tabs ul.wc-tabs li.active a { color: var(--ef-accent); }

.ef-tabs-section .woocommerce-Tabs-panel,
.ef-tabs-section .woocommerce-tabs .panel {
  padding: 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ef-text-main);
  background: var(--ef-white);
}
.ef-tabs-section .woocommerce-Tabs-panel > h2:first-child { display: none; }
.ef-tabs-section .woocommerce-Tabs-panel p { margin-bottom: 12px; }
.ef-tabs-section .woocommerce-Tabs-panel ul {
  list-style: disc;
  margin: 0 0 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ef-tabs-section .woocommerce-Tabs-panel strong,
.ef-tabs-section .woocommerce-Tabs-panel b { color: var(--ef-primary); }

/* ===== Cart drawer mini-cart — hard overrides (v2) =====
 * Forces the Electrofix two-column layout regardless of stale cached rules
 * or WooCommerce default markup conflicts. */
.ef-drawer-body { padding: 18px 20px !important; }
.ef-drawer-body ul.ef-mini-cart,
.ef-drawer-body ul.woocommerce-mini-cart,
.ef-drawer-body ul.cart_list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}
.ef-drawer-body li.ef-mini-cart-item,
.ef-drawer-body li.mini_cart_item,
.ef-drawer-body li.woocommerce-mini-cart-item {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: flex-start !important;
  padding: 0 0 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--ef-border-color, #e2e8f0) !important;
  list-style: none !important;
  position: relative !important;
}
.ef-drawer-body li.ef-mini-cart-item:last-child,
.ef-drawer-body li.mini_cart_item:last-child { border-bottom: none !important; }

/* Thumbnail cell */
.ef-drawer-body .ef-mini-cart-thumb {
  width: 64px !important; height: 64px !important;
  background: var(--ef-bg-body, #f1f5f9) !important;
  border-radius: 8px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  overflow: hidden !important; padding: 4px !important;
}
.ef-drawer-body .ef-mini-cart-thumb a,
.ef-drawer-body .ef-mini-cart-thumb { float: none !important; }
.ef-drawer-body .ef-mini-cart-thumb img,
.ef-drawer-body li.mini_cart_item img {
  width: 100% !important; height: 100% !important;
  max-width: 56px !important; max-height: 56px !important;
  object-fit: contain !important; display: block !important;
  margin: 0 !important; padding: 0 !important; float: none !important;
}

/* Main column */
.ef-drawer-body .ef-mini-cart-main { min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }
.ef-drawer-body .ef-mini-cart-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; gap: 10px !important; align-items: flex-start !important; }
.ef-drawer-body .ef-mini-cart-info { min-width: 0 !important; }
.ef-drawer-body .ef-mini-cart-sku { font-family: ui-monospace, SFMono-Regular, monospace !important; font-weight: 700 !important; font-size: 14px !important; color: var(--ef-primary, #0a1f44) !important; line-height: 1.2 !important; }
.ef-drawer-body .ef-mini-cart-name { font-size: 13px !important; color: var(--ef-accent, #005eb8) !important; line-height: 1.35 !important; margin-top: 2px !important; }
.ef-drawer-body .ef-mini-cart-name a { color: inherit !important; text-decoration: none !important; }
.ef-drawer-body .ef-mini-cart-pricing { text-align: right !important; white-space: nowrap !important; }
.ef-drawer-body .ef-mini-cart-total { color: var(--ef-text-main, #0f172a) !important; font-weight: 700 !important; font-size: 14px !important; }
.ef-drawer-body .ef-mini-cart-unit { font-size: 12px !important; color: var(--ef-text-muted, #64748b) !important; margin-top: 2px !important; }
.ef-drawer-body .ef-mini-cart-actions { display: flex !important; align-items: center !important; gap: 14px !important; }
.ef-drawer-body .ef-mini-qty { display: inline-flex !important; align-items: center !important; border: 1px solid var(--ef-border-color, #e2e8f0) !important; border-radius: 6px !important; overflow: hidden !important; background: #fff !important; }
.ef-drawer-body .ef-mini-qty-btn { width: 28px !important; height: 30px !important; background: #fff !important; border: none !important; color: var(--ef-text-main, #0f172a) !important; font-size: 16px !important; cursor: pointer !important; padding: 0 !important; }
.ef-drawer-body .ef-mini-qty-input { width: 42px !important; height: 30px !important; text-align: center !important; border: none !important; border-left: 1px solid var(--ef-border-color, #e2e8f0) !important; border-right: 1px solid var(--ef-border-color, #e2e8f0) !important; font-size: 13px !important; font-weight: 600 !important; background: #fff !important; padding: 0 !important; }
.ef-drawer-body .ef-mini-remove { font-size: 13px !important; color: var(--ef-accent, #005eb8) !important; text-decoration: none !important; font-weight: 500 !important; position: static !important; width: auto !important; height: auto !important; background: transparent !important; border-radius: 0 !important; }

/* Neutralize the older "display: contents" rule that breaks our custom <a> wrapper */
.ef-drawer-body .ef-mini-cart-item > a,
.ef-drawer-body .ef-mini-cart-thumb > a { display: inline-block !important; }

/* ==========================================================================
   20. Enhanced Why Choose Us Sections (B2B Distributor elements)
   ========================================================================== */

/* Trust Section */
.ef-trust-section {
  padding: 60px 0;
  background-color: var(--ef-bg-card);
  border-bottom: 1px solid var(--ef-border-color);
}
.ef-trust-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 991px) {
  .ef-trust-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.ef-trust-left h2 {
  font-family: var(--ef-font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ef-primary);
  line-height: 1.25;
  margin-bottom: 20px;
}
.ef-trust-left h2 span {
  color: var(--ef-accent);
}
.ef-trust-left p {
  font-size: 14px;
  color: var(--ef-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.ef-trust-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.ef-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: var(--ef-bg-light);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ef-primary);
}
.ef-trust-badge svg {
  width: 16px;
  height: 16px;
  color: var(--ef-success);
}
.ef-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 575px) {
  .ef-trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.ef-trust-card {
  padding: 24px;
  background-color: var(--ef-bg-light);
  border-left: 4px solid var(--ef-accent);
  border-radius: var(--ef-border-radius-sm);
  transition: var(--ef-transition);
}
.ef-trust-card:hover {
  background-color: var(--ef-bg-card);
  box-shadow: var(--ef-shadow-md);
  transform: translateY(-2px);
}
.ef-trust-card-icon {
  margin-bottom: 12px;
  color: var(--ef-accent);
}
.ef-trust-card-icon svg {
  width: 32px;
  height: 32px;
}
.ef-trust-card-title {
  font-family: var(--ef-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 8px;
}
.ef-trust-card-desc {
  font-size: 12px;
  color: var(--ef-text-muted);
  line-height: 1.5;
}

/* Statistics Section */
.ef-stats-section {
  padding: 60px 0;
  background-color: var(--ef-primary-dark);
  color: var(--ef-white);
  border-bottom: 4px solid var(--ef-accent);
  text-align: center;
}
.ef-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .ef-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .ef-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.ef-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ef-stat-number {
  font-family: var(--ef-font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--ef-neon-glow);
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.ef-stat-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}
.ef-stat-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Industries Section */
.ef-industries-section {
  padding: 70px 0;
  background-color: var(--ef-bg-body);
}
.ef-industries-section .ef-section-title {
  text-align: center;
  justify-content: center;
  margin-bottom: 40px;
  font-size: 2rem;
}
.ef-industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) {
  .ef-industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .ef-industries-grid {
    grid-template-columns: 1fr;
  }
}
.ef-industry-card {
  background-color: var(--ef-bg-card);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 30px;
  transition: var(--ef-transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ef-industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ef-shadow-lg);
  border-color: var(--ef-accent);
}
.ef-industry-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(0, 94, 184, 0.08);
  color: var(--ef-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ef-industry-icon svg {
  width: 24px;
  height: 24px;
}
.ef-industry-card:hover .ef-industry-icon {
  background-color: var(--ef-accent);
  color: var(--ef-white);
  box-shadow: 0 0 10px rgba(0, 94, 184, 0.2);
}
.ef-industry-title {
  font-family: var(--ef-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 10px;
}
.ef-industry-desc {
  font-size: 13px;
  color: var(--ef-text-muted);
  line-height: 1.5;
}

/* Timeline Section */
.ef-timeline-section {
  padding: 75px 0;
  background-color: var(--ef-bg-card);
  border-top: 1px solid var(--ef-border-color);
  border-bottom: 1px solid var(--ef-border-color);
}
.ef-timeline-section .ef-section-title {
  text-align: center;
  justify-content: center;
  margin-bottom: 50px;
  font-size: 2rem;
}
.ef-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.ef-timeline-line {
  position: absolute;
  top: 35px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background-color: var(--ef-border-color);
  z-index: 1;
}
.ef-timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ef-timeline-badge {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--ef-bg-light);
  border: 2px solid var(--ef-border-color);
  color: var(--ef-primary);
  font-family: var(--ef-font-heading);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--ef-transition);
}
.ef-timeline-step:hover .ef-timeline-badge {
  background-color: var(--ef-accent);
  border-color: var(--ef-accent);
  color: var(--ef-white);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 94, 184, 0.3);
}
.ef-timeline-title {
  font-family: var(--ef-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 8px;
}
.ef-timeline-desc {
  font-size: 12px;
  color: var(--ef-text-muted);
  line-height: 1.5;
  max-width: 220px;
}
@media (max-width: 768px) {
  .ef-timeline-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ef-timeline-line {
    display: none;
  }
  .ef-timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
  }
  .ef-timeline-badge {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .ef-timeline-desc {
    max-width: 100%;
  }
}

/* B2B CTA Section */
.ef-b2b-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ef-primary-dark) 0%, var(--ef-primary-light) 100%);
  color: var(--ef-white);
  border-bottom: 4px solid var(--ef-accent);
}
.ef-cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.ef-cta-tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ef-neon-glow);
  font-weight: 700;
  margin-bottom: 15px;
}
.ef-cta-title {
  font-family: var(--ef-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.ef-cta-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 40px;
}
.ef-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.ef-btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--ef-border-radius);
  font-weight: 700;
  font-size: 14px;
  transition: var(--ef-transition);
}
.ef-btn-premium-solid {
  background-color: var(--ef-accent);
  color: var(--ef-white) !important;
}
.ef-btn-premium-solid:hover {
  background-color: var(--ef-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 94, 184, 0.3);
}
.ef-btn-premium-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--ef-white) !important;
  background-color: transparent;
}
.ef-btn-premium-outline:hover {
  border-color: var(--ef-neon-glow);
  color: var(--ef-neon-glow) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
}
.ef-btn-premium-link {
  color: var(--ef-white) !important;
  font-size: 15px;
  font-weight: 600;
}
.ef-btn-premium-link:hover {
  color: var(--ef-neon-glow) !important;
  text-decoration: underline;
}

/* Mobile Header Actions Horizontal Scroll */
@media (max-width: 768px) {
  .ef-header-actions {
    grid-column: span 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding-bottom: 8px !important;
    padding-top: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Firefox */
  }
  .ef-header-actions::-webkit-scrollbar {
    display: none !important; /* Safari and Chrome */
  }
  .ef-header-action-btn {
    flex-shrink: 0 !important;
    font-size: 10px !important;
  }
  .ef-hamburger {
    flex-shrink: 0 !important;
  }
}

