/*
 * 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&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   1. Design System & CSS Variables
   ========================================================================== */
:root {
  /* Portal Colors */
  --ef-portal-blue: #0f5fe8;
  --ef-portal-navy: #0a2240;
  --ef-portal-blue-hover: #2563eb;
  --ef-portal-shadow: 0 10px 30px rgba(10, 34, 64, 0.08);

  /* 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;
}

/* ==========================================================================
   Global Button System (.ef-btn)
   ========================================================================== */
.ef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--ef-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
  user-select: none;
}

.ef-btn:hover {
  text-decoration: none;
}

.ef-btn-primary {
  background-color: var(--ef-accent);
  color: #ffffff;
  border-color: var(--ef-accent);
}

.ef-btn-primary:hover {
  background-color: var(--ef-accent-hover);
  border-color: var(--ef-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 94, 184, 0.35);
}

.ef-btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.ef-btn-secondary {
  background-color: transparent;
  color: var(--ef-accent);
  border-color: var(--ef-accent);
}

.ef-btn-secondary:hover {
  background-color: var(--ef-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 94, 184, 0.25);
}

.ef-btn-secondary:active {
  transform: translateY(0);
  box-shadow: none;
}

.ef-btn:disabled,
.ef-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Form Toast / Feedback Messages */
.ef-form-toast {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
}

.ef-form-toast.success {
  background-color: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.ef-form-toast.error {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}

/* 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;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 2px;
}

.ef-search-suggest-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--ef-bg-light);
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--ef-text-main);
  border-left: 3px solid transparent;
}

.ef-search-suggest-item.highlighted,
.ef-search-suggest-item:hover {
  background-color: var(--ef-bg-light);
  border-left-color: var(--ef-primary);
  text-decoration: none;
  color: var(--ef-text-main);
}

.ef-search-suggest-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: 4px;
  padding: 2px;
  flex-shrink: 0;
}

.ef-search-suggest-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ef-search-suggest-title {
  font-weight: 600;
  color: var(--ef-primary);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 3px;
}

.ef-search-suggest-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ef-text-muted);
}

.ef-search-suggest-brand-label {
  color: var(--ef-text-main);
  font-weight: 700;
  background-color: var(--ef-bg-light);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--ef-border-color);
}

.ef-search-suggest-sku,
.ef-search-suggest-mpn {
  font-family: monospace;
}

.ef-search-suggest-pricing {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.ef-search-suggest-price {
  font-weight: 700;
  color: var(--ef-accent);
  font-size: 13.5px;
}

.ef-search-suggest-price ins {
  text-decoration: none;
}

.ef-search-suggest-price del {
  font-size: 11px;
  color: var(--ef-text-muted);
  margin-right: 4px;
  font-weight: normal;
}

.ef-search-suggest-stock {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ef-search-suggest-stock.in-stock {
  background-color: #e6f7ed;
  color: #1e7e34;
}

.ef-search-suggest-stock.out-of-stock {
  background-color: #fdf2f2;
  color: #d8000c;
}

.ef-search-suggest-no-results {
  padding: 16px;
  text-align: center;
  color: var(--ef-text-muted);
  font-size: 14px;
  border-bottom: 1px solid var(--ef-border-color);
}

/* 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 !important;
}

.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-mobile-br {
  display: none;
}

.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: 30px 0;
  background-color: var(--ef-bg-body);
}

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

.ef-category-card {
  background-color: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  height: 100%;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.ef-category-card:focus-visible {
  border-color: var(--ef-accent);
  box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.3);
}

.ef-category-card:hover {
  transform: translateY(-6px);
  border-color: var(--ef-accent);
  box-shadow: 0 8px 24px rgba(0, 94, 184, 0.15), 0 0 10px rgba(0, 210, 255, 0.2);
  background-color: var(--ef-white);
}

.ef-category-img {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ef-border-radius);
  background-color: transparent;
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  margin-bottom: 12px;
}

.ef-category-card:hover .ef-category-img {
  background-color: transparent;
  box-shadow: none;
}

.ef-category-img img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ef-category-card:hover .ef-category-img img {
  transform: scale(1.08);
}

.ef-category-img svg {
  width: 90%;
  height: 90%;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ef-category-card:hover .ef-category-img svg {
  transform: scale(1.08);
}

.ef-categories-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.ef-category-name {
  font-family: var(--ef-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--ef-primary);
  transition: color 0.3s ease;
  margin-top: 4px;
}

.ef-category-card:hover .ef-category-name {
  color: var(--ef-accent);
}

.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: 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);
}

/* Laptop View (1399px) */
@media (max-width: 1399px) {
  .ef-categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 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: minmax(0, 1fr);
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
    overflow: hidden;
  }

  /* Show 3D visual on mobile */
  .ef-hero-visual {
    display: flex !important;
    margin-top: 30px;
  }

  .ef-mobile-br {
    display: block;
  }

  .ef-hero-content {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

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

  .ef-hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    word-wrap: break-word;
    hyphens: auto;
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .ef-hero-desc {
    overflow-wrap: break-word;
    word-break: break-word;
    padding: 0 4px;
  }

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

  .ef-hero-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }

  .ef-hero-stat-card {
    min-width: 0;
    overflow: hidden;
  }

  .ef-hero-stat-num {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .ef-hero-stat-lbl {
    overflow-wrap: break-word;
    word-break: break-word;
  }


  /* Scale down 3D Board scene on mobile to fit the viewport diagonal rotated */
  .ef-scene-3d {
    width: 280px;
    height: 280px;
    perspective: 800px;
    margin: 0 auto;
  }

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

  /* Hide tiny details on mobile to keep visual clean and fit boundaries */
  .ef-smd-resistor,
  .ef-smd-capacitor,
  .ef-smd-ic,
  .ef-pcb-traces-3d {
    display: none !important;
  }

  @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: 45px;
    left: 45px;
    width: 100px;
    height: 100px;
  }

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

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

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

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

  .ef-categories-grid {
    grid-template-columns: repeat(2, 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: clamp(1.4rem, 6vw, 1.8rem);
    line-height: 1.25;
  }

  .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;
    margin: 0 auto;
  }

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

  .ef-chip-socket-glow {
    top: 35px;
    left: 35px;
    width: 80px;
    height: 80px;
  }

  .ef-microchip-3d {
    top: 40px;
    left: 40px;
    width: 70px;
    height: 70px;
  }

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

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

  .ef-logo-brand-3d {
    font-size: 4px;
    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 & Visual Adjustments (max-width: 768px) */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1024px) {
  .ef-main-header .ef-container {
    position: relative !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .ef-hamburger {
    display: flex !important;
    position: absolute !important;
    right: 24px !important;
    top: 24px !important;
    z-index: 100 !important;
  }
}

@media (max-width: 768px) {
  .ef-main-header .ef-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    position: relative !important;
  }

  .ef-logo {
    grid-column: 1 !important;
    order: 1 !important;
    max-width: calc(100% - 50px) !important;
  }

  .ef-hamburger {
    display: flex !important;
    position: absolute !important;
    right: 16px !important;
    top: 20px !important;
    z-index: 100 !important;
  }

  .ef-header-actions {
    grid-column: 1 !important;
    order: 2 !important;
    min-width: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid var(--ef-border-color) !important;
    border-bottom: 1px solid var(--ef-border-color) !important;
  }

  .ef-header-action-btn {
    flex-shrink: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    font-size: 10.5px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .ef-search-container {
    grid-column: 1 !important;
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 4px !important;
  }

  .ef-search-input::placeholder {
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   WooCommerce Products Grid & Related Products Fixes
   ========================================================================== */

/* Turn WooCommerce product lists (archive, related) into grids */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 24px 0 !important;
}

/* Ensure list items inside products list behave correctly */
ul.products li.product {
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important; /* Reset WooCommerce default margin */
  width: auto !important; /* Reset WooCommerce default width */
}

/* Ensure the cards inside list items expand to full height */
ul.products li.product > .ef-product-card {
  flex: 1 1 auto !important;
  height: 100% !important;
  width: 100% !important;
}

/* Related Products Section Heading Style */
section.related.products,
.related.products {
  margin-top: 48px !important;
  padding-top: 32px !important;
  border-top: 1px solid var(--ef-border-color) !important;
  display: block !important; /* Ensure the section itself is display block, not grid */
}

.related.products h2 {
  font-family: var(--ef-font-heading) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--ef-primary) !important;
  margin-bottom: 24px !important;
  position: relative !important;
  padding-bottom: 8px !important;
  display: block !important;
}

.related.products h2::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 40px !important;
  height: 3px !important;
  background-color: var(--ef-accent) !important;
}

/* Mobile responsive columns for WooCommerce product lists */
@media (max-width: 1024px) {
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 480px) {
  ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* Hide default WooCommerce Page Title on My Account page */
.woocommerce-account h1.ef-page-title {
  display: none !important;
}

.ef-portal-container {
  max-width: 1280px;
  margin: 30px auto 60px auto;
  padding: 0 24px;
  font-family: 'Poppins', 'Inter', sans-serif;
}

.ef-portal-header {
  text-align: center;
  margin-bottom: 45px;
}

.ef-portal-title {
  font-family: 'Poppins', 'Outfit', sans-serif;
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--ef-portal-navy);
  line-height: 1.2;
}

.ef-portal-divider {
  width: 60px;
  height: 4px;
  background-color: var(--ef-portal-blue);
  margin: 18px auto;
  border-radius: 2px;
}

.ef-portal-subtitle {
  font-size: 15px;
  color: var(--ef-text-muted);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* Redesigned 2-column grid layout */
.ef-portal-grid {
  display: grid !important;
  gap: 40px !important;
}

.ef-portal-two-cols {
  grid-template-columns: 1.15fr 0.85fr !important;
  align-items: stretch !important;
}

.ef-portal-one-col {
  grid-template-columns: 1fr !important;
  max-width: 620px !important;
  margin: 0 auto !important;
}

/* Card structures */
.ef-portal-card {
  border-radius: 20px !important;
  box-shadow: var(--ef-portal-shadow) !important;
  padding: 45px !important;
  transition: var(--ef-transition) !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Reset default WooCommerce styles that conflict with cards */
.woocommerce-page #customer_login form.login,
.woocommerce-page #customer_login form.register,
.woocommerce #customer_login form.login,
.woocommerce #customer_login form.register,
.woocommerce-account #customer_login form.login,
.woocommerce-account #customer_login form.register {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  float: none !important;
  width: 100% !important;
  border-radius: 0 !important;
  display: block !important;
  clear: both !important;
}

/* Left Card: Welcome Back (Login) */
.ef-login-card {
  background-color: var(--ef-white) !important;
  border: 1px solid var(--ef-border-color) !important;
}

/* Right Card: Create Business Account (Registration) - Solid hex gradient */
.ef-register-card {
  background: linear-gradient(135deg, #0F5FE8 0%, #0B2C5F 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Card Header */
.ef-card-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 35px;
}

.ef-header-icon-container {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ef-login-card .ef-header-icon-container {
  background-color: rgba(15, 95, 232, 0.08);
  color: var(--ef-portal-blue);
}

.ef-register-card .ef-header-icon-container {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--ef-white);
}

.ef-header-icon-container svg {
  width: 26px;
  height: 26px;
}

.ef-header-text h2 {
  font-family: 'Poppins', 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.ef-login-card .ef-header-text h2 {
  color: var(--ef-portal-navy);
}

.ef-register-card .ef-header-text h2 {
  color: var(--ef-white);
}

.ef-header-text p {
  font-size: 13.5px;
  margin-top: 4px;
}

.ef-login-card .ef-header-text p {
  color: var(--ef-text-muted);
}

.ef-register-card .ef-header-text p {
  color: rgba(255, 255, 255, 0.85);
}

/* Google Login wrapper */
.ef-social-login {
  margin-bottom: 24px;
}

.ef-btn-google {
  width: 100%;
  height: 48px;
  border: 1px solid var(--ef-border-color);
  border-radius: 8px;
  background-color: var(--ef-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ef-text-main);
  transition: var(--ef-transition);
}

.ef-btn-google:hover {
  background-color: var(--ef-bg-light);
  border-color: rgba(0, 0, 0, 0.15);
}

/* Custom Divider OR */
.ef-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
  position: relative;
}

.ef-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--ef-border-color);
}

.ef-divider span {
  background-color: var(--ef-white);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ef-text-light);
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Fields & Form elements */
.ef-input-group {
  margin-bottom: 24px;
}

.ef-input-group label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.ef-login-card .ef-input-group label {
  color: var(--ef-portal-navy);
}

.ef-register-card .ef-input-group label.ef-label-white {
  color: var(--ef-white);
}

.ef-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ef-input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-login-card .ef-input-icon {
  color: var(--ef-text-muted);
}

.ef-register-card .ef-input-icon {
  color: var(--ef-text-muted);
}

.ef-input-icon svg {
  width: 18px;
  height: 18px;
}

.ef-form-input {
  width: 100% !important;
  height: 48px !important;
  padding: 0 45px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  transition: var(--ef-transition) !important;
  font-family: 'Poppins', sans-serif !important;
}

/* All inputs styled white with dark text inside, matching the mockup */
.ef-login-card .ef-form-input,
.ef-register-card .ef-form-input {
  border: 1px solid var(--ef-border-color) !important;
  color: var(--ef-text-main) !important;
  background-color: var(--ef-white) !important;
}

.ef-login-card .ef-form-input:focus,
.ef-register-card .ef-form-input:focus {
  border-color: var(--ef-portal-blue) !important;
  box-shadow: 0 0 0 3px rgba(15, 95, 232, 0.15) !important;
}

.ef-login-card .ef-form-input::placeholder,
.ef-register-card .ef-form-input::placeholder {
  color: var(--ef-text-muted) !important;
  opacity: 0.8 !important;
}

/* Password Toggle Icon */
.ef-password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ef-text-muted);
  width: 24px;
  height: 24px;
  transition: var(--ef-transition);
}

