/* ==========================================================================
   LIANSHENG MAGNETICS (MAGNETTUTOR®) — 1:1 SINGLE-BENCHMARK INDUSTRIAL UI
   WCAG 2.2 AA Contrast Hardened | Zero Horizontal Overflow (320px–2560px)
   ========================================================================== */
:root {
  --ec-white: #ffffff;
  --ec-warm: #f5f3f2;
  --ec-warm-deep: #ebe8e6;
  --ec-red: #e20026;
  --ec-red-hover: #b8001f;
  --ec-black: #000000;
  --ec-ink: #16181b;
  --ec-body: #262626;
  --ec-muted: #595959;
  --ec-charcoal: #1b1e22;
  --ec-border: #e5e5e5;
  --ec-border-strong: #d2d2d2;
  --ec-cta-blue: #91c4d0;
  --ec-cta-gold: #f4dd77;
  --ec-cta-silver: #d1d0cf;
  --ec-container: 1274px;
  --ec-font-sans: "DM Sans", "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --ec-font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 68px 0; /* Reserve space for 66px fixed bottom 3-column bar */
  background-color: var(--ec-white);
  color: var(--ec-body);
  font-family: var(--ec-font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  overflow-x: clip;
  word-break: break-word;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ec-ink);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--ec-red);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ec-red);
  outline-offset: 2px;
}

.ec-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100000;
  background: var(--ec-red);
  color: #ffffff !important;
  padding: 10px 18px;
  font-weight: 600;
}
.ec-skip-link:focus {
  left: 12px;
}

.ec-wrap, .mag-wrap {
  width: 100%;
  max-width: calc(var(--ec-container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. SINGLE-TIER TRANSPARENT -> WHITE STICKY HEADER (.ec-header)
   ========================================================================== */
.ec-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  height: 90px;
  transition: background-color 0.24s ease, height 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.72) 0%, rgba(10, 12, 15, 0.28) 68%, rgba(10, 12, 15, 0) 100%);
  border-bottom: 1px solid transparent;
}

.ec-header.is-solid,
.ec-header.is-scrolled {
  background: var(--ec-white);
  height: 84px;
  border-bottom: 1px solid var(--ec-border);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.ec-header-inner {
  width: 100%;
  max-width: 1860px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ec-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ec-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.ec-logo-dark {
  display: none;
}
.ec-logo-light {
  display: block;
}

.ec-header.is-solid .ec-logo-dark,
.ec-header.is-scrolled .ec-logo-dark {
  display: block;
}
.ec-header.is-solid .ec-logo-light,
.ec-header.is-scrolled .ec-logo-light {
  display: none;
}

/* Primary Center Navigation */
.ec-nav {
  display: flex;
  align-items: center;
}

.ec-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ec-nav-item {
  position: relative;
}

.ec-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 12px 13px;
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
}

.ec-header.is-solid .ec-nav-link,
.ec-header.is-scrolled .ec-nav-link {
  color: var(--ec-ink);
}

.ec-nav-link:hover,
.ec-nav-link.is-active,
.ec-header.is-solid .ec-nav-link:hover,
.ec-header.is-solid .ec-nav-link.is-active,
.ec-header.is-scrolled .ec-nav-link:hover,
.ec-header.is-scrolled .ec-nav-link.is-active {
  color: var(--ec-red);
}

.ec-caret {
  font-size: 11px;
  opacity: 0.8;
}

/* Clean Minimalist Mega Dropdown */
.ec-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 680px;
  max-width: 92vw;
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-top: 3px solid var(--ec-red);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14);
  padding: 22px;
  z-index: 9999;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ec-dropdown-narrow {
  width: 260px;
  grid-template-columns: 1fr;
  padding: 14px 18px;
  gap: 6px;
}

.ec-nav-item:hover .ec-dropdown,
.ec-nav-item:focus-within .ec-dropdown {
  display: grid;
}

.ec-drop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--ec-warm);
  border-left: 3px solid transparent;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.ec-drop-card:hover {
  background: #ece9e7;
  border-left-color: var(--ec-red);
}
.ec-drop-thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  background: var(--ec-charcoal);
  flex-shrink: 0;
}
.ec-drop-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ec-black);
  line-height: 1.28;
}
.ec-drop-sub {
  display: block;
  font-size: 11.5px;
  color: var(--ec-muted);
}

