/* ==========================================================================
   Industrial Automation Solution (IAS) - Master Design System
   Architecture: 100% Consolidated Design System (Zero Scattered Styles)
   Version: 20261106-p2
   ========================================================================== */

/* --- 1. Design Tokens & Master Theme Variable Sets --- */
:root,
html[data-theme="ias-signature"],
[data-theme="ias-signature"] {
  /* Theme 1: "IAS Signature" (DEFAULT, recommended) */
  --theme-id: "ias-signature";
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-card: #FFFFFF;
  --heading: #0B1F3A;
  --navy: #0B1F3A;
  --text: #333333;
  --text-muted: #505050;
  --text-secondary: #505050;
  --accent: #E09040;
  --accent-dark: #C87A2C;
  --orange: #E09040;
  --orange-hover: #C87A2C;
  --green: #1E9E5A;
  --header-bg: #FFFFFF;
  --header-border: 1px solid #E5E8EB;
  --topbar-bg: #F1F3F5;
  --topbar-text: #0B1F3A;
  --footer-bg: #F1F3F5;
  --footer-text: #333333;
  --footer-heading: #0B1F3A;
  --footer-muted: #505050;
  --border: #E5E8EB;
  --border-light: #F1F3F5;
  --btn-primary-bg: #E09040;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #C87A2C;
  --btn-secondary-bg: transparent;
  --btn-secondary-text: #0B1F3A;
  --btn-secondary-border: #0B1F3A;
  --text-white: #FFFFFF;

  /* Aliases for backwards-compatibility */
  --color-navy: var(--navy);
  --color-orange: var(--orange);
  --color-orange-hover: var(--orange-hover);
  --color-bg-page: var(--bg);
  --color-bg-alt: var(--bg-soft);
  --color-bg-card: var(--bg-card);
  --color-border: var(--border);
  --color-border-light: var(--border-light);
  --color-text-main: var(--heading);
  --color-text-body: var(--text);
  --color-text-muted: var(--text-muted);
  --color-text-white: var(--text-white);

  /* Spacing Scale (Strictly 4px, 8px, 16px, 24px, 32px, 48px, 64px ONLY) */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;

  /* Status Badges */
  --badge-ready-bg: #DCFCE7;
  --badge-ready-text: #166534;
  --badge-ready-border: #BBF7D0;
  
  --badge-import-bg: #FEF3C7;
  --badge-import-text: #92400E;
  --badge-import-border: #FDE68A;
  
  --badge-out-bg: #FEE2E2;
  --badge-out-text: #991B1B;
  --badge-out-border: #FECACA;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

  /* Component Layout Metrics */
  --max-width: 1240px;
  --header-height: 72px;
  --topbar-height: 38px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 31, 58, 0.12);
}

/* --- Theme 2: "Graphite Industrial" --- */
html[data-theme="graphite-industrial"],
[data-theme="graphite-industrial"] {
  --theme-id: "graphite-industrial";
  --bg: #F4F4F2;
  --bg-soft: #EAEAE7;
  --bg-card: #FFFFFF;
  --heading: #2B2B2B;
  --navy: #2B2B2B;
  --text: #3A3A3A;
  --text-muted: #5A5A5A;
  --text-secondary: #5A5A5A;
  --accent: #E09040;
  --accent-dark: #C87A2C;
  --orange: #E09040;
  --orange-hover: #C87A2C;
  --header-bg: #FFFFFF;
  --header-border: 3px solid #E09040;
  --topbar-bg: #EAEAE7;
  --topbar-text: #2B2B2B;
  --footer-bg: #2B2B2B;
  --footer-text: #FFFFFF;
  --footer-heading: #FFFFFF;
  --footer-muted: #E0E0E0;
  --border: #DFDFDC;
  --border-light: #E8E8E5;
  --btn-primary-bg: #E09040;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #C87A2C;
  --btn-secondary-bg: transparent;
  --btn-secondary-text: #2B2B2B;
  --btn-secondary-border: #2B2B2B;
  --shadow-sm: 0 1px 3px rgba(43, 43, 43, 0.05);
  --shadow-md: 0 4px 12px rgba(43, 43, 43, 0.08);
  --shadow-lg: 0 12px 32px rgba(43, 43, 43, 0.12);
}

/* --- Theme 3: "Steel Blue Automation" --- */
html[data-theme="steel-blue"],
[data-theme="steel-blue"] {
  --theme-id: "steel-blue";
  --bg: #FFFFFF;
  --bg-soft: #F0F4F8;
  --bg-card: #FFFFFF;
  --heading: #14324F;
  --navy: #14324F;
  --text: #333333;
  --text-muted: #4A5D6E;
  --text-secondary: #4A5D6E;
  --accent: #2E6FA8;
  --accent-dark: #245885;
  --orange: #E09040;
  --orange-hover: #C87A2C;
  --header-bg: #FFFFFF;
  --header-border: 1px solid #D2DFEA;
  --topbar-bg: #F0F4F8;
  --topbar-text: #14324F;
  --footer-bg: #E8EEF3;
  --footer-text: #333333;
  --footer-heading: #14324F;
  --footer-muted: #4A5D6E;
  --border: #D2DFEA;
  --border-light: #E1EBF2;
  --btn-primary-bg: #E09040;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #C87A2C;
  --btn-secondary-bg: transparent;
  --btn-secondary-text: #14324F;
  --btn-secondary-border: #14324F;
  --shadow-sm: 0 1px 3px rgba(20, 50, 79, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 50, 79, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 50, 79, 0.12);
}

/* --- Theme 4: "Control Room Dark" --- */
html[data-theme="control-room-dark"],
[data-theme="control-room-dark"] {
  --theme-id: "control-room-dark";
  --bg: #14181D;
  --bg-soft: #1E242B;
  --bg-card: #1A2027;
  --heading: #FFFFFF;
  --navy: #FFFFFF;
  --text: #D7DDE3;
  --text-muted: #9AA7B5;
  --text-secondary: #9AA7B5;
  --accent: #E09040;
  --accent-dark: #F0A050;
  --orange: #E09040;
  --orange-hover: #F0A050;
  --header-bg: #14181D;
  --header-border: 1px solid #2C3540;
  --topbar-bg: #0E1114;
  --topbar-text: #D7DDE3;
  --footer-bg: #0E1114;
  --footer-text: #D7DDE3;
  --footer-heading: #FFFFFF;
  --footer-muted: #9AA7B5;
  --border: #2C3540;
  --border-light: #232B34;
  --btn-primary-bg: #E09040;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover: #F0A050;
  --btn-secondary-bg: transparent;
  --btn-secondary-text: #FFFFFF;
  --btn-secondary-border: #D7DDE3;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

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

a {
  color: var(--heading);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--orange);
}

/* --- 3. Strict Font Scale System --- */
h1, .h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
}

h2, .h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--heading);
}

h3, .h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
}

h4, .h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow, .small-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  display: inline-block;
  margin-bottom: var(--space-8);
}

.small-text, .text-muted {
  font-size: 13px;
  color: var(--text-muted);
}

.model-number, .part-number, .sku-number, .mono-code {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
  letter-spacing: 0.02em;
}

/* --- 4. Layout Containers & Sections --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
}

.section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.section-soft, .section-alt, .section-dark {
  background-color: var(--bg-soft);
  color: var(--text);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--heading);
}

.section-white {
  background-color: var(--bg);
}

.section-header {
  margin-bottom: var(--space-48);
  max-width: 780px;
}

.section-header.text-center, .text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: var(--space-8);
  line-height: 1.5;
}

/* --- 5. Buttons System (Strictly Two Styles) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  border: 2px solid transparent;
}

/* Style 1: Primary Solid Orange */
a.btn-primary, button.btn-primary, .btn-primary {
  background-color: var(--orange);
  color: var(--text-white);
  border-color: var(--orange);
}