.ef-password-toggle svg {
  width: 18px;
  height: 18px;
}

/* Toggle eye vs eye-off */
.ef-password-toggle.is-visible .ef-icon-eye-off {
  display: none !important;
}

.ef-password-toggle.is-visible .ef-icon-eye {
  display: block !important;
}

/* Hide default WooCommerce show password toggle icon */
span.show-password-input,
.show-password-input {
  display: none !important;
}


/* Remember me & Lost password row */
.ef-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
}

.ef-remember-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ef-text-muted);
  cursor: pointer;
}

.ef-remember-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--ef-portal-blue);
  border-radius: 4px;
  cursor: pointer;
}

.ef-lost-pw-link a {
  color: var(--ef-portal-blue);
}

.ef-lost-pw-link a:hover {
  text-decoration: underline;
  color: var(--ef-portal-blue-hover);
}

/* Submit buttons */
.ef-btn-login {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 50px !important;
  line-height: 50px !important;
  background: linear-gradient(135deg, var(--ef-portal-blue) 0%, var(--ef-portal-navy) 100%) !important;
  color: var(--ef-white) !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  transition: var(--ef-transition) !important;
  border: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  margin-top: 24px !important;
  text-align: center !important;
  padding: 0 !important;
}

.ef-btn-login:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(15, 95, 232, 0.25) !important;
}

.ef-btn-register {
  width: 100% !important;
  height: 50px !important;
  background-color: var(--ef-white) !important;
  color: var(--ef-portal-navy) !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  transition: var(--ef-transition) !important;
  border: none !important;
  cursor: pointer !important;
  text-align: center !important;
}