.ec-drop-simple {
  display: block;
  padding: 7px 4px;
  font-size: 14.5px;
  color: var(--ec-ink);
  border-bottom: 1px solid #f1f1f1;
}
.ec-drop-simple:last-child {
  border-bottom: none;
}

/* Right Utility Group (Search | Locale | Direct Portal) */
.ec-utilities {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.ec-util-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
}

.ec-header.is-solid .ec-util-link,
.ec-header.is-scrolled .ec-util-link {
  color: var(--ec-ink);
}
.ec-util-link:hover {
  color: var(--ec-red) !important;
}

.ec-locale-sel {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  padding: 4px 7px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}
.ec-locale-sel option {
  color: #111111;
  background: #ffffff;
}

.ec-header.is-solid .ec-locale-sel,
.ec-header.is-scrolled .ec-locale-sel {
  color: var(--ec-ink);
  border-color: var(--ec-border-strong);
}

.ec-mobile-btn {
  display: none;
  background: var(--ec-red);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Spacer for non-homepage solid fixed header */
.ec-header-spacer {
  height: 84px;
}

/* Inner-Page White Secondary Sub-Navigation Bar */
.ec-subnav-bar {
  background: var(--ec-white);
  border-bottom: 1px solid var(--ec-border);
}
.ec-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 50px;
  flex-wrap: wrap;
}
.ec-subnav-link {
  display: inline-flex;
  align-items: center;
  height: 50px;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  border-bottom: 3px solid transparent;
}
.ec-subnav-link.is-active,
.ec-subnav-link:hover {
  color: var(--ec-black);
  font-weight: 600;
  border-bottom-color: var(--ec-red);
}

/* ==========================================================================
   2. FULL-BLEED CINEMATIC HERO SLIDER (HOMEPAGE) & INNER BANNER HERO
   ========================================================================== */
.ec-hero-slider {
  position: relative;
  width: 100%;
  min-height: 650px;
  height: calc(100vh - 66px);
  max-height: 860px;
  background: #121417;
  overflow: hidden;
}

.ec-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
  display: flex;
  align-items: center;
}
.ec-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.ec-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.76) contrast(1.06);
}

.ec-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 15, 0.84) 0%, rgba(10, 12, 15, 0.56) 48%, rgba(10, 12, 15, 0.18) 100%);
}

.ec-slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: calc(var(--ec-container) + 48px);
  margin: 0 auto;
  padding: 56px 24px 0;
}

.ec-hero-h1,
.ec-slide-heading {
  margin: 0 0 28px;
  max-width: 650px;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.ec-hero-sub {
  margin: -14px 0 28px;
  max-width: 580px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

/* Signature Crimson 3px-Radius Button with Chevron */
.ec-btn-red, .mag-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ec-red);
  color: #ffffff !important;
  font-size: 15.5px;
  font-weight: 500;
  padding: 15px 28px 16px 24px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.ec-btn-red:hover, .mag-btn-red:hover {
  background: var(--ec-red-hover);
  color: #ffffff !important;
}

.ec-btn-dark, .mag-btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1e2125;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px 15px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.ec-btn-dark:hover, .mag-btn-blue:hover {
  background: var(--ec-red);
  color: #ffffff !important;
}

/* Bottom-Right 5-Dot Slider Pagination (Clear of floating Email/WA pills) */
.ec-hero-dots {
  position: absolute;
  right: 336px;
  bottom: 26px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ec-hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ec-hero-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.ec-hero-dot.is-active {
  border-color: var(--ec-red);
}
.ec-hero-dot.is-active::after {
  background: var(--ec-red);
  transform: scale(1.1);
}

/* Inner-Page Full-Bleed Industrial Hero Banner */
.ec-inner-hero {
  position: relative;
  min-height: 390px;
  background: #16181c;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ec-inner-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) contrast(1.08);
}
.ec-inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 15, 0.86) 0%, rgba(10, 12, 15, 0.54) 55%, rgba(10, 12, 15, 0.22) 100%);
}
.ec-inner-hero-body {
  position: relative;
  z-index: 2;
  padding: 54px 0;
}
.ec-inner-hero-body h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(32px, 3.8vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  color: #ffffff;
}
.ec-inner-hero-eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fca5a5;
  margin-bottom: 10px;
}