a.btn-primary:hover, button.btn-primary:hover, .btn-primary:hover,
a.btn-primary:focus, button.btn-primary:focus, .btn-primary:focus {
  background-color: var(--orange-hover);
  border-color: var(--orange-hover);
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 154, 56, 0.35);
}

/* Style 2: Secondary Navy Outline */
a.btn-secondary, button.btn-secondary, .btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

a.btn-secondary:hover, button.btn-secondary:hover, .btn-secondary:hover,
a.btn-secondary:focus, button.btn-secondary:focus, .btn-secondary:focus {
  background-color: var(--navy);
  color: var(--text-white);
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.2);
}

/* Style 2b: Secondary White Outline (for dark hero banners, including Smart Factory & dark hero sections) */
a.btn-secondary-white, button.btn-secondary-white, .btn-secondary-white,
.service-header-banner .btn-secondary,
.sf-hero-banner .btn-secondary,
div[style*="linear-gradient"] a.btn-secondary,
div[style*="background-color: #0B1F3A"] a.btn-secondary {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
}

a.btn-secondary-white:hover, button.btn-secondary-white:hover, .btn-secondary-white:hover,
a.btn-secondary-white:focus, button.btn-secondary-white:focus, .btn-secondary-white:focus,
.service-header-banner .btn-secondary:hover,
.sf-hero-banner .btn-secondary:hover,
div[style*="linear-gradient"] a.btn-secondary:hover,
div[style*="background-color: #0B1F3A"] a.btn-secondary:hover,
.service-header-banner .btn-secondary:focus,
.sf-hero-banner .btn-secondary:focus,
div[style*="linear-gradient"] a.btn-secondary:focus,
div[style*="background-color: #0B1F3A"] a.btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-8) var(--space-16);
  font-size: 13px;
}

.btn-lg {
  padding: var(--space-16) var(--space-32);
  font-size: 16px;
}

.btn-icon-only {
  padding: var(--space-8);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-icon-only:hover {
  background: var(--bg-soft);
  border-color: var(--orange);
  color: var(--orange);
}

svg.icon, .icon svg, .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --- 6. Status Badges System --- */
.badge-stock {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-8);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.badge-stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.badge-stock-ready {
  background-color: var(--badge-ready-bg);
  color: var(--badge-ready-text);
  border: 1px solid var(--badge-ready-border);
}
.badge-stock-ready::before {
  background-color: #16A34A;
}

.badge-stock-import {
  background-color: var(--badge-import-bg);
  color: var(--badge-import-text);
  border: 1px solid var(--badge-import-border);
}
.badge-stock-import::before {
  background-color: #D97706;
}

.badge-stock-discontinued, .badge-stock-out {
  background-color: var(--badge-out-bg);
  color: var(--badge-out-text);
  border: 1px solid var(--badge-out-border);
}
.badge-stock-discontinued::before, .badge-stock-out::before {
  background-color: #DC2626;
}

.badge-brand {
  background-color: #EEF2F6;
  color: var(--navy);
  padding: var(--space-4) var(--space-8);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  text-transform: none;
  letter-spacing: 0.03em;
}

/* --- 7. Top Information & Announcement Bar --- */
.top-bar {
  background-color: var(--navy, #0B1F3A);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  overflow: hidden;
  position: relative;
  z-index: 910;
  box-sizing: border-box;
}

.top-bar-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-16);
  box-sizing: border-box;
  flex-wrap: nowrap;
}

.top-bar.has-announcement .top-bar-inner {
  padding: 0;
  justify-content: space-between;
}

/* Announcement Zone (Left side - red scrolling strip) */
.top-bar-announcement-zone {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  background-color: #C81E1E;
  color: #FFFFFF;
  overflow: hidden;
  position: relative;
  align-items: center;
}

.top-bar.has-announcement .top-bar-announcement-zone {
  display: flex;
}

.top-bar-marquee-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 0 0.5rem;
}

.top-bar-marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: topBarMarquee 28s linear infinite;
  cursor: pointer;
}

@keyframes topBarMarquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.top-bar-announcement-zone:hover .top-bar-marquee-track,
.top-bar-marquee-track.is-paused {
  animation-play-state: paused;
}

.top-bar-marquee-link {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-marquee-link:hover {
  text-decoration: underline;
  color: #FFFFFF;
}

.top-bar-marquee-text {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: default;
}

/* Contact Zone (Right side, always fixed) */
.top-bar-contact-zone {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  flex: 0 0 auto;
  height: 100%;
  background-color: var(--navy, #0B1F3A);
  color: #FFFFFF;
  padding: 0 1rem;
  z-index: 2;
  box-sizing: border-box;
}

.top-bar.has-announcement .top-bar-contact-zone {
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.top-bar-item:hover {
  color: var(--orange, #E09040);
}

.top-bar-item svg {
  stroke: #FFFFFF;
  fill: none;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: stroke 0.15s ease;
}

.top-bar-item:hover svg {
  stroke: var(--orange, #E09040);
}

/* Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
  .top-bar-marquee-track {
    animation: none !important;
    transform: none !important;
    padding: 0 0.5rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }
}

/* --- 8. Header Component (.site-header) --- */
.site-header {
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
  border-bottom: var(--header-border);
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  height: var(--header-height);
}

.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: all 0.25s ease;
}

/* Control Room Dark Theme: Logo White Rounded Pill (exists ONLY in this theme) */
[data-theme="control-room-dark"] .header-logo-img {
  background-color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="control-room-dark"] .footer-logo {
  background-color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-block;
}

/* Global Search Form */
.header-search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search-form {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 40px;
}

.header-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 var(--space-16);
  font-family: var(--font-sans);
  font-size: 13px;
  background-color: transparent;
  color: var(--text);
}
  color: var(--navy);
}

.header-search-btn {
  background-color: var(--orange);
  color: var(--text-white);
  border: none;
  height: 100%;
  padding: 0 var(--space-16);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.header-search-btn:hover {
  background-color: var(--orange-hover);
}

/* Live Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + var(--space-8));
  left: 0;
  right: 0;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16);
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s;
}

.search-result-item:hover {
  background-color: var(--bg-soft);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-thumb {
  width: 40px;
  height: 40px;
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: var(--space-4);
  object-fit: contain;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-model {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
}

.search-result-title {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-results-footer {
  padding: var(--space-8);
  text-align: center;
  background-color: var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

/* --- 9. Navigation Menu (.nav-menu) & Dropdowns (.dropdown-panel) --- */
.site-nav-row {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

.nav-list, .nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: var(--space-16) var(--space-16);
  transition: all 0.15s;
  border-bottom: 3px solid transparent;
}

.nav-link:hover {
  color: var(--orange);
  background-color: rgba(242, 154, 56, 0.06);
}

.nav-item.active .nav-link {
  color: var(--navy);
  border-bottom-color: var(--orange);
  background-color: transparent;
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.nav-item:hover .nav-link svg, .nav-item.open .nav-link svg {
  transform: rotate(180deg);
}

/* Solid Dropdowns (.dropdown-panel, .nav-dropdown, .nav-mega-menu) */
.nav-dropdown, .dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-16);
  z-index: 1000;
  min-width: 280px;
  
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-item:hover > .nav-dropdown,
.nav-item.open > .nav-dropdown,
.nav-item:hover > .dropdown-panel,
.nav-item.open > .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: var(--space-8) var(--space-16);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.nav-dropdown-item:hover {
  background-color: var(--bg-soft);
  color: var(--orange);
  padding-left: var(--space-24);
}

.nav-dropdown-item-featured {
  border-top: 1px solid var(--border);
  margin-top: var(--space-4);
  padding-top: var(--space-8);
  color: var(--orange);
  font-weight: 700;
}

/* Mega Menu */
.nav-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 960px;
  max-width: 95vw;
  max-height: calc(85vh - 60px);
  overflow-y: auto;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-20);
  z-index: 1000;
  
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-item:hover > .nav-mega-menu,
.nav-item.open > .nav-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

.mega-menu-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-16);
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s;
}