.ef-btn-register:hover {
  background-color: var(--ef-bg-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* B2B Checklist Layout */
.ef-benefits-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 24px;
}

.ef-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ef-white);
  font-size: 13.5px;
  font-weight: 600;
}

.ef-icon-check {
  color: var(--ef-white);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Account Type radio buttons toggling B2B fields */
.ef-account-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.ef-type-option {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  color: var(--ef-white);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--ef-transition);
  display: block;
}

.ef-type-option:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.ef-type-option.active {
  background-color: var(--ef-white) !important;
  color: var(--ef-portal-navy) !important;
  border-color: var(--ef-white) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.ef-business-fields {
  margin-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

/* Privacy and registration notes for registration */
.ef-register-card .ef-reg-note,
.ef-register-card .ef-privacy-note,
.ef-register-card .woocommerce-privacy-policy-text,
.ef-register-card .woocommerce-privacy-policy-text p {
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.6 !important;
  margin: 24px 0 !important;
  display: block !important;
}

.ef-register-card .ef-privacy-note a,
.ef-register-card .woocommerce-privacy-policy-text a {
  color: #93c5fd !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/* Card footer features (Login section) */
.ef-login-footer {
  border-top: 1px solid var(--ef-border-color);
  padding-top: 24px;
  margin-top: auto !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.ef-footer-feature {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ef-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(15, 95, 232, 0.06);
  color: var(--ef-portal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ef-feature-icon svg {
  width: 18px;
  height: 18px;
}

.ef-feature-text h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ef-portal-navy);
  margin: 0;
  line-height: 1.2;
}

.ef-feature-text p {
  font-size: 11px;
  color: var(--ef-text-muted);
  margin: 2px 0 0 0;
  line-height: 1.3;
}

/* BOTTOM TRUST BAR */
.ef-portal-trust-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--ef-border-color);
  padding: 40px 0 0 0;
  margin-top: 50px;
}

.ef-trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* Vertical separator line between items on desktop */
.ef-trust-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--ef-border-color);
}

.ef-trust-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(15, 95, 232, 0.08);
  color: var(--ef-portal-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.ef-trust-text h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ef-portal-navy);
  margin: 0;
}

.ef-trust-text p {
  font-size: 12px;
  color: var(--ef-text-muted);
  margin: 2px 0 0 0;
}

/* Spinner for Loading State */
.ef-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: ef-spin 0.8s ease-in-out infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes ef-spin {
  to { transform: rotate(360deg); }
}

/* Redesign WooCommerce Notice Boxes */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  list-style: none !important;
  margin: 0 0 30px 0 !important;
  padding: 18px 24px !important;
  border-radius: 10px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  box-shadow: var(--ef-shadow-sm) !important;
  border: 1px solid transparent !important;
  position: relative !important;
}

/* Custom notice indicators icon setup */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
  content: "" !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  position: static !important; /* Reset WooCommerce default absolute positioning */
  margin: 0 !important; /* Reset WooCommerce default margins */
  order: 1 !important;
}

/* Style buttons inside notice boxes to prevent alignment or overflow issue */
.woocommerce-error .button,
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .wc-forward,
.woocommerce-message .wc-forward,
.woocommerce-info .wc-forward {
  order: 3 !important;
  margin-left: auto !important;
  padding: 8px 16px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: inherit !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  text-decoration: none !important;
  transition: var(--ef-transition) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.woocommerce-error .button:hover,
.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Adjust text ordering inside the notices */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  /* Default anonymous text nodes automatically act as flex items */
  color: inherit;
}

.woocommerce-error {
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  border-color: #fca5a5 !important;
}
.woocommerce-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23991b1b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'/%3E%3C/svg%3E") !important;
}

.woocommerce-message {
  background-color: #f0fdf4 !important;
  color: #166534 !important;
  border-color: #bbf7d0 !important;
}
.woocommerce-message::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23166534'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") !important;
}

.woocommerce-info {
  background-color: #eff6ff !important;
  color: #1e40af !important;
  border-color: #bfdbfe !important;
}
.woocommerce-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e40af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") !important;
}

/* Mobile responsive rules for notices */
@media (max-width: 768px) {
  .woocommerce-error,
  .woocommerce-message,
  .woocommerce-info {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 12px !important;
  }
  .woocommerce-error .button,
  .woocommerce-message .button,
  .woocommerce-info .button,
  .woocommerce-error .wc-forward,
  .woocommerce-message .wc-forward,
  .woocommerce-info .wc-forward {
    margin-left: 0 !important;
    width: 100% !important;
    order: 3 !important;
  }
}

/* CUSTOM LOGGED IN USER PORTAL PAGE */
.woocommerce-account .woocommerce {
  max-width: 1280px;
  margin: 40px auto 60px auto;
  padding: 0 24px;
  display: flex;
  gap: 40px;
  align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 280px;
  flex-shrink: 0;
  background-color: var(--ef-white);
  border-radius: 20px;
  box-shadow: var(--ef-portal-shadow);
  border: 1px solid var(--ef-border-color);
  padding: 24px 16px;
}

.ef-account-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ef-account-nav-item {
  margin: 0;
}

.ef-account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--ef-text-main);
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--ef-transition);
}

.ef-account-nav-link svg {
  width: 20px;
  height: 20px;
  color: var(--ef-text-muted);
  transition: var(--ef-transition);
}

.ef-account-nav-link:hover {
  background-color: var(--ef-bg-light);
  color: var(--ef-portal-blue);
}

.ef-account-nav-link:hover svg {
  color: var(--ef-portal-blue);
}