/* WAI-ARIA Minimalist White Breadcrumb Bar */
.breadcrumb-bar {
  background: var(--ec-white);
  border-bottom: 1px solid var(--ec-border);
  padding: 14px 0;
  font-size: 13.5px;
}
.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ec-muted);
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: #999999;
}
.breadcrumb-item a {
  color: var(--ec-ink);
}
.breadcrumb-item a:hover {
  color: var(--ec-red);
}
.breadcrumb-item[aria-current="page"] {
  color: var(--ec-muted);
}

/* ==========================================================================
   3. SECTIONS, WARM #F5F3F2 BANDS & BORDERED HEADINGS (| Industry Focus)
   ========================================================================== */
.ec-section, .mag-section {
  padding: 72px 0;
  background: var(--ec-white);
}

.ec-section-warm, .mag-section-warm {
  padding: 72px 0;
  background: var(--ec-warm);
}

.ec-lead-intro {
  max-width: 880px;
  margin: 0 0 40px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ec-body);
}

.ec-bordered-h2, .mag-section-heading {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--ec-red);
  font-size: clamp(25px, 2.3vw, 31px);
  font-weight: 400;
  line-height: 1.22;
  color: var(--ec-black);
}

.mag-section-heading-center {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--ec-red);
  font-size: clamp(25px, 2.3vw, 31px);
  font-weight: 400;
  line-height: 1.22;
  color: var(--ec-black);
  text-align: left;
}
.mag-short-rule {
  display: none;
}

.ec-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ec-black);
  margin-bottom: 28px;
}
.ec-text-link span {
  color: var(--ec-red);
  font-size: 19px;
  line-height: 1;
}

/* ==========================================================================
   4. BAND 2: 3x2 SHARP DIVISION CARDS (DARK STUDIO TOP + 5px LEFT RED BAR)
   ========================================================================== */
.ec-div-grid, .mag-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.ec-div-card, .mag-eclipse-card {
  display: flex;
  flex-direction: column;
  background: var(--ec-white);
  border-radius: 0;
  border: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ec-div-card:hover, .mag-eclipse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.ec-div-media, .mag-eclipse-media {
  width: 100%;
  aspect-ratio: 680 / 440;
  background: var(--ec-charcoal);
  overflow: hidden;
}
.ec-div-media img, .mag-eclipse-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ec-div-card:hover .ec-div-media img,
.mag-eclipse-card:hover .mag-eclipse-media img {
  transform: scale(1.03);
}

.ec-div-body, .mag-eclipse-body {
  padding: 28px 34px 32px 33px;
  border-left: 5px solid var(--ec-red);
  background: var(--ec-white);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ec-div-body h3, .mag-eclipse-body h3 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.24;
  color: var(--ec-black);
}

.ec-div-body p, .mag-eclipse-body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #3b3b3b;
}

/* ==========================================================================
   5. BAND 3: | INDUSTRY FOCUS — 3x3 HORIZONTAL WHITE SECTOR STRIPS
   ========================================================================== */
.ec-sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ec-sector-card {
  display: grid;
  grid-template-columns: 136px 1fr 34px;
  align-items: center;
  background: var(--ec-white);
  min-height: 92px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ec-sector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}
.ec-sector-card img {
  width: 136px;
  height: 92px;
  object-fit: cover;
}
.ec-sector-name {
  padding: 12px 18px;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ec-black);
}
.ec-sector-arrow {
  color: var(--ec-red);
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  padding-right: 12px;
}

/* ==========================================================================
   6. BAND 4: 5-COLUMN FULL-BLEED CASE STUDIES / GUIDES WITH RED TAGS & ARROWS
   ========================================================================== */
.ec-bleed-track-wrap {
  width: 100%;
  max-width: 1880px;
  margin: 26px auto 0;
  padding: 0 24px;
}

.ec-case-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.ec-case-card {
  display: flex;
  flex-direction: column;
  background: var(--ec-white);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ec-case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}
.ec-case-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: var(--ec-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
}
.ec-case-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--ec-charcoal);
}
.ec-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ec-case-body {
  padding: 20px 22px 24px;
  flex: 1;
}
.ec-case-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.42;
  color: var(--ec-black);
}