.mega-menu-card:hover {
  border-color: var(--orange);
  background-color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.mega-card-num,
.mega-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  display: block;
}

.mega-menu-footer {
  grid-column: 1 / -1;
  padding-top: var(--space-12);
  margin-top: var(--space-8);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.mega-menu-view-all {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  transition: color var(--transition-fast);
}

.mega-menu-view-all:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.mega-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-4);
}

.mega-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--navy);
  padding: var(--space-8);
  cursor: pointer;
}

.mobile-menu-btn svg {
  width: 26px;
  height: 26px;
}

/* --- 10. Hero Component (.hero, .hero-section) --- */
.hero, .hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
  color: var(--text);
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-48);
  align-items: center;
}

.hero-content h1 {
  color: var(--heading);
  margin-bottom: var(--space-16);
}

.hero-lead {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--space-32);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
  margin-bottom: var(--space-32);
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16);
  padding-top: var(--space-24);
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(242, 154, 56, 0.12);
  border: 1px solid rgba(242, 154, 56, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.trust-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
}

.trust-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
}

.hero-panel-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.hero-quick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.hero-quick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-8) var(--space-16);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s;
}

.hero-quick-item:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--bg);
}

/* --- 11. Product Card Component (.product-card) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-24);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.product-card-media {
  height: 190px;
  background-color: #FAFAFA;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  position: relative;
}

.product-card-img {
  max-height: 155px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s;
}

.product-card:hover .product-card-img {
  transform: scale(1.03);
}

.product-card-body {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-badges-row {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.product-model {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.product-model:hover {
  color: var(--orange);
}

.product-title {
  font-size: 13px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  line-height: 1.4;
  margin-bottom: var(--space-16);
}

.product-card-specs {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.spec-line {
  font-size: 13px;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.spec-line-key {
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.spec-line-val {
  color: var(--heading);
  font-weight: 400;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.product-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.product-card-actions .btn-primary {
  flex: 1;
}

/* --- 12. Specifications Table (.spec-table) --- */
.specs-table-wrap, .spec-table-wrap {
  margin-top: var(--space-24);
}

.specs-table-title, .spec-table-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 2px solid var(--heading);
}

.specs-table, .spec-table {
  width: 100%;
  border-collapse: collapse;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

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

.specs-table tr:nth-child(even), .spec-table tr:nth-child(even) {
  background-color: var(--bg-soft);
}

.specs-table td, .spec-table td {
  padding: var(--space-8) var(--space-16);
  font-size: 13px;
  min-width: 0;
}

.specs-table td.spec-key-col, .spec-table td.spec-key-col {
  width: 36%;
  font-weight: 700;
  color: var(--heading);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.specs-table td.spec-val-col, .spec-table td.spec-val-col {
  width: 64%;
  color: var(--text);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  min-width: 0;
}

/* Prompt 39: Product Spec Table Mobile Stacking (viewport <= 768px) */
@media (max-width: 768px) {
  .specs-table,
  .spec-table,
  .specs-table tbody,
  .spec-table tbody {
    display: block !important;
    width: 100% !important;
  }

  .specs-table tr,
  .spec-table tr {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid var(--border) !important;
    padding: var(--space-8) 0 !important;
    box-sizing: border-box !important;
  }

  .specs-table tr:nth-child(even),
  .spec-table tr:nth-child(even) {
    background-color: var(--bg-soft) !important;
  }

  .specs-table td,
  .spec-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  .specs-table td.spec-key-col,
  .spec-table td.spec-key-col {
    width: 100% !important;
    font-weight: 700 !important;
    color: var(--heading) !important;
    padding: 4px var(--space-16) 2px var(--space-16) !important;
    line-height: 1.4 !important;
  }

  .specs-table td.spec-val-col,
  .spec-table td.spec-val-col {
    width: 100% !important;
    color: var(--text) !important;
    padding: 2px var(--space-16) 6px var(--space-16) !important;
    line-height: 1.5 !important;
  }
}

/* --- 13. Other Content Grids & Shared Cards --- */
/* Categories Grid — Horizontal Rows (Preview v9) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.category-card {
  background-color: #FFFFFF;
  border: 1px solid #e5e8ec;
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.08) !important;
  border-color: var(--orange, #E09040) !important;
}

.category-icon-chip {
  width: 62px;
  height: 62px;
  min-width: 62px;
  max-width: 62px;
  border-radius: 50%;
  background-color: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon-chip svg {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.category-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.category-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #0B1F3A;
  margin-bottom: 4px;
  line-height: 1.3;
}

.category-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #505050;
  margin: 0;
}

.category-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.category-count-pill {
  background-color: #fdf1e3;
  color: #b96a1b;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1.2;
}

.category-chevron {
  color: #B0B8C1;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.category-card:hover .category-chevron {
  color: var(--orange, #E09040);
  transform: translateX(2px);
}

/* Brand Grid — Logo-Only Cards (Preview v9) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.brand-card {
  background-color: #FFFFFF;
  border: 1px solid #e5e8ec;
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 116px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.08) !important;
  border-color: var(--orange, #E09040) !important;
}

.brand-logo-wrap {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-img {
  max-width: 180px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.brand-fallback-name {
  font-size: 19px;
  font-weight: 700;
  color: #0B1F3A;
  text-align: center;
  line-height: 1.25;
  height: 56px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.view-all-brands-wrap {
  text-align: center;
  margin-top: 2rem;
}

.view-all-brands-link {
  font-size: 14px;
  font-weight: 700;
  color: #0B1F3A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.view-all-brands-link:hover {
  color: var(--orange, #E09040);
}

@media (max-width: 1100px) {
  .brand-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .brand-card {
    padding: 20px 12px;
    min-height: 100px;
  }
  .brand-logo-img {
    max-width: 130px;
    max-height: 48px;
  }
  .brand-fallback-name {
    font-size: 16px;
    height: 48px;
  }
  .category-card {
    padding: 14px 14px;
    gap: 12px;
  }
  .category-icon-chip {
    width: 52px;
    height: 52px;
    min-width: 52px;
    max-width: 52px;
  }
  .category-icon-chip svg {
    width: 30px;
    height: 30px;
  }
  .category-card-title {
    font-size: 15.5px;
  }
  .category-card-desc {
    font-size: 12.5px;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-24);
}

.service-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.service-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-8);
  line-height: 1.35;
}

.service-scope {
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: var(--space-16);
  flex-grow: 1;
}

.service-brands-strip {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.service-brand-pill {
  font-size: 13px;
  font-weight: 700;
  padding: var(--space-4) var(--space-8);
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
}

.service-actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* Sector Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-24);
}

.sector-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-32);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow-sm);
}

.sector-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sector-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.sector-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-8);
}

.sector-desc {
  font-size: 13px;
  color: var(--text);
  margin-bottom: var(--space-16);
  line-height: 1.5;
}

.sector-machines-preview {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-8);
  margin-top: auto;
}

/* --- 14. Universal CTA Banner Component (.cta-banner) --- */
.cta-banner {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-48);
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-24);
}

.cta-banner h2, .cta-banner h3 {
  color: var(--heading);
  margin-bottom: var(--space-8);
}

.cta-banner p {
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
}