/* Force styles on active myaccount navigation items */
.woocommerce-MyAccount-navigation ul li.is-active a.ef-account-nav-link,
.woocommerce-MyAccount-navigation ul li.is-active a,
.ef-account-nav-item.is-active .ef-account-nav-link,
.ef-account-nav-link.active {
  background: linear-gradient(135deg, var(--ef-portal-blue) 0%, var(--ef-portal-navy) 100%) !important;
  color: var(--ef-white) !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a.ef-account-nav-link svg,
.woocommerce-MyAccount-navigation ul li.is-active a svg,
.ef-account-nav-item.is-active .ef-account-nav-link svg,
.ef-account-nav-link.active svg {
  color: var(--ef-white) !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  flex-grow: 1;
  background-color: var(--ef-white);
  border-radius: 20px;
  box-shadow: var(--ef-portal-shadow);
  border: 1px solid var(--ef-border-color);
  padding: 45px;
  font-family: 'Poppins', sans-serif;
}

.woocommerce-MyAccount-content p {
  font-size: 15px;
  color: var(--ef-text-main);
  line-height: 1.6;
}

.woocommerce-MyAccount-content a {
  color: var(--ef-portal-blue);
  font-weight: 600;
}

.woocommerce-MyAccount-content a:hover {
  text-decoration: underline;
}

/* RESPONSIVE MEDIA BREAKPOINTS */
@media (max-width: 991px) {
  .ef-portal-two-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ef-portal-trust-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .ef-trust-item:not(:last-child)::after {
    display: none;
  }

  .woocommerce-account .woocommerce {
    flex-direction: column;
    gap: 30px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
  }

  .ef-account-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .ef-account-nav-item {
    flex: 1 1 auto;
  }

  .ef-account-nav-link {
    justify-content: center;
    padding: 10px 16px;
    font-size: 13.5px;
  }
}

@media (max-width: 768px) {
  .ef-login-footer {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .ef-portal-card {
    padding: 30px 20px;
  }

  .ef-benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ef-form-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .ef-portal-trust-banner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ef-account-nav-list {
    flex-direction: column;
    width: 100%;
  }

  .ef-account-type-toggle {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Premium Repair Services Landing Page Styles (Siemens / ABB Inspired)
   ========================================================================== */

/* Design Tokens */
:root {
  --ef-navy-deep: #071A3D;
  --ef-blue-electric: #0A84FF;
  --ef-blue-hover: #0066cc;
  --ef-glass-bg: rgba(255, 255, 255, 0.85);
  --ef-glass-dark: rgba(7, 26, 61, 0.03);
  --ef-glass-border: rgba(10, 132, 255, 0.15);
  --ef-shadow-premium: 0 10px 30px rgba(7, 26, 61, 0.05), 0 1px 3px rgba(7, 26, 61, 0.02);
  --ef-shadow-hover: 0 20px 40px rgba(7, 26, 61, 0.12);
  --ef-transition-premium: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hero Section */
.ef-repair-hero-section {
  position: relative;
  background-color: var(--ef-navy-deep);
  background-image: radial-gradient(circle at 80% 20%, rgba(10, 132, 255, 0.15) 0%, transparent 50%),
                    url('data:image/svg+xml;utf8,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h80v80H0zm10 10h60v60H10z" fill="%230a84ff" fill-opacity="0.02" fill-rule="evenodd"/></svg>');
  color: var(--ef-white);
  padding: 100px 0 140px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ef-repair-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.ef-repair-hero-text h1 {
  font-family: var(--ef-font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.ef-repair-hero-text p {
  font-size: 1.2rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 36px;
  max-width: 620px;
}

.ef-hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.ef-hero-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #93c5fd;
  backdrop-filter: blur(4px);
}

.ef-hero-badge-item svg {
  width: 20px;
  height: 20px;
  color: var(--ef-blue-electric);
  flex-shrink: 0;
}

.ef-hero-cta-group {
  display: flex;
  gap: 16px;
}

.ef-hero-cta-group .ef-btn-primary {
  background: var(--ef-blue-electric);
  border-color: var(--ef-blue-electric);
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.4);
}

.ef-hero-cta-group .ef-btn-primary:hover {
  background: var(--ef-blue-hover);
  border-color: var(--ef-blue-hover);
}

.ef-hero-cta-group .ef-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ef-white);
  background: transparent;
}

.ef-hero-cta-group .ef-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Floating Statistics Cards */
.ef-hero-visuals {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-hero-stats-panel {
  background: rgba(7, 26, 61, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.ef-hero-stats-title {
  font-family: var(--ef-font-heading);
  font-size: 1.1rem;
  color: var(--ef-white);
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.ef-hero-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ef-hero-stat-row:last-child {
  margin-bottom: 0;
}

.ef-hero-stat-label {
  font-size: 0.9rem;
  color: #94a3b8;
}

.ef-hero-stat-value {
  font-family: var(--ef-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ef-blue-electric);
}

.ef-floating-stat-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: var(--ef-shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: floatAnim 4s ease-in-out infinite;
}

.ef-floating-stat-card.c1 {
  top: -20px;
  left: -40px;
  animation-delay: 0s;
}

.ef-floating-stat-card.c2 {
  bottom: -30px;
  right: -20px;
  animation-delay: 2s;
}

.ef-floating-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ef-white);
}

.ef-floating-text {
  font-size: 0.75rem;
  color: #93c5fd;
  font-weight: 600;
  text-transform: uppercase;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Services Grid (8 Premium Cards) */
.ef-services-premium-section {
  padding: 80px 0;
  background-color: var(--ef-bg-light);
}

.ef-services-premium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.ef-service-premium-card {
  background: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: 20px;
  padding: 24px;
  transition: var(--ef-transition-premium);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.ef-service-premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--ef-blue-electric), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ef-service-premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ef-shadow-hover);
  border-color: transparent;
}

.ef-service-premium-card:hover::before {
  opacity: 1;
}

.ef-service-card-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.06);
  color: var(--ef-blue-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(10, 132, 255, 0.1);
  transition: var(--ef-transition-premium);
}

.ef-service-premium-card:hover .ef-service-card-icon-wrapper {
  background: var(--ef-blue-electric);
  color: var(--ef-white);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.ef-service-card-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.ef-service-premium-card h3 {
  font-family: var(--ef-font-heading);
  font-size: 1.25rem;
  color: var(--ef-primary);
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.ef-service-premium-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ef-text-main);
  margin-bottom: 24px;
  flex-grow: 1;
}

.ef-service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ef-blue-electric);
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}

.ef-service-learn-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.ef-service-premium-card:hover .ef-service-learn-more {
  color: var(--ef-blue-hover);
}

.ef-service-premium-card:hover .ef-service-learn-more svg {
  transform: translateX(4px);
}

/* Why Choose Us Redesign */
.ef-choose-premium-section {
  padding: 80px 0;
  background-color: var(--ef-white);
}

.ef-choose-premium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.ef-choose-premium-card {
  background: var(--ef-bg-light);
  border: 1px solid var(--ef-border-color);
  border-radius: 20px;
  padding: 28px;
  transition: var(--ef-transition-premium);
}

.ef-choose-premium-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ef-shadow-premium);
  border-color: rgba(10, 132, 255, 0.2);
}

.ef-choose-card-icon {
  width: 48px;
  height: 48px;
  background: var(--ef-white);
  color: var(--ef-blue-electric);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: var(--ef-shadow-sm);
  border: 1px solid var(--ef-border-color);
}

.ef-choose-card-icon svg {
  width: 22px;
  height: 22px;
}

.ef-choose-premium-card h4 {
  font-family: var(--ef-font-heading);
  font-size: 1.15rem;
  color: var(--ef-primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.ef-choose-premium-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ef-text-main);
  margin: 0;
}

/* Glowing Workflow Timeline */
.ef-workflow-timeline-section {
  padding: 80px 0;
  background-color: var(--ef-bg-light);
  overflow: hidden;
}

.ef-workflow-horizontal-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 1100px;
  margin: 60px auto 0 auto;
}

.ef-workflow-connecting-line {
  position: absolute;
  top: 35px;
  left: 5%;
  right: 5%;
  height: 4px;
  background: var(--ef-border-color);
  z-index: 1;
}

.ef-workflow-glowing-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 70%; /* Animated dynamically or set statically */
  height: 100%;
  background: linear-gradient(90deg, var(--ef-blue-electric) 0%, #38bdf8 100%);
  box-shadow: 0 0 12px var(--ef-blue-electric);
}

.ef-workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14%;
  position: relative;
  z-index: 2;
  text-align: center;
}

.ef-workflow-icon-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--ef-white);
  border: 3px solid var(--ef-border-color);
  color: var(--ef-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ef-shadow-sm);
  transition: var(--ef-transition-premium);
}

.ef-workflow-icon-circle svg {
  width: 28px;
  height: 28px;
}

.ef-workflow-node.active .ef-workflow-icon-circle {
  border-color: var(--ef-blue-electric);
  color: var(--ef-blue-electric);
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.35);
  transform: scale(1.08);
}

.ef-workflow-node.completed .ef-workflow-icon-circle {
  border-color: var(--ef-blue-electric);
  background: var(--ef-blue-electric);
  color: var(--ef-white);
}

.ef-workflow-node-label {
  font-family: var(--ef-font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ef-primary);
  margin-top: 16px;
  margin-bottom: 6px;
}

.ef-workflow-node-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ef-text-muted);
  padding: 0 5px;
}

/* Side-by-Side Glass Forms */
.ef-repair-glass-forms-section {
  padding: 80px 0;
  background-color: var(--ef-white);
}

.ef-glass-forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.ef-glass-form-card {
  background: var(--ef-glass-bg);
  border: 1px solid var(--ef-glass-border);
  box-shadow: 0 20px 40px rgba(7, 26, 61, 0.04);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
  position: relative;
}