.ec-track-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
}
.ec-arrow-btn {
  background: none;
  border: none;
  color: var(--ec-red);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
}
.ec-arrow-btn:hover {
  opacity: 0.72;
}

/* ==========================================================================
   7. BAND 5: FULL-BLEED WORKSHOP BANNER + OVERLAPPING WHITE NARRATIVE CARD
   ========================================================================== */
.ec-story-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 56px 0;
  background: #14171c;
  overflow: hidden;
}
.ec-story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) contrast(1.05);
}
.ec-story-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 260px);
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.ec-story-card {
  background: var(--ec-white);
  padding: 42px 46px;
  border-radius: 0;
}
.ec-story-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333333;
  margin-bottom: 14px;
}
.ec-story-card h2 {
  margin: 0 0 24px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ec-black);
}

/* Proportional 9:16 Shop-Floor Video Card (Zero Distortion) */
.ec-video-dock {
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
  border-left: 4px solid var(--ec-red);
}
.ec-video-dock video {
  width: 100%;
  max-width: 236px;
  max-height: 360px;
  margin: 0 auto;
  background: #000000;
  object-fit: contain;
}
.ec-video-dock span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ec-ink);
  font-weight: 500;
}

/* ==========================================================================
   8. BAND 6: PURE WHITE 4-COLUMN GIANT CRIMSON STATS STRIP (100+ / 22K+)
   ========================================================================== */
.ec-stats-band {
  background: var(--ec-white);
  padding: 68px 0;
  border-bottom: 1px solid var(--ec-border);
}
.ec-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.ec-stat-num {
  display: block;
  font-size: clamp(40px, 3.8vw, 54px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ec-red);
  margin-bottom: 10px;
}
.ec-stat-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.48;
  color: var(--ec-body);
}

/* ==========================================================================
   9. SKU CATALOG GRID (.mag-grid-4 / .mag-sku-card) & PDP GALLERY
   ========================================================================== */
.mag-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.mag-sku-card {
  background: var(--ec-white);
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mag-sku-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
}
.mag-sku-media {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mag-sku-media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mag-sku-body {
  padding: 20px 22px 24px;
  border-left: 4px solid var(--ec-red);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mag-sku-code {
  font-family: var(--ec-font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ec-red);
  margin-bottom: 6px;
  display: block;
}
.mag-sku-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ec-black);
}
.mag-sku-title a {
  color: inherit;
}
.mag-sku-title a:hover {
  color: var(--ec-red);
}
.mag-sku-specs {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ec-muted);
  display: grid;
  gap: 4px;
}
.mag-sku-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--ec-warm);
  color: var(--ec-black) !important;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 2px;
}
.mag-sku-cta:hover {
  background: var(--ec-red);
  color: #ffffff !important;
}

/* Single SKU Multi-Angle Gallery & 4-Card Breakdown */
.mag-pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 40px;
  align-items: start;
}
.specimen-stage {
  background: var(--ec-warm);
  padding: 22px;
}
.specimen-main-box {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 16px;
}
.specimen-main-box img {
  max-height: 100%;
  object-fit: contain;
}
.specimen-thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.specimen-thumb-btn {
  background: #ffffff;
  border: 2px solid transparent;
  padding: 4px;
  cursor: pointer;
}
.specimen-thumb-btn.is-active, .specimen-thumb-btn:hover {
  border-color: var(--ec-red);
}
.specimen-thumb-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.detail-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.detail-breakdown-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--ec-border);
}
.detail-breakdown-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.detail-breakdown-card figcaption {
  padding: 16px 20px;
  border-left: 4px solid var(--ec-red);
  font-size: 14.5px;
  color: var(--ec-body);
}

/* ==========================================================================
   10. ENGINEERING TABLES, GEO DIRECT ANSWER BOX, TESTIMONIALS & WORKBENCH
   ========================================================================== */
.mag-answer-box {
  background: var(--ec-warm);
  border-left: 5px solid var(--ec-red);
  padding: 24px 28px;
  margin: 22px 0;
}
.mag-answer-box h2, .mag-answer-box h3 {
  margin-top: 0;
  font-weight: 500;
  color: var(--ec-black);
}