/* Obsolete Hardware Section Component */
.obsolete-section {
  background: var(--border-light);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-48);
  margin-top: var(--space-32);
  margin-bottom: var(--space-32);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.obsolete-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-32);
  align-items: center;
}

.obsolete-content h2 {
  color: var(--heading);
  margin-bottom: var(--space-16);
}

.obsolete-content p {
  color: var(--text);
  font-size: 16px;
  margin-bottom: var(--space-24);
}

.obsolete-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-24);
  color: var(--text);
}

.obsolete-card h3 {
  color: var(--heading);
}

/* Machine Master Index (.machine-card, .machine-dot) */
.machine-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-16);
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.machine-dot {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

/* Service Detail Page Reusable Components */
.service-hero-banner {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin-bottom: var(--space-48);
}

.service-layout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-48);
  margin-bottom: var(--space-64);
}

.callout-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-soft);
  border-left: 4px solid var(--navy);
  padding: var(--space-16);
  border-radius: var(--radius);
  margin-bottom: var(--space-32);
}

.fault-list {
  list-style: none;
  margin-bottom: var(--space-32);
}

.fault-item {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  font-size: 16px;
  color: var(--text);
}

.fault-bullet {
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

.workflow-step {
  display: flex;
  gap: var(--space-16);
  align-items: flex-start;
  margin-bottom: var(--space-16);
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  font-size: 16px;
  color: var(--text);
  padding-top: var(--space-4);
}

.sidebar-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin-bottom: var(--space-24);
}

.sidebar-card-title {
  font-size: 20px;
  margin-bottom: var(--space-16);
  color: var(--heading);
  font-weight: 700;
}

/* Fast Facts Card on About Page */
.fast-facts-card {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-sm);
}

.fast-facts-title {
  color: var(--heading);
  font-size: 20px;
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.fact-item {
  margin-bottom: var(--space-16);
}

.fact-label {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.fact-value {
  font-weight: 700;
  font-size: 16px;
  color: var(--heading);
}

/* Product Detail Page Specifics */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-48);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-48);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.product-main-media {
  background-color: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
}

.product-main-media img {
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.thumb-btn {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: var(--space-4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.thumb-btn.active, .thumb-btn:hover {
  border-color: var(--orange);
}

.thumb-btn img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: var(--space-8);
  line-height: 1.25;
}

.product-detail-model {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-16);
}

.product-ctas-box {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-16);
  margin-bottom: var(--space-32);
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-32);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--orange);
}

/* Catalog Filter Bar */
.catalog-toolbar {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-24);
  margin-bottom: var(--space-32);
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1fr auto;
  gap: var(--space-16);
  align-items: center;
}

.filter-control {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.filter-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.filter-input, .filter-select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 var(--space-8);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--navy);
  outline: none;
  background-color: var(--bg);
}

.filter-input:focus, .filter-select:focus {
  border-color: var(--orange);
}

.filter-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-8);
}

.count-strong {
  color: var(--heading);
  font-weight: 700;
}

/* Contact Page Form & Modal */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-48);
}

.contact-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-4);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8) var(--space-16);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--navy);
  outline: none;
  background-color: var(--bg);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 154, 56, 0.15);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 21, 39, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: var(--space-32);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: var(--space-4);
}

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

/* --- 15. Footer Component (.site-footer) --- */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  border-top: 3px solid var(--orange);
  margin-top: auto;
  font-size: 13px;
}

.footer-top {
  padding-top: var(--space-64);
  padding-bottom: var(--space-48);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: var(--space-32);
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--footer-heading);
  margin-bottom: var(--space-16);
  letter-spacing: -0.01em;
  padding-bottom: var(--space-8);
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-16);
}

.footer-about {
  color: var(--footer-text);
  line-height: 1.6;
  margin-bottom: var(--space-16);
  font-size: 13px;
}

.footer-credentials {
  font-size: 13px;
  color: var(--footer-muted);
  line-height: 1.5;
  margin-bottom: var(--space-16);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-link {
  color: var(--footer-text);
  text-decoration: none;
  transition: all 0.15s;
  display: inline-block;
}

.footer-link:hover {
  color: var(--orange);
  padding-left: var(--space-4);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  color: var(--footer-text);
  text-decoration: none;
}

.footer-contact-item svg {
  stroke: var(--orange);
  fill: none;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-social-row {
  margin-top: var(--space-16);
  display: flex;
  gap: var(--space-8);
}

.footer-trial-banner {
  background-color: var(--border);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-8) 0;
  text-align: center;
  font-size: 13px;
  color: var(--heading);
}

.footer-trial-banner a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
}

.footer-trial-banner a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding: var(--space-16) 0;
  background-color: var(--border-light);
  color: var(--footer-muted);
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-8);
}

/* Theme 2: Graphite Industrial Specific Modifiers */
[data-theme="graphite-industrial"] .site-footer,
[data-theme="graphite-industrial"] .site-footer .footer-about,
[data-theme="graphite-industrial"] .site-footer .footer-link,
[data-theme="graphite-industrial"] .site-footer .footer-col-title,
[data-theme="graphite-industrial"] .site-footer .footer-contact-item,
[data-theme="graphite-industrial"] .site-footer .footer-credentials,
[data-theme="graphite-industrial"] .site-footer .footer-bottom,
[data-theme="graphite-industrial"] .site-footer .footer-bottom-inner,
[data-theme="graphite-industrial"] .site-footer .footer-trial-banner {
  color: #FFFFFF;
}

[data-theme="graphite-industrial"] .footer-bottom {
  background-color: #242424;
}

[data-theme="graphite-industrial"] .footer-trial-banner {
  background-color: #242424;
  border-color: #383838;
}

/* Theme 3: Steel Blue Specific Modifiers */
[data-theme="steel-blue"] a:hover {
  color: var(--accent);
}
[data-theme="steel-blue"] .footer-col-title {
  border-bottom-color: var(--accent);
}
[data-theme="steel-blue"] .site-footer {
  border-top-color: var(--accent);
}
[data-theme="steel-blue"] .nav-link:hover {
  color: var(--accent);
  background-color: rgba(46, 111, 168, 0.08);
}
[data-theme="steel-blue"] .nav-item.active .nav-link {
  color: var(--heading);
  border-bottom-color: var(--accent);
}

/* Theme 4: Control Room Dark Specific Modifiers */
[data-theme="control-room-dark"] .site-footer {
  background-color: #0E1114;
}
[data-theme="control-room-dark"] .footer-bottom {
  background-color: #080A0C;
}
[data-theme="control-room-dark"] .footer-trial-banner {
  background-color: #080A0C;
  border-color: #1E242B;
  color: #D7DDE3;
}
[data-theme="control-room-dark"] .product-card-media {
  background-color: #1A2027;
}
[data-theme="control-room-dark"] .header-search-form,
[data-theme="control-room-dark"] .form-input,
[data-theme="control-room-dark"] .form-select,
[data-theme="control-room-dark"] .form-textarea {
  background-color: #1A2027;
  color: #FFFFFF;
  border-color: #2C3540;
}
[data-theme="control-room-dark"] .search-results-dropdown {
  background-color: #1A2027;
  border-color: #2C3540;
}
[data-theme="control-room-dark"] .search-result-item:hover {
  background-color: #252D37;
}
[data-theme="control-room-dark"] .modal-dialog {
  background-color: #1A2027;
  border: 1px solid #2C3540;
  color: #D7DDE3;
}
[data-theme="control-room-dark"] .admin-card,
[data-theme="control-room-dark"] .admin-table-card {
  background-color: #1A2027;
  border-color: #2C3540;
}
[data-theme="control-room-dark"] .machine-card {
  background-color: #1A2027;
  border-color: #2C3540;
}
[data-theme="control-room-dark"] .badge-stock-ready {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border-color: rgba(74, 222, 128, 0.3);
}
[data-theme="control-room-dark"] .badge-stock-import {
  background-color: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border-color: rgba(252, 211, 77, 0.3);
}
[data-theme="control-room-dark"] .badge-stock-discontinued {
  background-color: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border-color: rgba(248, 113, 113, 0.3);
}
[data-theme="control-room-dark"] .badge-brand {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- 16. SPA Progress Bar & Skeleton Loaders (Phase 2 Primitives) --- */
#spa-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--orange);
  z-index: 9999;
  width: 0%;
  transition: width 0.18s ease-out, opacity 0.2s ease-in;
  pointer-events: none;
}