.ef-glass-form-card h3 {
  font-family: var(--ef-font-heading);
  font-size: 1.6rem;
  color: var(--ef-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.ef-glass-form-card p.ef-form-subtitle {
  font-size: 0.9rem;
  color: var(--ef-text-muted);
  margin-bottom: 30px;
}

/* Floating Labels Layout */
.ef-floating-group {
  position: relative;
  margin-bottom: 24px;
}

.ef-floating-group input,
.ef-floating-group select,
.ef-floating-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--ef-border-color);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ef-text-main);
  background: var(--ef-white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ef-floating-group select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1l4 4 4-4" stroke="%2364748b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}

.ef-floating-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ef-text-muted);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  pointer-events: none;
  background: var(--ef-white);
  padding: 0 4px;
}

.ef-floating-group textarea ~ label {
  top: 24px;
  transform: none;
}

.ef-floating-group input:focus,
.ef-floating-group select:focus,
.ef-floating-group textarea:focus {
  border-color: var(--ef-blue-electric);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.1);
  outline: none;
}

.ef-floating-group input:focus ~ label,
.ef-floating-group input:not(:placeholder-shown) ~ label,
.ef-floating-group select:focus ~ label,
.ef-floating-group select:not([value=""]) ~ label,
.ef-floating-group textarea:focus ~ label,
.ef-floating-group textarea:not(:placeholder-shown) ~ label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  color: var(--ef-blue-electric);
  font-weight: 600;
}

.ef-form-upload-box {
  border: 1.5px dashed var(--ef-border-color);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  background: var(--ef-bg-light);
  cursor: pointer;
  transition: border-color 0.2s ease;
  margin-bottom: 24px;
  position: relative;
}

.ef-form-upload-box:hover {
  border-color: var(--ef-blue-electric);
}

.ef-form-upload-box input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ef-upload-text {
  font-size: 0.85rem;
  color: var(--ef-text-muted);
}

.ef-upload-text strong {
  color: var(--ef-blue-electric);
}

/* Premium Contact CTA Strip */
.ef-contact-strip-section {
  padding: 60px 0;
  background-color: var(--ef-bg-light);
}

.ef-contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ef-contact-strip-card {
  background: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: var(--ef-transition-premium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ef-contact-strip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ef-shadow-hover);
  border-color: rgba(10, 132, 255, 0.25);
}

.ef-contact-strip-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.05);
  color: var(--ef-blue-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(10, 132, 255, 0.1);
  transition: var(--ef-transition-premium);
}

.ef-contact-strip-card:hover .ef-contact-strip-icon-circle {
  transform: scale(1.1);
  background: var(--ef-blue-electric);
  color: var(--ef-white);
  box-shadow: 0 0 15px rgba(10, 132, 255, 0.25);
}

.ef-contact-strip-icon-circle svg {
  width: 24px;
  height: 24px;
}

.ef-contact-strip-card h4 {
  font-family: var(--ef-font-heading);
  font-size: 1.2rem;
  color: var(--ef-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.ef-contact-strip-card p {
  font-size: 0.88rem;
  color: var(--ef-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.ef-contact-strip-card .ef-btn {
  margin-top: auto;
  width: 100%;
}

/* Elegant Accordion FAQ */
.ef-faq-accordion-section {
  padding: 80px 0;
  background-color: var(--ef-white);
}

.ef-faq-premium-container {
  max-width: 840px;
  margin: 48px auto 0 auto;
}

.ef-faq-premium-item {
  border: 1px solid var(--ef-border-color);
  border-radius: 16px;
  margin-bottom: 16px;
  background: var(--ef-bg-light);
  overflow: hidden;
  transition: var(--ef-transition-premium);
}

.ef-faq-premium-item:hover {
  border-color: rgba(10, 132, 255, 0.2);
  background: var(--ef-white);
  box-shadow: var(--ef-shadow-sm);
}

.ef-faq-premium-header {
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.ef-faq-premium-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ef-primary);
  line-height: 1.4;
}

.ef-faq-plus-icon {
  width: 18px;
  height: 18px;
  color: var(--ef-blue-electric);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex-shrink: 0;
}

.ef-faq-premium-item.is-open {
  background: var(--ef-white);
  border-color: var(--ef-blue-electric);
  box-shadow: var(--ef-shadow-premium);
}

.ef-faq-premium-item.is-open .ef-faq-plus-icon {
  transform: rotate(45deg);
}

.ef-faq-premium-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: var(--ef-text-main);
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 0 28px;
}

.ef-faq-premium-item.is-open .ef-faq-premium-content {
  max-height: 300px;
  padding: 0 28px 24px 28px;
}

/* Final CTA Section */
.ef-repair-final-cta-section {
  padding: 90px 0;
  background-color: var(--ef-navy-deep);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ef-repair-final-cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(10, 132, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.ef-final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.ef-repair-final-cta-section h2 {
  font-family: var(--ef-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ef-white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.ef-repair-final-cta-section p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 36px;
  line-height: 1.6;
}

.ef-final-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Responsive Breakpoints Mapping */
@media (max-width: 1200px) {
  .ef-services-premium-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ef-choose-premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .ef-repair-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ef-repair-hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .ef-hero-badges {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .ef-hero-cta-group {
    justify-content: center;
  }
  .ef-hero-visuals {
    margin-top: 40px;
  }
  .ef-services-premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ef-workflow-horizontal-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .ef-workflow-connecting-line {
    display: none;
  }
  .ef-workflow-node {
    width: 28%;
  }
  .ef-glass-forms-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .ef-repair-hero-text h1 {
    font-size: 2.6rem;
  }
  .ef-hero-badges {
    grid-template-columns: 1fr;
  }
  .ef-services-premium-grid {
    grid-template-columns: 1fr;
  }
  .ef-choose-premium-grid {
    grid-template-columns: 1fr;
  }
  .ef-workflow-node {
    width: 45%;
  }
  .ef-contact-strip-grid {
    grid-template-columns: 1fr;
  }
  .ef-final-cta-btns {
    flex-direction: column;
    align-items: center;
  }
  .ef-final-cta-btns .ef-btn {
    width: 100%;
    max-width: 280px;
  }
  .ef-glass-form-card {
    padding: 24px;
  }
}




/* ==========================================================================
   New Arrivals Section (.ef-new-arrivals-section)
   ========================================================================== */

/* Nav dot indicator */
.ef-nav-link-new {
  position: relative;
}

.ef-nav-new-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ef-neon-glow);
  margin-left: 4px;
  animation: na-pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

@keyframes na-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.6); }
}

/* Section wrapper */
.ef-new-arrivals-section {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ef-bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.ef-new-arrivals-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 94, 184, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Header row */
.ef-na-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ef-na-header-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Badge pill */
.ef-na-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 94, 184, 0.07);
  border: 1px solid rgba(0, 94, 184, 0.15);
  color: var(--ef-accent);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: fit-content;
}

.ef-na-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ef-accent);
  animation: na-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.ef-na-heading {
  font-family: var(--ef-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ef-primary);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.ef-na-subheading {
  font-size: 0.95rem;
  color: var(--ef-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* View All desktop link */
.ef-na-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ef-font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ef-accent);
  text-decoration: none;
  border: 1.5px solid var(--ef-accent);
  padding: 10px 20px;
  border-radius: 8px;
  transition: var(--ef-transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.ef-na-view-all svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.ef-na-view-all:hover {
  background: var(--ef-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 94, 184, 0.3);
}

.ef-na-view-all:hover svg {
  transform: translateX(3px);
}

/* Carousel outer */
.ef-na-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ef-na-track-outer {
  overflow: hidden;
  flex: 1;
  cursor: grab;
  user-select: none;
}

.ef-na-track-outer:active {
  cursor: grabbing;
}

.ef-na-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Individual slide */
.ef-na-slide {
  flex: 0 0 calc(25% - 18px); /* 4 per row default */
  min-width: 0;
}

/* Card */
.ef-na-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--ef-border-color);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  position: relative;
}

.ef-na-card:hover {
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(0, 34, 64, 0.12), 0 4px 12px rgba(0, 94, 184, 0.08);
  transform: translateY(-6px);
  color: inherit;
}

/* Badges row */
.ef-na-badges {
  display: flex;
  gap: 6px;
  padding: 12px 12px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.ef-na-new-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 30px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #0A84FF 0%, #005eb8 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.4);
}

.ef-na-stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 30px;
  font-size: 9px;
  font-weight: 700;
}