.mag-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--ec-border);
}
.mag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--ec-white);
}
.mag-table th {
  background: #181a1e;
  color: #ffffff;
  text-align: left;
  padding: 13px 16px;
  font-weight: 500;
}
.mag-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ec-border);
  color: var(--ec-body);
}
.mag-table tr:nth-child(even) td {
  background: #faf9f8;
}

.mag-check-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.mag-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
}
.mag-check-icon {
  color: var(--ec-red);
  font-weight: 700;
  flex-shrink: 0;
}

.mag-faq-item {
  background: var(--ec-white);
  border-left: 4px solid var(--ec-red);
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.mag-faq-item summary {
  padding: 16px 22px;
  font-weight: 500;
  font-size: 16.5px;
  color: var(--ec-black);
  cursor: pointer;
}
.mag-faq-item div {
  padding: 0 22px 18px;
  font-size: 15.5px;
  color: var(--ec-body);
}

/* Client Testimonial Strip */
.ec-testimonial-band {
  background: var(--ec-white);
  padding: 64px 0 56px;
  text-align: center;
}
.ec-testimonial-quote {
  max-width: 820px;
  margin: 0 auto 16px;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.52;
  color: var(--ec-black);
}
.ec-testimonial-author {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ec-muted);
}
.ec-testimonial-dots {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
}
.ec-testimonial-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d4;
}
.ec-testimonial-dots span.is-active {
  background: var(--ec-red);
}

/* CBM & Zero-Fake-Success RFQ Workbench */
.mag-workbench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.mag-panel {
  background: var(--ec-white);
  border: 1px solid var(--ec-border);
  border-left: 5px solid #181a1e;
  padding: 30px;
}
.mag-panel-red {
  border-left-color: var(--ec-red);
}
.mag-field {
  margin-bottom: 16px;
}
.mag-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ec-black);
  margin-bottom: 6px;
}
.mag-field input, .mag-field select, .mag-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ec-border-strong);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  background: #ffffff;
  color: var(--ec-ink);
}
.mag-calc-result {
  background: #181a1e;
  color: #f8fafc;
  padding: 16px 18px;
  margin-top: 16px;
  font-family: var(--ec-font-mono);
  font-size: 13px;
  line-height: 1.65;
}
.mag-rfq-status {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.mag-rfq-status.is-ok {
  display: block;
  background: #ecfdf5;
  border: 1px solid #059669;
  color: #065f46;
}
.mag-rfq-status.is-err {
  display: block;
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #991b1b;
}

/* Dual-Mode Live Google Maps Gateway */
.mag-map-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}
.mag-map-frame-box {
  border: 1px solid var(--ec-border);
  background: #e5e7eb;
  display: flex;
  flex-direction: column;
}
.mag-map-toolbar {
  background: #181a1e;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}
.mag-map-mode-btns {
  display: flex;
  gap: 8px;
}
.mag-map-btn {
  background: #2d3138;
  color: #ffffff;
  border: none;
  border-radius: 2px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.mag-map-btn.is-active {
  background: var(--ec-red);
}
.map-iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ==========================================================================
   11. FULL-BLEED #E20026 ACTION BANNER, #F5F3F2 FOOTER & 66px STICKY CTAs
   ========================================================================== */
.ec-red-action-band {
  background: var(--ec-red);
  padding: 46px 0;
}
.ec-red-action-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #ffffff !important;
  font-size: clamp(22px, 2.35vw, 31px);
  font-weight: 500;
  line-height: 1.3;
}
.ec-red-action-link:hover {
  opacity: 0.92;
  color: #ffffff !important;
}

.ec-footer {
  background: var(--ec-warm);
  color: #333333;
  padding: 64px 0 36px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.85fr;
  gap: 36px;
}

.ec-footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 20px;
}

.ec-footer-addr {
  margin: 0 0 16px;
  line-height: 1.75;
  color: #444444;
}

.ec-footer-reg {
  margin: 0 0 16px;
  font-size: 13px;
  color: #555555;
}

.ec-footer-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #222222;
}

.ec-footer h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ec-black);
}

.ec-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.ec-footer a {
  color: #4a4a4a;
}
.ec-footer a:hover {
  color: var(--ec-red);
}