/* Fast Fade Content Transition Container */
#main-content {
  transition: opacity 0.15s ease-in-out;
}

#main-content.spa-fade-out {
  opacity: 0;
}

#main-content.spa-fade-in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #main-content, #spa-progress-bar {
    transition: none;
  }
}

/* Pulse Skeleton Loaders */
@keyframes skeleton-pulse {
  0% { background-color: #EDF2F7; }
  50% { background-color: #E2E8F0; }
  100% { background-color: #EDF2F7; }
}

.skeleton {
  animation: skeleton-pulse 1.2s ease-in-out infinite;
  border-radius: var(--radius);
  display: block;
}

.skeleton-card {
  height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-card-media {
  height: 190px;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}

.skeleton-card-body {
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  flex: 1;
}

.skeleton-line {
  height: 14px;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
  border-radius: var(--radius);
}

.skeleton-line-sm { width: 40%; height: 12px; }
.skeleton-line-md { width: 70%; height: 16px; }
.skeleton-line-lg { width: 95%; height: 14px; }
.skeleton-btn { height: 38px; width: 100%; margin-top: auto; animation: skeleton-pulse 1.2s ease-in-out infinite; border-radius: var(--radius); }

/* --- 17. Admin Panel Consolidated Styles --- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.admin-brand {
  padding: var(--space-24) var(--space-16);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

.admin-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.admin-brand-text h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.admin-brand-text span {
  font-size: 13px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.admin-nav {
  padding: var(--space-16) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  color: var(--heading);
  background-color: var(--border-light);
}

.admin-nav-item.active {
  color: var(--heading);
  background-color: var(--border-light);
  border-left-color: var(--orange);
}

.admin-nav-badge {
  margin-left: auto;
  background: var(--border);
  color: var(--heading);
  padding: var(--space-4) var(--space-8);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}

.admin-sidebar-footer {
  padding: var(--space-16);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-soft);
}

.admin-topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-16) var(--space-32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.admin-topbar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
}

.admin-content {
  padding: var(--space-32);
  flex: 1;
}

/* Admin Auth / Login / Setup Screen */
.admin-auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--border-light);
  padding: var(--space-16);
}

.admin-auth-box {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 440px;
  padding: var(--space-32);
}

.admin-auth-header {
  text-align: center;
  margin-bottom: var(--space-24);
}

.admin-auth-header img {
  max-height: 48px;
  width: auto;
  margin: 0 auto var(--space-16) auto;
}

.admin-auth-header h1 {
  font-size: 20px;
  color: var(--heading);
  font-weight: 700;
}

/* --- 18. Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .obsolete-grid {
    grid-template-columns: 1fr;
  }
  .service-layout-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }
}

@media (max-width: 860px) {
  h1, .h1 {
    font-size: 32px;
  }
  h2, .h2 {
    font-size: 26px;
  }
  .section {
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }
  
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--navy, #0B1F3A);
    padding: var(--space-8);
    cursor: pointer;
    z-index: 1010;
  }

  .site-nav-row {
    display: none;
    background-color: #FFFFFF !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    padding: var(--space-20);
    border-top: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(11, 31, 58, 0.18);
  }

  .site-nav-row.open {
    display: block !important;
  }

  .nav-list, .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-8);
  }

  .site-nav-row .nav-link {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 10px 12px !important;
    color: #0B1F3A !important;
    background-color: transparent !important;
    text-decoration: none !important;
  }

  .site-nav-row .nav-item.open > .nav-link {
    color: #E09040 !important;
  }

  .site-nav-row .nav-item.nav-item-smart-factory .nav-link,
  .site-nav-row .nav-link.nav-link-smart-factory {
    background-color: #E09040 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    padding: 8px 18px !important;
    margin: 4px 0 !important;
    display: inline-flex !important;
    width: auto !important;
  }

  .site-nav-row .nav-item.nav-item-smart-factory .nav-link svg,
  .site-nav-row .nav-link.nav-link-smart-factory svg {
    stroke: #FFFFFF !important;
  }

  .site-nav-row .nav-dropdown-item {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #0B1F3A !important;
    background-color: transparent !important;
    text-decoration: none !important;
  }

  .site-nav-row .nav-dropdown-item:hover {
    color: #E09040 !important;
    background-color: rgba(224, 144, 64, 0.08) !important;
  }

  .nav-dropdown, .dropdown-panel, .nav-mega-menu {
    display: none;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none;
    overflow-y: visible;
    box-shadow: none;
    border-radius: var(--radius);
    margin-top: var(--space-8);
    padding: var(--space-8);
    background-color: #F4F6F8 !important;
    border: 1px solid #E2E6EA !important;
    box-sizing: border-box !important;
    left: auto !important;
    right: auto !important;
  }

  .nav-item.open > .nav-dropdown,
  .nav-item.open > .dropdown-panel,
  .nav-item.open > .nav-mega-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .site-nav-row .mega-menu-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    min-height: 44px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5E8EB !important;
    border-radius: 6px !important;
    color: #0B1F3A !important;
    text-decoration: none !important;
  }

  .site-nav-row .mega-menu-card:hover {
    border-color: #E09040 !important;
    background-color: #FFFFFF !important;
  }

  .site-nav-row .mega-menu-card .mega-card-num,
  .site-nav-row .mega-menu-card .mega-card-eyebrow {
    display: none !important;
  }

  .site-nav-row .mega-menu-card .mega-card-title {
    margin-bottom: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0B1F3A !important;
    flex: 1 1 auto !important;
  }

  .site-nav-row .mega-menu-card .mega-card-desc {
    font-size: 12px !important;
    color: #505050 !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
  }

  .site-nav-row .mega-menu-footer .mega-menu-view-all {
    color: #0B1F3A !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    display: inline-block !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .header-search-wrap {
    display: none;
  }
  
  .header-search-wrap.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: var(--space-8);
    background-color: var(--bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  /* Universal touch targets & iOS zoom prevention */
  input[type="text"],
  input[type="search"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea,
  .hero-search-input,
  .header-search-input,
  .filter-input,
  .filter-select {
    font-size: 16px !important;
    min-height: 44px !important;
  }

  .btn,
  .hero-search-btn,
  .mobile-menu-btn,
  #resetFiltersBtn {
    min-height: 44px !important;
  }

  /* Table container scroll isolation */
  .specs-table-wrap,
  .spec-table-wrap,
  .table-container,
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
  }

  /* Inline grids responsive collapse */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 0.8fr"],
  div[style*="grid-template-columns:1.2fr 0.8fr"],
  .about-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Hero & banner container padding on mobile */
  div[style*="padding: 3rem"],
  div[style*="padding:3rem"],
  div[style*="padding: 2.5rem"],
  div[style*="padding:2.5rem"] {
    padding: 1.5rem 1.25rem !important;
  }

  /* Button mobile wrapping and touch sizing */
  .btn {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* iOS safe viewport height */
  .hero-photographic {
    padding-top: clamp(2rem, 5svh, 3rem) !important;
    padding-bottom: clamp(2rem, 5svh, 3rem) !important;
  }
}

@media (max-width: 480px) {
  div[style*="padding: 3rem"],
  div[style*="padding:3rem"],
  div[style*="padding: 2.5rem"],
  div[style*="padding:2.5rem"] {
    padding: 1.25rem 0.85rem !important;
  }

  .hero-photographic {
    padding-top: clamp(1.5rem, 4svh, 2.5rem) !important;
    padding-bottom: clamp(1.5rem, 4svh, 2.5rem) !important;
  }
  .container {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }
  .header-main-row {
    gap: var(--space-8);
  }
  .header-logo-img {
    height: 38px;
    max-width: 135px;
  }
  .header-actions .btn-sm {
    padding: var(--space-8) var(--space-8);
    font-size: 13px;
  }
  .top-bar-inner {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    font-size: 12px;
  }
  .top-bar-email {
    display: none !important;
  }
  .top-bar-contact-zone {
    padding: 0 0.6rem;
    gap: 0.5rem;
  }
  .top-bar-wa span {
    font-size: 11.5px;
  }
  .hero-trust-bar {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .product-ctas-box {
    flex-direction: column;
  }
  .product-ctas-box .btn {
    width: 100%;
  }
}


/* ==========================================================================
   --- 19. Consolidated Admin Panel System ---
   ========================================================================== */
/**
 * Industrial Automation Solution - Admin Panel Stylesheet
 * Responsive, clean, industrial navy (#0B1F3A) & orange (#F29A38) theme.
 */

:root {
  --admin-navy: #0B1F3A;
  --admin-navy-dark: #071426;
  --admin-navy-light: #162E52;
  --admin-orange: #F29A38;
  --admin-orange-hover: #D98226;
  --admin-green: #16A34A;
  --admin-red: #DC2626;
  --admin-slate-50: #F8FAFC;
  --admin-slate-100: #F1F5F9;
  --admin-slate-200: #E2E8F0;
  --admin-slate-300: #CBD5E1;
  --admin-slate-600: #475569;
  --admin-slate-700: #334155;
  --admin-slate-800: #1E293B;
  --admin-radius: 6px;
  --admin-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --admin-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

/* ---------------- Admin Layout & Shell ---------------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-soft);
}

.admin-sidebar {
  width: 260px;
  background-color: var(--admin-navy);
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: transform 0.25s ease;
}

.admin-brand {
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #071426;
}

.admin-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.admin-brand-text h1 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.admin-brand-text span {
  font-size: 0.75rem;
  color: var(--admin-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.admin-nav {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #94A3B8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.06);
}

.admin-nav-item.active {
  color: #FFFFFF;
  background-color: rgba(224, 144, 64, 0.14);
  border-left-color: var(--admin-orange);
  font-weight: 600;
}

.admin-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

.admin-nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: #071426;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-soft);
}

.admin-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--admin-slate-200);
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.admin-topbar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-navy);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-content {
  padding: 2rem;
  flex: 1;
}

/* ---------------- Two-Column Edit Form Layout ---------------- */
.admin-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.5rem;
  align-items: start;
}

/* ---------------- Image Manager Component (3A) ---------------- */
.image-dropzone {
  border: 2px dashed var(--admin-slate-300);
  border-radius: 8px;
  padding: 1.75rem 1rem;
  text-align: center;
  background: var(--admin-slate-50);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.image-dropzone:hover, .image-dropzone.dragover {
  border-color: var(--admin-orange);
  background: #FFFBF5;
}
.image-dropzone svg {
  color: var(--admin-orange);
  margin-bottom: 0.5rem;
}
.image-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.image-card {
  position: relative;
  border: 2px solid var(--admin-slate-200);
  border-radius: 6px;
  background: #fff;
  padding: 0.5rem;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  user-select: none;
}
.image-card.is-primary {
  border-color: var(--admin-orange);
  box-shadow: 0 0 0 1px var(--admin-orange);
}
.image-card-thumb {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: var(--admin-slate-50);
  border-radius: 4px;
  margin-bottom: 0.35rem;
}
.image-primary-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--admin-orange);
  color: #fff;
  cursor: default;
}
.image-make-primary-btn {
  font-size: 0.7rem;
  color: var(--admin-slate-600);
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--admin-slate-200);
  background: #fff;
}
.image-make-primary-btn:hover {
  border-color: var(--admin-orange);
  color: var(--admin-orange);
}
.image-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.image-delete-btn:hover {
  background: #B91C1C;
}
.image-order-controls {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
}
.image-order-btn {
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  background: var(--admin-slate-100);
  border: 1px solid var(--admin-slate-200);
  border-radius: 3px;
  cursor: pointer;
  color: var(--admin-slate-700);
}
.image-order-btn:hover {
  background: var(--admin-slate-200);
}
.image-progress-bar {
  width: 100%;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.25rem;
}
.image-progress-bar-fill {
  height: 100%;
  background: var(--admin-orange);
  transition: width 0.2s ease;
}