.ef-na-stock-badge.in {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.ef-na-stock-badge.out {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Product image */
.ef-na-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--ef-bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--ef-border-color);
}

.ef-na-img-wrap img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
}

.ef-na-card:hover .ef-na-img-wrap img {
  transform: scale(1.08);
}

.ef-na-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 34, 64, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.ef-na-card:hover .ef-na-img-overlay {
  opacity: 1;
}

.ef-na-quick-view {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.ef-na-quick-view:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Product info */
.ef-na-info {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.ef-na-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ef-accent);
  letter-spacing: 0.5px;
}

.ef-na-title {
  font-family: var(--ef-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ef-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.ef-na-sku {
  font-family: monospace;
  font-size: 10.5px;
  color: var(--ef-text-muted);
  letter-spacing: 0.2px;
}

.ef-na-price {
  font-family: var(--ef-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ef-accent);
  margin-top: 4px;
}

.ef-na-price .woocommerce-Price-amount {
  color: var(--ef-accent);
  font-weight: 700;
}

/* Card footer */
.ef-na-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--ef-border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Add to Cart button */
.ef-na-atc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--ef-primary);
  color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.ef-na-atc-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.ef-na-atc-btn:hover:not(.disabled) {
  background: var(--ef-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 94, 184, 0.3);
}

.ef-na-atc-btn.disabled {
  background: var(--ef-bg-light);
  color: var(--ef-text-muted);
  cursor: not-allowed;
  font-size: 11px;
}

/* Days-ago badge */
.ef-na-days-badge {
  font-size: 10px;
  color: var(--ef-text-muted);
  white-space: nowrap;
  font-style: italic;
}

/* Arrow buttons */
.ef-na-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--ef-border-color);
  color: var(--ef-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 3;
}

.ef-na-arrow svg {
  width: 18px;
  height: 18px;
}

.ef-na-arrow:hover:not(.ef-na-arrow-disabled) {
  background: var(--ef-accent);
  border-color: var(--ef-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 94, 184, 0.35);
  transform: scale(1.08);
}

.ef-na-arrow-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Dot navigation */
.ef-na-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.ef-na-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ef-border-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.ef-na-dot.active {
  background: var(--ef-accent);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 94, 184, 0.4);
}

.ef-na-dot:hover:not(.active) {
  background: var(--ef-text-muted);
}

/* Mobile CTA (hidden on desktop) */
.ef-na-mobile-cta {
  display: none;
  justify-content: center;
  margin-top: 32px;
}

/* Empty state */
.ef-na-empty {
  width: 100%;
  padding: 40px;
  text-align: center;
  color: var(--ef-text-muted);
  font-size: 0.95rem;
}

.ef-na-empty a {
  color: var(--ef-accent);
  font-weight: 600;
}

/* Page section padding reuse */
.ef-page-section {
  padding: 40px 0;
}

/* ==========================================================================
   New Arrivals Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1199px) {
  .ef-na-slide {
    flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 899px) {
  .ef-na-slide {
    flex: 0 0 calc(50% - 12px);
  }

  .ef-na-heading {
    font-size: 1.65rem;
  }

  .ef-na-view-all {
    display: none;
  }

  .ef-na-mobile-cta {
    display: flex;
  }
}

@media (max-width: 599px) {
  .ef-new-arrivals-section {
    padding: 48px 0 56px;
  }

  .ef-na-slide {
    flex: 0 0 calc(100% - 0px);
  }

  .ef-na-arrow {
    width: 36px;
    height: 36px;
  }

  .ef-na-arrow svg {
    width: 15px;
    height: 15px;
  }

  .ef-na-heading {
    font-size: 1.45rem;
  }

  .ef-na-img-wrap {
    height: 160px;
  }

  .ef-na-carousel-wrapper {
    gap: 8px;
  }
}

  .ef-na-carousel-wrapper {
    gap: 8px;
  }
}

/* ==========================================================================
   PROJECTS & VIDEO GALLERY STYLES
   ========================================================================== */

/* 1. Video Gallery Page & Hero */
.ef-gallery-page {
  background-color: var(--ef-bg-body);
  padding-bottom: 60px;
}

.ef-gallery-hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(0, 40, 80, 1) 0%, rgba(10, 20, 40, 1) 100%);
  padding: 60px 0;
  overflow: hidden;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ef-gallery-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ef-glow-ring {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
  filter: blur(40px);
}

.ef-glow-ring.ring-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  right: -50px;
}

.ef-glow-ring.ring-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -50px;
}

.ef-gallery-hero-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.ef-cta-tag {
  display: inline-block;
  background-color: var(--ef-accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 210, 255, 0.3);
}

.ef-gallery-title {
  font-family: var(--ef-font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ef-gallery-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Hero Stats */
.ef-gallery-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.ef-gallery-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--ef-border-radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: var(--ef-transition);
}

.ef-gallery-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.ef-gallery-stat-num {
  display: block;
  font-family: var(--ef-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ef-accent);
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.ef-gallery-stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* 2. Featured Project Section */
.ef-gallery-featured-project {
  padding: 50px 0;
  border-bottom: 1px solid var(--ef-border-color);
}

.ef-gallery-section-title {
  font-family: var(--ef-font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ef-primary);
  margin-bottom: 24px;
}

.ef-featured-project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  background: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
  overflow: hidden;
  box-shadow: var(--ef-shadow);
}

.ef-featured-video-wrapper {
  background: #000;
  position: relative;
  min-height: 320px;
}

.ef-lazy-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ef-lazy-video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ef-lazy-video-container:hover img {
  transform: scale(1.03);
}

.ef-featured-video-play-btn {
  position: absolute;
  width: 68px;
  height: 68px;
  background: var(--ef-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 210, 255, 0.4);
  transition: var(--ef-transition);
  z-index: 2;
  padding-left: 4px; /* Align play icon */
}

.ef-featured-video-play-btn svg {
  width: 28px;
  height: 28px;
}

.ef-featured-video-play-btn:hover {
  transform: scale(1.1);
  background: #008fcc;
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.6);
}

.ef-featured-project-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ef-featured-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(0, 94, 184, 0.08);
  color: var(--ef-accent);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.ef-featured-project-info h2 {
  font-family: var(--ef-font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ef-primary);
  margin-bottom: 12px;
}

.ef-featured-project-info p {
  color: var(--ef-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* 3. Filter Panel & Sorting */
.ef-gallery-grid-section {
  padding: 40px 0;
}

.ef-gallery-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
  padding: 16px;
  box-shadow: var(--ef-shadow-sm);
}

.ef-filter-search {
  position: relative;
  flex: 1 1 300px;
}

.ef-filter-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  font-size: 14px;
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  background: var(--ef-bg-light);
  outline: none;
  transition: var(--ef-transition);
}

.ef-filter-search input:focus {
  border-color: var(--ef-accent);
  background: #fff;
}

.ef-filter-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ef-text-light);
}

.ef-filter-dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ef-filter-dropdowns select {
  padding: 9px 36px 9px 12px;
  font-size: 13.5px;
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius);
  background-color: var(--ef-white);
  font-weight: 600;
  color: var(--ef-text-main);
  outline: none;
  cursor: pointer;
  transition: var(--ef-transition);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.ef-filter-dropdowns select:hover, .ef-filter-dropdowns select:focus {
  border-color: var(--ef-accent);
}

/* Category Filter Tabs */
.ef-gallery-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  justify-content: center;
}

