/* ==========================================================================
   VIAN SCIENTIFIC - MASTER STYLE SHEET
   A modern, simplistic, and high-performance design system.
   ========================================================================== */

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

/* --- Root Variables & Theme System --- */
:root {
  /* Fonts */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Brand Colors (Light Mode) */
  --brand-orange: #EF7F1B;
  --brand-orange-hover: #d66c10;
  --brand-orange-light: #fdf2e8;
  --brand-grey: #707070;
  
  --bg-page: #f8f9fa;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-input: #ffffff;
  --bg-header: rgba(248, 249, 250, 0.8);
  --bg-footer: #212529;
  
  --text-main: #2d2f31;
  --text-muted: #6c757d;
  --text-on-orange: #ffffff;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #EF7F1B;
  
  /* Shadows & Blur */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --glass-blur: blur(12px);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
  --bg-page: #101112;
  --bg-card: rgba(25, 26, 28, 0.65);
  --bg-input: #1f2124;
  --bg-header: rgba(16, 17, 18, 0.8);
  --bg-footer: #0a0b0c;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --border-color: rgba(255, 255, 255, 0.08);
  
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Invert Logo in Dark Mode */
[data-theme="dark"] .logo img {
  filter: brightness(0) invert(1);
}

/* Adjust SVG outlines for dark mode visibility */
[data-theme="dark"] svg *[stroke="#707070"] {
  stroke: var(--text-muted) !important;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-page);
  color: var(--text-main);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-full);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.view-section {
  display: none;
  opacity: 0;
  transform: translateY(15px);
}

.view-section.active {
  display: block !important;
  animation: viewSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes viewSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo img, .logo svg {
  height: 100%;
  width: auto;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-orange);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none !important;
}

.menu-close-icon {
  display: none;
}

.mobile-menu-toggle.is-open .menu-open-icon {
  display: none;
}

.mobile-menu-toggle.is-open .menu-close-icon {
  display: block;
}

.mobile-nav-panel {
  display: none;
  position: absolute;
  top: calc(var(--header-height) - 1px);
  left: 16px;
  right: 16px;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.mobile-nav-panel.open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link,
.mobile-whatsapp-link {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-link.active,
.mobile-nav-link:hover,
.mobile-whatsapp-link:hover {
  color: var(--brand-orange);
  border-color: rgba(232, 122, 36, 0.24);
  background: rgba(232, 122, 36, 0.08);
}

.mobile-whatsapp-link {
  text-decoration: none;
}

/* --- Theme Toggle & Buttons --- */
.icon-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-main);
  background-color: var(--bg-card);
}

.icon-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
}

.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--brand-orange);
  color: var(--text-on-orange);
}

.btn-primary:hover {
  background-color: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 122, 36, 0.25);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

/* Floating Cart Badge */
.cart-btn-container {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--brand-orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(232, 122, 36, 0.4);
}

/* --- Lab Navigator Workflow Section --- */
.lab-navigator-section {
  padding-top: 64px;
  background:
    linear-gradient(135deg, rgba(232, 122, 36, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(57, 49, 134, 0.08), transparent 42%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.lab-nav-header {
  max-width: 760px;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--brand-orange);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.workflow-card {
  position: relative;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 86%, rgba(232, 122, 36, 0.14), transparent 30%),
    var(--bg-card);
  color: var(--text-main);
  text-align: left;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.workflow-card::after {
  content: '';
  position: absolute;
  inset: auto -28px -42px auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(232, 122, 36, 0.28);
  border-radius: var(--radius-full);
}

.workflow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 122, 36, 0.42);
  box-shadow: var(--shadow-md);
}

.workflow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  border-radius: 14px;
  background: var(--brand-orange);
  color: var(--text-on-orange);
  font-family: var(--font-heading);
  font-weight: 800;
}

.workflow-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.workflow-card span:last-child {
  display: block;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}

/* Glowing background elements */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(232, 122, 36, 0.08) 0%, rgba(232, 122, 36, 0) 70%);
  top: -150px;
  right: -100px;
  z-index: -1;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(83, 86, 90, 0.06) 0%, rgba(83, 86, 90, 0) 70%);
  bottom: -50px;
  left: -100px;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 16px;
  display: inline-block;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #f7a059 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

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

/* Beautiful custom graphic for the hero */
.hero-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-visual {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.circle-visual::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-color);
  animation: rotate 60s linear infinite;
}

.logo-large {
  width: 75%;
  height: auto;
}

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

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