/* ---------------- Bulk Action Sticky Bar (3B) ---------------- */
.admin-bulk-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--admin-navy);
  color: #FFFFFF;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 999;
  display: none;
  align-items: center;
  gap: 1.25rem;
  max-width: 95vw;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.admin-bulk-bar.active {
  display: flex;
}
.row-selected {
  background-color: #FEF3C7 !important;
}

/* ---------------- Sticky Save Bar ---------------- */
.admin-sticky-bar {
  position: sticky;
  bottom: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--admin-slate-200);
  padding: 1rem 1.5rem;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* ---------------- Toast Notifications ---------------- */
.admin-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.admin-toast {
  pointer-events: auto;
  background: var(--admin-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--admin-orange);
  animation: fadeInRight 0.2s ease forwards;
}
.admin-toast.success {
  border-left-color: #16A34A;
}
.admin-toast.danger {
  border-left-color: #DC2626;
}
.admin-toast.warning {
  border-left-color: #F59E0B;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--admin-radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--admin-orange);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--admin-orange-hover);
  color: #fff;
}

.btn-navy {
  background-color: var(--admin-navy);
  color: #fff;
}
.btn-navy:hover {
  background-color: var(--admin-navy-light);
  color: #fff;
}

.btn-outline {
  border-color: var(--admin-slate-300);
  background: #fff;
  color: var(--admin-slate-700);
}
.btn-outline:hover {
  background: var(--admin-slate-100);
  color: var(--admin-navy);
}

.btn-danger {
  background-color: var(--admin-red);
  color: #fff;
}
.btn-danger:hover {
  background-color: #B91C1C;
  color: #fff;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
}

/* ---------------- Cards & Stats ---------------- */
.card {
  background: #fff;
  border: 1px solid var(--admin-slate-200);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-slate-200);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--admin-navy);
}

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--admin-slate-600);
  margin-top: 0.2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--admin-slate-200);
  border-radius: var(--admin-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--admin-shadow);
}

.stat-info span {
  display: block;
  font-size: 0.8125rem;
  color: var(--admin-slate-600);
  font-weight: 500;
}

.stat-info strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--admin-navy);
  line-height: 1.2;
  margin-top: 0.25rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--admin-slate-100);
  color: var(--admin-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.orange {
  background: #FEF3C7;
  color: #D97706;
}

.stat-icon.green {
  background: #DCFCE7;
  color: #16A34A;
}

.stat-icon.blue {
  background: #E0E7FF;
  color: #4338CA;
}

/* ---------------- Tables ---------------- */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--admin-slate-200);
  border-radius: var(--admin-radius);
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-table th {
  background: var(--admin-slate-100);
  color: var(--admin-navy);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--admin-slate-200);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--admin-slate-200);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: var(--admin-slate-50);
}

.product-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #F1F5F9;
  border: 1px solid var(--admin-slate-200);
  border-radius: 4px;
  padding: 2px;
}