.ef-tab-btn {
  background: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  color: var(--ef-text-main);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--ef-transition);
}

.ef-tab-btn:hover {
  border-color: var(--ef-accent);
  color: var(--ef-accent);
}

.ef-tab-btn.active {
  background-color: var(--ef-accent);
  border-color: var(--ef-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.25);
}

/* 4. Projects Cards Grid */
.ef-gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  min-height: 200px;
}

.ef-video-card {
  background: var(--ef-white);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
  overflow: hidden;
  box-shadow: var(--ef-shadow);
  transition: var(--ef-transition);
  display: flex;
  flex-direction: column;
}

.ef-video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 94, 184, 0.12), 0 0 15px rgba(0, 210, 255, 0.15);
}

.ef-video-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.ef-video-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ef-video-card:hover .ef-video-card-media img {
  transform: scale(1.05);
}

.ef-video-play-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: var(--ef-transition);
}

.ef-video-card:hover .ef-video-play-overlay-btn {
  opacity: 1;
}

.ef-video-play-overlay-btn svg {
  width: 46px;
  height: 46px;
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.ef-video-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ef-video-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ef-accent);
  letter-spacing: 0.5px;
}

.ef-video-card-title {
  font-family: var(--ef-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ef-primary);
  margin: 6px 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ef-video-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ef-text-muted);
  border-top: 1px solid var(--ef-border-color);
  padding-top: 12px;
  margin-bottom: 14px;
}

.ef-btn-view-details {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ef-accent);
  text-decoration: none;
  transition: var(--ef-transition);
}

.ef-btn-view-details:hover {
  color: var(--ef-primary);
}

/* Spinner */
.ef-gallery-loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 0;
}

.ef-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 94, 184, 0.1);
  border-radius: 50%;
  border-top-color: var(--ef-accent);
  animation: ef-spin 0.8s linear infinite;
  margin: 0 auto 12px auto;
}

@keyframes ef-spin {
  to { transform: rotate(360deg); }
}

.ef-gallery-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--ef-text-muted);
  font-weight: 500;
  font-size: 15px;
}

/* Load More */
.ef-gallery-load-more-wrapper {
  margin-top: 40px;
  text-align: center;
}

/* 5. Before/After Image Compare Slider */
.ef-compare-slider {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: var(--ef-border-radius-lg);
  border: 1px solid var(--ef-border-color);
  user-select: none;
}

.ef-compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ef-compare-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ef-compare-before {
  z-index: 1;
}

.ef-compare-after {
  z-index: 2;
  width: 50%; /* JS will adjust this width */
}

/* Align image in the clipped after container so it overlaps perfectly */
.ef-compare-after img {
  width: 100%;
}

.ef-compare-badge {
  position: absolute;
  top: 16px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 5;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.ef-compare-badge.label-before {
  left: 16px;
  background: var(--ef-primary);
}

.ef-compare-badge.label-after {
  right: 16px;
  background: var(--ef-accent);
}

.ef-compare-handle {
  position: absolute;
  top: 0;
  left: 50%; /* JS will adjust */
  height: 100%;
  width: 40px;
  margin-left: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: ew-resize;
  cursor: grab;
}

.ef-compare-handle:active {
  cursor: grabbing;
}

.ef-compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ef-compare-arrow {
  position: absolute;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--ef-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.ef-compare-arrow.left { transform: translateX(-16px); }
.ef-compare-arrow.right { transform: translateX(16px); }

.ef-compare-handle:hover .ef-compare-arrow {
  background: var(--ef-accent);
  color: #fff;
}

.ef-compare-fullscreen-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ef-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: var(--ef-transition);
}

.ef-compare-fullscreen-btn:hover {
  background: var(--ef-accent);
  color: #fff;
}

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

/* Lightbox overlay */
.ef-slider-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.ef-lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  transition: var(--ef-transition);
}

.ef-lightbox-close:hover {
  color: var(--ef-accent);
}

.ef-lightbox-content {
  width: 100%;
  max-width: 1000px;
  height: 80vh;
}

.ef-lightbox-content .ef-compare-slider {
  height: 100%;
}

/* 6. Single Case Study Layout Details */
.ef-single-project-page {
  padding: 40px 0 60px 0;
}

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

.ef-project-meta-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--ef-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ef-project-header h1 {
  font-family: var(--ef-font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ef-primary);
  margin: 6px 0 8px 0;
  letter-spacing: -0.02em;
}

.ef-project-client-name {
  font-size: 13.5px;
  color: var(--ef-text-muted);
}

.ef-project-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ef-project-status-badge.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.ef-project-status-badge.status-progress {
  background: #fef3c7;
  color: #92400e;
}

.ef-project-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.ef-block-title {
  font-family: var(--ef-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 16px;
  position: relative;
}

.ef-block-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--ef-accent);
  margin-top: 8px;
  border-radius: 2px;
}

.ef-project-media-video-block {
  display: flex;
  flex-direction: column;
}

.ef-project-media-video-block .ef-lazy-video-container {
  height: 380px;
  border-radius: var(--ef-border-radius-lg);
  border: 1px solid var(--ef-border-color);
  background: #000;
}

.ef-no-video-fallback {
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ef-bg-light);
  border: 1px dashed var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
}

.ef-no-video-fallback p {
  color: var(--ef-text-muted);
  margin-top: 12px;
  font-size: 13.5px;
}

.ef-project-details-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  margin-bottom: 60px;
}

.ef-project-description .ef-post-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ef-text-main);
}

.ef-project-description .ef-post-content p {
  margin-bottom: 16px;
}

.ef-specs-card {
  background: var(--ef-bg-card);
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
  padding: 24px;
}

.ef-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.ef-specs-table th, .ef-specs-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--ef-border-color);
  font-size: 13.5px;
  text-align: left;
}

.ef-specs-table th {
  color: var(--ef-text-muted);
  font-weight: 600;
  width: 40%;
}

.ef-specs-table td {
  color: var(--ef-primary);
  font-weight: 700;
}

.ef-project-tech-tags-wrapper {
  margin-bottom: 24px;
}