.ec-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #dcd9d7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12.5px;
  color: #666666;
}

/* Monochrome Industrial Audit Seals (Matches BSI / ISO Seal Strip in Footer) */
.ec-seal-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ec-seal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1.5px solid #222222;
  border-radius: 999px;
  color: #111111;
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
}
.ec-seal-rect {
  border-radius: 2px;
  border-color: var(--ec-red);
}

/* Fixed 66px Bottom 3-Column Sticky Action Bar (.ec-sticky-ctas) */
.ec-sticky-ctas {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9800;
  background: #ffffff;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.ec-sticky-cell {
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: #000000 !important;
  text-align: center;
  padding: 0 12px;
}
.ec-sticky-cell:hover {
  filter: brightness(0.95);
  color: #000000 !important;
}
.ec-sticky-1 { background: var(--ec-cta-blue); }
.ec-sticky-2 { background: var(--ec-cta-gold); }
.ec-sticky-3 { background: var(--ec-cta-silver); }

/* Non-Overlapping Floating Direct Email & WhatsApp Pills (Docked cleanly above 66px bar) */
.ec-float-email {
  position: fixed;
  bottom: 128px;
  right: 20px;
  z-index: 9900;
  background: #181a1e;
  color: #ffffff !important;
  padding: 10px 16px;
  border-radius: 999px;
  border-left: 3px solid var(--ec-red);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ec-float-wa {
  position: fixed;
  bottom: 76px;
  right: 20px;
  z-index: 9901;
  background: #15803d;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ==========================================================================
   12. RESPONSIVE & 320px ZERO-OVERFLOW HARDENING
   ========================================================================== */
@media (max-width: 1220px) {
  .ec-header-inner { padding: 0 18px; }
  .ec-nav-link { padding: 10px 8px; font-size: 13.5px; }
  .ec-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .ec-header { background: var(--ec-white); height: 76px; border-bottom: 1px solid var(--ec-border); }
  .ec-logo-light { display: none !important; }
  .ec-logo-dark { display: block !important; }
  .ec-mobile-btn { display: inline-flex; }
  .ec-nav {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 142px);
    overflow-y: auto;
    background: var(--ec-white);
    border-bottom: 2px solid var(--ec-red);
    padding: 14px 20px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
  }
  .ec-nav.is-open { display: block; }
  .ec-nav-list { flex-direction: column; align-items: stretch; }
  .ec-nav-link { color: var(--ec-ink) !important; padding: 12px 4px; border-bottom: 1px solid #f1f1f1; justify-content: space-between; }
  .ec-dropdown { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; border: none; padding: 8px 0 8px 12px; }
  .ec-util-link { color: var(--ec-ink) !important; }
  .ec-locale-sel { color: var(--ec-ink) !important; border-color: var(--ec-border-strong) !important; }
  .ec-div-grid, .mag-grid-3, .ec-sector-grid, .ec-case-grid, .mag-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ec-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-story-layout, .mag-workbench-grid, .mag-pdp-grid, .mag-map-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body { padding-bottom: 58px; font-size: 15.5px; }
  .ec-wrap, .mag-wrap { padding: 0 14px; }
  .ec-utilities .ec-util-hide-sm { display: none; }
  .ec-logo-img { height: 32px; }
  .ec-hero-slider { min-height: 520px; height: auto; padding: 104px 0 64px; }
  .ec-slide { position: relative; display: none; }
  .ec-slide.is-active { display: block; }
  .ec-slide-content { padding-top: 18px; }
  .ec-div-grid, .mag-grid-3, .ec-sector-grid, .ec-case-grid, .mag-grid-4, .ec-stats-grid, .detail-breakdown-grid {
    grid-template-columns: 1fr;
  }
  .ec-story-card { padding: 26px 22px; }
  .ec-sticky-ctas { padding: 4px; gap: 4px; }
  .ec-sticky-cell { height: 46px; font-size: 12px; padding: 0 6px; gap: 4px; }
  .ec-float-email { bottom: 112px; right: 12px; font-size: 11.5px; padding: 8px 12px; }
  .ec-float-wa { bottom: 64px; right: 12px; font-size: 12px; padding: 9px 14px; }
  .map-iframe { height: 280px; }
}