/* ---------------- Badges ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.badge-green {
  background: #DCFCE7;
  color: #166534;
}

.badge-blue {
  background: #DBEAFE;
  color: #1E40AF;
}

.badge-gray {
  background: #F1F5F9;
  color: #475569;
}

.badge-orange {
  background: #FEF3C7;
  color: #92400E;
}

.badge-red {
  background: #FEE2E2;
  color: #991B1B;
}

/* ---------------- Forms ---------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-slate-700);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid var(--admin-slate-300);
  border-radius: var(--admin-radius);
  background: #fff;
  color: var(--admin-slate-800);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--admin-navy);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.1);
}

.form-control:disabled, .form-control[readonly] {
  background-color: var(--admin-slate-100);
  cursor: not-allowed;
  color: #64748B;
}

.form-help {
  display: block;
  font-size: 0.775rem;
  color: var(--admin-slate-600);
  margin-top: 0.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-col {
  flex: 1;
  min-width: 220px;
}

/* ---------------- Dynamic Specs Table in Form ---------------- */
.spec-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-row input {
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  border: 1px solid var(--admin-slate-300);
  border-radius: var(--admin-radius);
}

.spec-row .spec-key {
  width: 35%;
}

.spec-row .spec-val {
  flex: 1;
}

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.btn-icon:hover {
  color: var(--admin-red);
  background: #FEE2E2;
}

/* ---------------- Alerts / Flash ---------------- */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--admin-radius);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #166534;
}

.alert-danger {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.alert-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

/* ---------------- Admin Responsive (including 390px mobile) ---------------- */
@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-content {
    padding: 1rem;
  }
  .admin-topbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .admin-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .admin-content {
    padding: 0.75rem 0.5rem;
  }
  .admin-topbar-title {
    font-size: 1rem;
  }
  .admin-brand {
    padding: 1rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .image-manager-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-sticky-bar {
    padding: 0.75rem;
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .admin-sticky-bar .btn {
    flex: 1 1 100%;
    text-align: center;
  }
  .admin-bulk-bar {
    bottom: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.8125rem;
    width: calc(100% - 1rem);
    justify-content: space-between;
  }
}

/* ---------------- Theme Manager Component ---------------- */
.theme-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-16);
}

.theme-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.theme-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.theme-card.active-card,
.theme-card.selected-card {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224, 144, 64, 0.25);
}

.theme-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-16);
  gap: var(--space-8);
}

.theme-radio {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 3px;
}

.theme-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  display: block;
  line-height: 1.25;
}

.theme-card-tagline {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin-top: 2px;
}

.theme-active-badge {
  background-color: #DCFCE7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.theme-card-desc {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: var(--space-16);
  flex-grow: 1;
}

.theme-swatch-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px;
  background-color: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: var(--space-16);
}

.theme-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.theme-swatch-box {
  width: 100%;
  height: 28px;
  border-radius: 4px;
}

.theme-swatch-label {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.2;
}

.theme-swatch-label code {
  font-size: 9px;
  font-family: var(--font-mono);
}

.theme-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  margin-top: auto;
  padding-top: var(--space-16);
  border-top: 1px solid var(--border);
}

.theme-card-actions .btn {
  font-size: 12px;
  padding: 8px 14px;
}

/* ==========================================================================
   PHASE 2: PHOTOGRAPHIC NAVY HERO, STATS STRIP & LIGHT MOTION
   ========================================================================== */

/* --- 2A: Photographic Navy Hero --- */
.hero-photographic {
  position: relative;
  background-color: var(--navy, #0B1F3A);
  background-image: linear-gradient(rgba(11, 31, 58, 0.78), rgba(11, 31, 58, 0.78)), url('../images/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content-centered {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-24);
  text-align: center;
}

.hero-company-name,
.hero-photographic h1.hero-company-name {
  font-size: 42px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin-bottom: var(--space-8);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.hero-tagline-pill {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange, #E09040);
  background: rgba(224, 144, 64, 0.15);
  border: 1px solid rgba(224, 144, 64, 0.4);
  padding: 4px 18px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange, #E09040);
  background: rgba(224, 144, 64, 0.15);
  border: 1px solid rgba(224, 144, 64, 0.35);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: var(--space-16);
}

.hero-subheadline,
.hero-photographic .hero-subheadline {
  font-size: 33.6px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: var(--space-16);
  letter-spacing: -0.01em;
  text-align: center;
}

.hero-photographic h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.18;
  color: #FFFFFF;
  margin-bottom: var(--space-16);
  letter-spacing: -0.02em;
}

.hero-photographic .highlight-orange {
  color: var(--orange, #E09040);
}

.hero-photographic .hero-lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto var(--space-24);
}

/* Prominent Hero Search Bar (Flush Right Button Layout) */
.hero-search-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto var(--space-24);
  position: relative;
  z-index: 50;
}

.hero-search-form {
  position: relative;
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  height: auto;
  border: none;
  background: transparent;
}

.hero-search-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-lg, 8px);
  padding: 4px 4px 4px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.hero-search-input-group:focus-within {
  border-color: var(--orange, #E09040);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero-search-icon {
  width: 22px;
  height: 22px;
  color: #64748B;
  flex-shrink: 0;
  margin-right: 12px;
}

.hero-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--navy, #0B1F3A);
  background: transparent;
  padding: 10px 8px;
}

.hero-search-input::placeholder {
  color: #94A3B8;
}

.hero-search-btn {
  flex-shrink: 0;
  margin-left: auto;
  background-color: var(--orange, #E09040);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-sans);
  padding: 12px 22px;
  border-radius: var(--radius, 6px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.hero-search-btn:hover {
  filter: brightness(0.92);
}

/* Hero Actions */
.hero-actions-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.hero-cta-btn {
  background-color: var(--orange, #E09040);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius, 6px);
  box-shadow: 0 4px 14px rgba(224, 144, 64, 0.39);
  transition: transform 0.2s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.92);
  box-shadow: 0 6px 18px rgba(224, 144, 64, 0.45);
}

.hero-link-secondary {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.hero-link-secondary:hover {
  color: var(--orange, #E09040);
}

/* Ensure Search Dropdown on Hero is left-aligned and properly positioned */
.hero-search-wrap .search-results-dropdown {
  text-align: left;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
}

/* --- 2C: Light Motion & Hover States --- */
@keyframes heroFadeRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-rise {
  animation: heroFadeRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.25s; }
.delay-4 { animation-delay: 0.35s; }
.delay-5 { animation-delay: 0.45s; }

/* Category/Product card lift +4px on hover */
.product-card, .category-card, .service-card, .stat-card, .mega-menu-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover, .category-card:hover, .service-card:hover, .stat-card:hover, .mega-menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

/* Button hover state */
.btn {
  transition: background-color 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(0.92);
}

/* Section headings short orange underline accent */
.section-header h2::after, .section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-orange, #E09040);
  margin-top: var(--space-8);
  border-radius: 2px;
}

.section-header.text-center h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* --- Stats Strip directly under hero on white --- */
.stats-strip-section {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: var(--space-24) 0;
}

.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-24);
  align-items: center;
}

.stat-card {
  padding: var(--space-8) var(--space-16);
  border-right: 1px solid var(--border);
  text-align: center;
  background: transparent;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 80px;
}

.stat-card:last-child {
  border-right: none;
}

.stat-number-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
}

.stat-prefix, .stat-suffix {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange, #E09040);
  white-space: nowrap;
}

.stat-number {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy, #0B1F3A);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-label {
  font-size: 13px;
  color: #505050;
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

@media (min-width: 1200px) {
  .stats-strip-section .container {
    max-width: 1360px;
  }
  .stats-strip-grid {
    gap: var(--space-32);
  }
  .stat-card {
    padding: var(--space-8) var(--space-20);
  }
  .stat-label {
    font-size: 14px;
    white-space: nowrap;
  }
}

/* --- Mobile Breakpoints for Hero & Logo --- */
@media (max-width: 860px) {
  .hero-company-name,
  .hero-photographic h1.hero-company-name {
    font-size: 28px;
    letter-spacing: 0.01em;
  }
  .hero-subheadline,
  .hero-photographic .hero-subheadline {
    font-size: 22.4px;
    line-height: 1.25;
  }
  .hero-tagline-pill {
    font-size: 13px;
    padding: 3px 12px;
  }
  .header-logo-img {
    height: 44px;
    max-width: 170px;
  }
  .hero-photographic {
    padding-top: var(--space-48);
    padding-bottom: var(--space-48);
  }
  .hero-photographic h1 {
    font-size: 28px;
  }
  .hero-search-input-group {
    padding: 4px 4px 4px 12px;
  }
  .hero-search-btn span {
    display: none;
  }
  .hero-search-btn {
    padding: 10px 14px;
  }
  .stats-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
  }
  .stat-card:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 480px) {
  .hero-company-name,
  .hero-photographic h1.hero-company-name {
    font-size: 24px;
  }
  .hero-subheadline,
  .hero-photographic .hero-subheadline {
    font-size: 19.2px;
    line-height: 1.25;
  }
  .stats-strip-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-12);
  }
  .stat-card:last-child {
    border-bottom: none;
  }
}