/* --- Category Showcase Section --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  background-color: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-orange);
}

.category-card:hover::before {
  background-color: var(--brand-orange);
}

.category-icon {
  width: 64px;
  height: 64px;
  background-color: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition-normal);
}

.category-svg-icon {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-normal) ease;
}

.category-card:hover .category-svg-icon {
  transform: scale(1.15) translateZ(15px);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.category-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-link svg {
  transition: transform var(--transition-fast);
}

.category-card:hover .category-link svg {
  transform: translateX(4px);
}

/* Colors for specific category representations */
.cat-vials { border-top: 3.5px solid #393186; }
.cat-filters { border-top: 3.5px solid #00766A; }
.cat-hplc { border-top: 3.5px solid #A82582; }
.cat-gc { border-top: 3.5px solid #EF7F1B; }
.cat-dissolution { border-top: 3.5px solid #E5194A; }
.cat-weighing { border-top: 3.5px solid #0082C8; }
.cat-validation { border-top: 3.5px solid #1F662E; }
.cat-ftir { border-top: 3.5px solid #B97417; }

/* --- Products Page / View (Modern Grid + Horiz Scroll layout) --- */
.products-layout-new {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

/* Scrollable Category Pill Navigation */
.category-nav-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.category-nav-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.category-nav-scroll {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  width: max-content;
  padding: 4px 0;
}

.cat-pill {
  padding: 10px 22px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  backdrop-filter: var(--glass-blur);
}

.cat-pill:hover {
  border-color: var(--brand-orange);
  color: var(--text-main);
  transform: translateY(-1px);
}

.cat-pill.active {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: white;
  box-shadow: 0 4px 12px rgba(232, 122, 36, 0.25);
}

/* Catalog Control Panel */
.catalog-control-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.layout-toggle-container {
  display: flex;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .layout-toggle-container {
  background-color: rgba(255, 255, 255, 0.05);
}

.layout-toggle-btn {
  border: none;
  background: transparent;
  padding: 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-toggle-btn:hover {
  color: var(--text-main);
}

.layout-toggle-btn.active {
  background-color: var(--bg-card);
  color: var(--brand-orange);
  box-shadow: var(--shadow-sm);
}

/* Visual Product Card Grid */
.catalog-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 12px;
}

.product-card {
  background-color: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
}

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

/* Product card illustration container */
.product-card-preview {
  height: 120px;
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-normal);
}

[data-theme="dark"] .product-card-preview {
  background-color: rgba(255, 255, 255, 0.02);
}

.product-card-preview svg {
  width: 70px;
  height: 70px;
  opacity: 0.85;
  transition: all var(--transition-normal);
  transform: translateZ(20px);
}

.product-card:hover .product-card-preview svg {
  transform: scale(1.12) rotate(2deg) translateZ(35px);
  opacity: 1;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transform-style: preserve-3d;
}

.product-card-cat-badge {
  align-self: start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-orange);
  background-color: var(--brand-orange-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  transform: translateZ(10px);
}

[data-theme="dark"] .product-card-cat-badge {
  background-color: rgba(232, 122, 36, 0.15);
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-main);
  transform: translateZ(15px);
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  transform: translateZ(10px);
}

.product-card-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  transform: translateZ(12px);
}

.product-spec-pill {
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="dark"] .product-spec-pill {
  background-color: rgba(255, 255, 255, 0.02);
}

.product-spec-pill span:first-child {
  color: var(--text-muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 600;
}

.product-spec-pill span:last-child {
  font-weight: 700;
  color: var(--text-main);
}

.product-card-action {
  width: 100%;
  transform: translateZ(15px);
}

/* Product Specifications Drawer Layout */
.spec-title-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.spec-detail-value {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.5;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.spec-img-wrapper {
  width: 100%;
  height: 180px;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .spec-img-wrapper {
  background-color: rgba(255, 255, 255, 0.02);
}

.spec-img-wrapper svg {
  width: 110px;
  height: 110px;
}

.compatibility-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.comp-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.comp-badge.excellent {
  background-color: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.comp-badge.high {
  background-color: rgba(139, 195, 74, 0.12);
  border-color: rgba(139, 195, 74, 0.3);
  color: #8bc34a;
}

.comp-badge.moderate {
  background-color: rgba(255, 152, 0, 0.12);
  border-color: rgba(255, 152, 0, 0.3);
  color: #ff9800;
}

/* Sidebar filter replacement for compatibility */
.products-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Search bar */
.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  font-size: 1rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(232, 122, 36, 0.1);
  background-color: var(--bg-input);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Modern Datatable style */
.table-wrapper {
  background-color: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

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

.product-table th {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

[data-theme="dark"] .product-table th {
  background-color: rgba(255, 255, 255, 0.02);
}

.product-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.product-table tbody tr {
  transition: all var(--transition-fast);
}

.product-table tbody tr:hover {
  background-color: rgba(232, 122, 36, 0.03);
}

[data-theme="dark"] .product-table tbody tr:hover {
  background-color: rgba(232, 122, 36, 0.05);
}

.td-cat-no {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-orange);
  white-space: nowrap;
}

.td-desc {
  font-weight: 500;
}

.td-pack {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.td-hsn {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge {
  background-color: var(--border-color);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-category {
  background-color: var(--brand-orange-light);
  color: var(--brand-orange);
}

[data-theme="dark"] .badge-category {
  background-color: rgba(232, 122, 36, 0.15);
}

/* Pagination / Results count */
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.page-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.page-btn.active {
  background-color: var(--brand-orange);
  color: white;
  border-color: var(--brand-orange);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Floating Inquiry Drawer --- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: var(--bg-page);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
}

.drawer-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.drawer-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  gap: 16px;
  position: relative;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cart-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

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

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.remove-item-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cart-empty svg {
  color: var(--border-color);
  width: 64px;
  height: 64px;
}

/* Inquiry Form */
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.form-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-page);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-orange);
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Manufacturing Page --- */
.mfg-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.mfg-hero {
  background: linear-gradient(135deg, rgba(232, 122, 36, 0.05) 0%, rgba(83, 86, 90, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  border: 1px solid var(--border-color);
}

.mfg-hero h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.mfg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.mfg-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.mfg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mfg-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-orange);
}

.mfg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.mfg-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.mfg-list-item svg {
  color: var(--brand-orange);
  flex-shrink: 0;
  margin-top: 4px;
}

/* --- Contact Section --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-title {
  font-size: 1.75rem;
  font-weight: 700;
}

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

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background-color: var(--brand-orange-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  flex-shrink: 0;
}

[data-theme="dark"] .contact-item-icon {
  background-color: rgba(232, 122, 36, 0.15);
}

.contact-item-details h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background-color: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* --- Footer --- */
footer {
  background-color: var(--bg-footer);
  color: #adb5bd;
  padding: 60px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  align-self: flex-start;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--brand-orange);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-desc {
    margin: 0 auto 36px;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-graphic {
    order: -1;
  }
  .circle-visual {
    width: 300px;
    height: 300px;
  }
  .products-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
    width: 100%;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  :root {
    --header-height: 70px;
  }
  .section {
    padding: 60px 0;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  nav ul {
    display: none;
  }
  .nav-container {
    justify-content: space-between;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions > .btn-primary {
    display: none !important;
  }
  .logo {
    height: 36px;
  }
  .workflow-grid,
  .contact-action-grid {
    grid-template-columns: 1fr;
  }
  .workflow-card {
    min-height: 176px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .orbiting-ring {
    animation: none !important;
  }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--brand-orange);
  width: 0%;
  z-index: 1001;
  transition: width 0.1s ease;
}

/* --- 3D Concentric Orbiting Gyroscope Rings --- */
.circle-visual {
  perspective: 800px; /* Enable depth perspective space */
  position: relative;
}

.orbiting-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
  will-change: transform;
}

.ring-1 {
  width: 92%;
  height: 92%;
  border-color: rgba(232, 122, 36, 0.45);
  animation: orbitX 14s linear infinite;
}

.ring-2 {
  width: 80%;
  height: 80%;
  border-color: rgba(83, 86, 90, 0.35);
  animation: orbitY 18s linear infinite;
  border-style: dashed;
}

.ring-3 {
  width: 68%;
  height: 68%;
  border-color: var(--brand-orange);
  opacity: 0.6;
  animation: orbitZ 10s linear infinite;
}

@keyframes orbitX {
  0% { transform: rotateX(65deg) rotateY(25deg) rotateZ(0deg); }
  100% { transform: rotateX(65deg) rotateY(25deg) rotateZ(360deg); }
}

@keyframes orbitY {
  0% { transform: rotateX(-45deg) rotateY(45deg) rotateZ(360deg); }
  100% { transform: rotateX(-45deg) rotateY(45deg) rotateZ(0deg); }
}

@keyframes orbitZ {
  0% { transform: rotateX(30deg) rotateY(-60deg) rotateZ(0deg); }
  100% { transform: rotateX(30deg) rotateY(-60deg) rotateZ(360deg); }
}

/* --- 3D Parallax Hover Card Tilt --- */
.categories-grid {
  perspective: 1200px;
}

.category-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.category-card > * {
  transform: translateZ(25px);
  transform-style: preserve-3d;
}

.category-card .category-icon {
  transform: translateZ(40px);
}

/* --- Scroll-Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Dynamic Header States --- */
header.shrunk {
  height: 65px;
  box-shadow: var(--shadow-sm);
}

/* --- Print Stylesheet for Quote/Inquiry PDF --- */
@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }
  
  header, footer, .section-title, .section-subtitle, 
  nav, .nav-actions, .filter-sidebar, .search-container, 
  .pagination, .results-info, .hero, .section, 
  .drawer-overlay, .drawer-header, .drawer-footer, 
  .remove-item-btn, .qty-control button, .icon-btn, .btn {
    display: none !important;
  }

  /* Make print content show up */
  .print-only {
    display: block !important;
  }

  /* Show and format drawer as a static page */
  .drawer {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    display: block !important;
    height: auto !important;
  }

  .drawer-body {
    overflow: visible !important;
    padding: 0 !important;
  }

  .inquiry-form {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
  }

  .form-group {
    margin-bottom: 10px !important;
  }

  .form-control {
    border: none !important;
    border-bottom: 1px solid #000 !important;
    padding: 2px 0 !important;
    background: transparent !important;
  }

  .cart-item {
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    padding: 8px 0 !important;
  }

  .cart-item-actions {
    display: block !important;
  }

  .qty-val::before {
    content: "Qty: ";
  }

  .qty-control {
    border: none !important;
    background: transparent !important;
  }
}

.print-only {
  display: none;
}