.ef-project-tech-tags-wrapper h5 {
  font-size: 12px;
  color: var(--ef-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ef-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ef-tech-tag {
  background: rgba(0, 94, 184, 0.05);
  border: 1px solid rgba(0, 94, 184, 0.1);
  color: var(--ef-accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.ef-specs-whatsapp-cta {
  background: #f8fafc;
  border: 1px solid var(--ef-border-color);
  border-radius: var(--ef-border-radius-lg);
  padding: 20px;
}

.ef-specs-whatsapp-cta h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ef-primary);
  margin-bottom: 8px;
}

.ef-specs-whatsapp-cta p {
  font-size: 12px;
  color: var(--ef-text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.ef-specs-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Related & Back links */
.ef-project-related-section {
  border-top: 1px solid var(--ef-border-color);
  padding-top: 50px;
  margin-bottom: 50px;
}

.ef-related-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ef-project-back-link {
  text-align: center;
}

.ef-project-back-link a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ef-accent);
  text-decoration: none;
}

/* Dynamic CTAs bottom gallery strip */
.ef-gallery-bottom-cta {
  padding: 50px 0 20px 0;
}

.ef-bottom-cta-card {
  background: linear-gradient(135deg, var(--ef-primary-dark) 0%, var(--ef-primary) 100%);
  border-radius: var(--ef-border-radius-lg);
  padding: 48px;
  text-align: center;
  color: #fff;
  box-shadow: var(--ef-shadow-lg);
}

.ef-bottom-cta-card h2 {
  font-family: var(--ef-font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.ef-bottom-cta-card p {
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
}

.ef-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .ef-gallery-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ef-featured-project-grid {
    grid-template-columns: 1fr;
  }
  
  .ef-gallery-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ef-project-media-grid {
    grid-template-columns: 1fr;
  }
  
  .ef-project-details-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 767px) {
  .ef-gallery-filter-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .ef-filter-dropdowns {
    justify-content: space-between;
  }
  .ef-filter-dropdowns select {
    flex: 1 1 calc(50% - 6px);
  }
}

@media (max-width: 575px) {
  .ef-gallery-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .ef-gallery-cards-grid {
    grid-template-columns: 1fr;
  }

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

  .ef-filter-dropdowns select {
    flex: 1 1 100%;
  }

  .ef-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   MOBILE FULL OPTIMIZATION — covers 768px → 320px
   ========================================================================== */

/* ── Global touch targets & tap highlight ── */
@media (max-width: 768px) {
  a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
  }

  /* Minimum 44px touch height for all interactive elements */
  .ef-btn,
  .woocommerce-button,
  .ef-search-btn,
  .ef-hamburger,
  .ef-header-action-btn,
  .ef-nav-link {
    min-height: 44px;
  }

  /* ── Global section padding reduction ── */
  .ef-categories-section,
  .ef-products-section,
  .ef-why-section,
  .ef-newsletter,
  .ef-stats-section,
  .ef-industries-section,
  .ef-timeline-section,
  .ef-b2b-cta-section,
  .ef-repair-hero-section,
  .ef-trust-section,
  .ef-featured-products-section {
    padding: 40px 0 !important;
  }

  /* ── Typography fluid scaling ── */
  .ef-section-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ef-cta-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem) !important;
  }

  /* ── Breadcrumbs ── */
  .ef-breadcrumbs {
    padding: 10px 0;
  }
  .ef-breadcrumbs-list {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 12px;
  }

  /* ── Hero section ── */
  .ef-hero {
    padding: 40px 0;
  }

  /* ── Categories ── */
  .ef-category-card {
    padding: 12px 8px;
  }
  .ef-category-img {
    width: 80px;
    height: 80px;
  }
  .ef-category-name {
    font-size: 11.5px;
    text-align: center;
  }

  /* ── Product cards grid ── */
  .ef-products-grid {
    gap: 12px;
  }
  .ef-product-card {
    padding: 12px;
  }
  .ef-product-title {
    font-size: 13px;
  }
  .ef-product-price {
    font-size: 14px;
  }

  /* ── Why section cards ── */
  .ef-why-card {
    padding: 20px 16px;
  }

  /* ── Footer ── */
  .ef-footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 12px;
  }
  .ef-footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* ── Single product page ── */
  .ef-product-badge-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .ef-product-actions {
    flex-direction: column;
    gap: 12px;
  }
  .ef-product-meta-table {
    font-size: 12.5px;
  }
  .ef-detail-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ef-detail-tabs::-webkit-scrollbar {
    display: none;
  }
  .ef-tab-btn {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 14px;
  }

  /* ── Cart drawer ── */
  .ef-cart-drawer {
    width: 100%;
    border-radius: 16px 16px 0 0;
    top: auto;
    bottom: 0;
    height: 85vh;
    transform: translateY(100%);
  }
  .ef-cart-drawer.active {
    transform: translateY(0);
  }

  /* ── Repair Services page ── */
  .ef-repair-hero-text h1 {
    font-size: clamp(1.75rem, 6vw, 2.6rem) !important;
  }
  .ef-repair-hero-text p {
    font-size: 14px !important;
  }
  .ef-hero-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-left: auto;
    margin-right: auto;
  }
  .ef-hero-badge-item {
    font-size: 13px;
  }
  .ef-hero-cta-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .ef-hero-cta-group .ef-btn {
    width: 100%;
    justify-content: center;
  }
  .ef-services-premium-card {
    padding: 20px 16px;
  }
  .ef-service-icon-wrap {
    width: 50px;
    height: 50px;
  }
  .ef-timeline-badge {
    width: 55px;
    height: 55px;
    font-size: 17px;
  }
  .ef-contact-strip-grid {
    gap: 20px;
  }
  .ef-contact-strip-item {
    padding: 16px;
  }

  /* ── Video Gallery page ── */
  .ef-gallery-hero {
    padding: 40px 0;
  }
  .ef-gallery-title {
    font-size: clamp(1.5rem, 5.5vw, 2.25rem) !important;
  }
  .ef-gallery-desc {
    font-size: 13.5px;
  }
  .ef-gallery-filter-panel {
    padding: 16px;
    gap: 12px;
  }
  .ef-gallery-cards-grid {
    gap: 16px;
  }
  .ef-gallery-card {
    border-radius: 10px;
  }

  /* ── My Account / Login Portal ── */
  .ef-portal-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem) !important;
  }
  .ef-portal-subtitle {
    font-size: 13.5px;
  }
  .ef-portal-card {
    padding: 24px 16px;
  }
  .ef-card-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .ef-header-text h2 {
    font-size: 1.3rem;
  }
  .ef-btn-google {
    padding: 12px 16px;
    font-size: 13.5px;
  }
  .ef-form-input {
    font-size: 16px; /* Prevent iOS auto-zoom on input focus */
  }
  .ef-portal-trust-banner {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .ef-trust-item {
    padding: 14px 10px;
  }

  /* ── WooCommerce Checkout & Cart pages ── */
  .woocommerce-checkout .woocommerce,
  .woocommerce-cart .woocommerce {
    padding: 0 !important;
  }
  .woocommerce table.shop_table {
    font-size: 13px;
  }
  .woocommerce table.shop_table td,
  .woocommerce table.shop_table th {
    padding: 10px 8px;
  }
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    gap: 10px !important;
  }

  /* ── Stats section ── */
  .ef-stat-number {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }
  .ef-stat-label {
    font-size: 13px;
  }

  /* ── Newsletter ── */
  .ef-newsletter-email {
    font-size: 14px;
    padding: 12px 16px;
  }
  .ef-newsletter-btn {
    padding: 12px 20px;
    font-size: 13.5px;
  }

  /* ── Scrollable overflows ── */
  .ef-category-layout .ef-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .ef-sidebar-filter {
    padding: 16px;
  }
}

/* ── 480px — compact mobile ── */
@media (max-width: 480px) {
  /* Categories - stay at 2 col */
  .ef-categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .ef-category-img {
    width: 64px;
    height: 64px;
  }
  .ef-category-name {
    font-size: 10.5px;
  }

  /* Products single col */
  .ef-products-grid {
    grid-template-columns: 1fr !important;
  }

  /* Buttons full width */
  .ef-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .ef-cta-buttons .ef-btn {
    width: 100%;
    justify-content: center;
  }

  /* Repair hero */
  .ef-repair-hero-text h1 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
  }
  .ef-workflow-node {
    width: 80% !important;
  }
  .ef-workflow-horizontal-container {
    flex-direction: column;
    align-items: center;
  }

  /* Timeline stacked vertically */
  .ef-timeline-grid {
    gap: 28px;
  }

  /* Stats */
  .ef-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Footer */
  .ef-footer-top {
    gap: 24px;
  }

  /* Portal login */
  .ef-portal-title {
    font-size: clamp(1.4rem, 7vw, 2rem) !important;
  }
  .ef-portal-trust-banner {
    grid-template-columns: 1fr !important;
  }

  /* Industry cards */
  .ef-industries-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── 375px — small phones ── */
@media (max-width: 375px) {
  .ef-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ef-section-title {
    font-size: 1.15rem;
  }

  .ef-logo img {
    max-height: 36px;
  }

  .ef-hero {
    padding: 28px 0 !important;
  }

  .ef-hero-title {
    font-size: clamp(1.25rem, 7.5vw, 1.6rem) !important;
  }

  .ef-product-card {
    padding: 10px;
  }

  .ef-product-title {
    font-size: 12px;
  }

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

  .ef-why-card {
    padding: 16px 12px;
  }

  .ef-gallery-stat-card {
    padding: 16px 10px;
  }

  .ef-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}