/* --- Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-fade-rise {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .product-card:hover, .category-card:hover, .service-card:hover, .stat-card:hover, .mega-menu-card:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   PHASE 3: STICKY SHRINK-ON-SCROLL HEADER & BACK TO TOP BUTTON
   ========================================================================== */

/* --- 3A: Sticky Header & Scroll Margins --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

[id],
h1, h2, h3,
.section-title,
.page-title,
section,
.section,
.catalog-header,
#catalogProducts,
#categories,
#brands,
#services,
#industries,
#about,
#contact {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }
  [id],
  h1, h2, h3,
  .section-title,
  .page-title,
  section,
  .section,
  .catalog-header,
  #catalogProducts,
  #categories,
  #brands,
  #services,
  #industries,
  #about,
  #contact {
    scroll-margin-top: 80px;
  }
}

.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.header-main-row {
  transition: height 0.25s ease, padding 0.25s ease;
}

.site-header.is-compact {
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.12);
}

.site-header.is-compact .header-main-row {
  height: 54px;
}

.site-header.is-compact .header-logo-img {
  height: 40px;
  max-width: 160px;
}

.site-header.is-compact .header-search-input {
  padding: 6px 12px;
}

.site-header.is-compact .header-actions .btn {
  padding: 6px 14px;
  font-size: 13px;
}

/* --- 3B: Floating Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--orange, #E09040);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease, filter 0.2s ease;
  z-index: 800;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #D07F2E;
  filter: brightness(0.95);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.35);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--navy, #0B1F3A);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
  stroke-width: 2.5;
  fill: none;
}

/* Mobile sizing and placement */
@media (max-width: 860px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Respect WhatsApp float if present (12px gap directly above it) */
.whatsapp-float ~ .back-to-top,
.wa-float ~ .back-to-top,
.floating-whatsapp ~ .back-to-top {
  bottom: 84px;
}

/* Floating WhatsApp / Phone Safety Styling: max 56px, below page content */
.floating-whatsapp,
.whatsapp-float,
.wa-float,
.floating-phone,
.phone-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  max-width: 56px;
  max-height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 50; /* BEHIND page content & modals (z-index >= 100), never covering headings */
  text-decoration: none;
  overflow: hidden;
}

.floating-whatsapp svg,
.whatsapp-float svg,
.wa-float svg,
.floating-phone svg,
.phone-float svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  stroke: #FFFFFF;
  fill: currentColor;
}

/* Safety: Prevent any top-bar item svg from overflowing */
.top-bar-item svg {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .site-header, .header-main-row, .header-logo-img, .back-to-top {
    transition: none !important;
  }
}


/* ==========================================================================
   SMART FACTORY STYLES (Menu Highlight, Ken Burns Hero, Cards, Mockup)
   ========================================================================== */

/* Smart Factory Nav Highlight Pill (Desktop & Mobile) */
.nav-item.nav-item-smart-factory {
  display: flex;
  align-items: center;
}

.nav-item.nav-item-smart-factory .nav-link,
.nav-link.nav-link-smart-factory {
  background-color: var(--orange, #E09040) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  margin: 6px 4px !important;
  border-bottom: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: var(--space-6, 6px);
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-item.nav-item-smart-factory .nav-link:hover,
.nav-link.nav-link-smart-factory:hover,
.nav-item.nav-item-smart-factory.active .nav-link,
.nav-item.nav-item-smart-factory.open .nav-link {
  background-color: #C87A2E !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.nav-item.nav-item-smart-factory .nav-link svg,
.nav-link.nav-link-smart-factory svg {
  stroke: #FFFFFF !important;
}

@media (max-width: 860px) {
  .nav-item.nav-item-smart-factory {
    display: block;
    margin: var(--space-8, 8px) 0;
  }
  .nav-item.nav-item-smart-factory .nav-link,
  .nav-link.nav-link-smart-factory {
    display: inline-flex !important;
    width: auto !important;
    background-color: var(--orange, #E09040) !important;
    color: #FFFFFF !important;
    border-radius: 9999px !important;
    padding: 8px 18px !important;
    margin: 4px 0 !important;
  }
}

/* Smart Factory Hero Image with slow CSS-only zoom (Ken Burns) + fade-in */
@keyframes sfFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sfKenBurns {
  0% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1.02);
    opacity: 0.98;
  }
}

.sf-hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg, 12px);
  aspect-ratio: 16 / 9;
  background-color: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  margin-bottom: var(--space-32, 2rem);
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1));
  animation: sfFadeIn 0.8s ease-out forwards;
}

.sf-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  animation: sfKenBurns 20s ease-in-out infinite alternate;
}

/* Sample Project Card Styling */
.sf-sample-card {
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-left: 4px solid var(--orange, #E09040);
  border-radius: var(--radius-md, 8px);
  padding: 1.5rem;
  margin-top: 1rem;
}

.sf-sample-badge {
  display: inline-block;
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.sf-sample-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading, #0f172a);
  margin-bottom: 0.75rem;
}

.sf-sample-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text, #334155);
}

.sf-sample-meta strong {
  color: var(--heading, #0f172a);
}

.sf-sample-note {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted, #64748b);
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border, #cbd5e1);
}

/* Prev / Next Pagination Links */
.sf-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

.sf-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: var(--radius-md, 8px);
  background: var(--bg, #ffffff);
  color: var(--heading, #0f172a);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sf-pagination-btn:hover {
  border-color: var(--orange, #E09040);
  color: var(--orange, #E09040);
  background: var(--bg-soft, #f8fafc);
  transform: translateY(-1px);
}

/* FabricTrack Pro Mockup for SF 03 (Static pure CSS/HTML) */
.sf-mockup-dashboard {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sf-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.sf-mockup-title {
  font-weight: 700;
  font-size: 14px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-mockup-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .sf-mockup-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sf-mockup-kpi-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.75rem;
}

.sf-mockup-kpi-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sf-mockup-kpi-val {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
}

.sf-mockup-kpi-sub {
  font-size: 11px;
  color: #10b981;
}

.sf-mockup-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .sf-mockup-lines-grid {
    grid-template-columns: 1fr;
  }
}

.sf-mockup-line-card {
  background: #1e293b;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.sf-mockup-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  margin-right: 6px;
}
