/* ==========================================================================
   SerProChem — High Performance Industrial Design System
   Zero External CDN Architecture — 100% Local Self-Contained CSS
   Compliant with rules.md (Rule 1, 2, 3, 17, 30, 36, 37, 38, 49)
   ========================================================================== */

:root {
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-brand: #0284c7;
  --color-brand-dark: #0369a1;
  --color-brand-light: #38bdf8;
  --color-accent: #ea580c;
  --color-accent-hover: #c2410c;
  --color-success: #16a34a;
  --color-wa: #25d366;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;
  --color-text: #334155;
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   SVG & Icon Utilities (Strictly solves missing sizing classes)
   ========================================================================== */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  max-width: 100%;
}

.w-3 { width: 0.75rem !important; }
.h-3 { height: 0.75rem !important; }
.w-3\.5 { width: 0.875rem !important; }
.h-3\.5 { height: 0.875rem !important; }
.w-4 { width: 1rem !important; }
.h-4 { height: 1rem !important; }
.w-5 { width: 1.25rem !important; }
.h-5 { height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; }
.w-7 { width: 1.75rem !important; }
.h-7 { height: 1.75rem !important; }
.w-8 { width: 2rem !important; }
.h-8 { height: 2rem !important; }
.w-10 { width: 2.5rem !important; }
.h-10 { height: 2.5rem !important; }
.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }

/* Ensure inline SVGs without explicit classes never blow up */
svg:not([class*="w-"]):not([width]) {
  width: 1.25rem;
  height: 1.25rem;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header .container {
  max-width: 1400px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-primary);
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-brand {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-primary);
  line-height: 1.1;
  white-space: nowrap;
}

.logo-brand span {
  color: var(--color-brand);
}

.logo-sub {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-top: 0.15rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .logo-sub {
    display: none;
  }
  .logo-brand {
    font-size: 1.25rem;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(0.5rem, 1.1vw, 1.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links li {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: clamp(0.82rem, 0.92vw, 0.885rem);
  transition: color 0.2s ease;
  padding: 0.4rem 0;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-actions .btn-accent {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

.btn-primary {
  background-color: var(--color-brand);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-brand-dark);
  color: #ffffff;
}

.btn-accent {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.3);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
}

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text-dark);
  background-color: #ffffff;
}

.btn-outline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background-color: var(--color-bg-alt);
}

.btn-hero-outline {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-hero-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--color-wa);
  color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: #1eb956;
  color: #ffffff;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  background-color: var(--color-bg-alt);
  transition: all 0.2s;
  white-space: nowrap;
}

.lang-switch:hover {
  background-color: #f1f5f9;
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* Hamburger & Offcanvas (Right-sliding per Rule 36) */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  width: 100%;
  height: 0.2rem;
  background: var(--color-primary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background-color: #ffffff;
  z-index: 100;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
}

.offcanvas.active {
  transform: translateX(0);
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.offcanvas-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.offcanvas-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.offcanvas-nav a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-radius: 0.375rem;
  transition: background 0.15s;
  display: block;
}

.offcanvas-nav a:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-brand);
}

/* Hero Section */
.hero {
  background-color: var(--color-primary);
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.28) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.85) 45%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/hero-bg.jpg');
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.28) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.85) 45%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 5.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .hero {
    background-image: 
      linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%),
      url('../img/hero-bg.webp');
    background-position: center center;
    padding: 3.75rem 0 3.25rem 0;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  background-color: rgba(2, 132, 199, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.85);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.25rem;
    max-width: 56rem;
  }
}

.hero p {
  font-size: 1.125rem;
  color: #e2e8f0;
  max-width: 48rem;
  margin-bottom: 2.25rem;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item h3 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.stat-item p {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0;
  font-weight: 600;
}

@media (max-width: 640px) {
  .hero-stats {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .stat-item h3 {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Page Header System (Thematic Banners per Page)
   ========================================================================== */
.page-header {
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 3.75rem 0 3.25rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-header h1 {
  font-size: 2.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.85);
}

.page-header p {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 52rem;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.7);
}

.page-header .badge {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .page-header {
    background-position: center center !important;
    padding: 2.75rem 0 2.25rem 0;
  }
  .page-header h1 {
    font-size: 1.85rem;
  }
  .page-header p {
    font-size: 0.95rem;
  }
}

/* Page Header Thematic Modifiers */
.page-header-about {
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.28) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-about.jpg');
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.28) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-about.webp');
}

.page-header-products {
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-products.jpg');
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-products.webp');
}

.page-header-solutions {
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-solutions.jpg');
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-solutions.webp');
}

.page-header-calculator {
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-calculator.jpg');
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-calculator.webp');
}

.page-header-contact {
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-contact.jpg');
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-contact.webp');
}

.page-header-rfq {
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-rfq.jpg');
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 45%),
    linear-gradient(to right, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.65) 100%),
    url('../img/bg-rfq.webp');
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

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

.section-header {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Cards & Grid */
.grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-cards > * {
  min-width: 0;
}

.grid-cards-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.grid-cards-4 > * {
  min-width: 0;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0.625rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

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

.product-item-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: #f0f9ff;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card-img-wrap {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  padding: 0.85rem;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  box-sizing: border-box;
}

.card-img-wrap:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.card-img-wrap.card-img-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.fallback-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-brand);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.card:hover .fallback-icon,
.card-img-wrap:hover .fallback-icon {
  transform: scale(1.08);
  background-color: var(--color-brand-light);
}

.fallback-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  display: block;
  margin: 0 auto;
}

.card:hover .card-img,
.card-img-wrap:hover .card-img {
  transform: scale(1.04);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .product-hero-grid {
    grid-template-columns: 1.35fr 0.65fr;
  }
}

.product-gallery-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  box-shadow: var(--shadow-sm);
}

.product-gallery-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  word-break: break-word;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.55;
  word-break: break-word;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.825rem;
  margin-top: auto;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #f1f5f9;
  color: #475569;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.badge-brand {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-success {
  background-color: #dcfce7;
  color: #15803d;
}

/* Quick Info Box (Product Page per Rule 25) */
.quick-info-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background-color: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .quick-info-box {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.quick-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.quick-info-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Standard 16-Section Product Layout Styles */
.product-content-section {
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.product-content-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.45rem;
  height: 0.45rem;
  background-color: var(--color-brand);
  border-radius: 50%;
}

/* Technical Specs Table */
/* Technical Specs Table (Mobile-First & Fully Responsive) */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.tech-table th, .tech-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.tech-table th {
  background-color: #f1f5f9;
  color: var(--color-primary);
  font-weight: 700;
}

.tech-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Mobile-First Responsive Table (Zero Horizontal Scroll) */
@media (max-width: 768px) {
  .tech-table {
    display: block;
    width: 100%;
    border: none;
    margin: 0.75rem 0;
  }
  .tech-table thead {
    display: none;
  }
  .tech-table tbody {
    display: block;
    width: 100%;
  }
  .tech-table tr {
    display: block;
    width: 100%;
    margin-bottom: 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .tech-table th {
    display: block;
    width: 100% !important;
    padding: 0.6rem 0.85rem;
    background-color: #f1f5f9;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .tech-table td {
    display: block;
    width: 100% !important;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    border: none;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box;
  }
  .tech-table td:last-child {
    border-bottom: none;
  }

  /* Specific styles for multi-column tables with data-label like export */
  .responsive-export-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
  }
  .export-table-container {
    overflow: visible !important;
  }
}

/* FAQ Accordion */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  background-color: #ffffff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question:hover {
  background-color: #f8fafc;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.925rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* Breadcrumbs (Rule 15) */
.breadcrumb-nav {
  padding: 0.85rem 0;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumb-list a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.breadcrumb-list a:hover {
  color: var(--color-brand);
}

.breadcrumb-sep {
  color: #94a3b8;
}

.breadcrumb-curr {
  font-weight: 600;
  color: var(--color-primary);
}

/* Calculator Widget */
.calc-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #ffffff;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.calc-result-box {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

/* Calculator Action Buttons (Responsive & Mobile-First) */
.calc-actions-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid #bbf7d0;
}

.calc-actions-wrap .btn {
  font-size: 0.875rem;
  padding: 0.65rem 1.15rem;
}

.calc-actions-wrap .btn-calc-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-actions-wrap .calc-wa-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .calc-card {
    padding: 1.25rem 1rem;
  }
  .calc-result-box {
    padding: 1rem 0.85rem;
  }
  .calc-actions-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }
  .calc-actions-wrap .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    box-sizing: border-box;
  }
}

/* Floating Elements (Rules 37 & 38) */
.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

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

.btn-back-to-top:hover {
  background-color: var(--color-brand);
}

.btn-floating-wa {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--color-wa);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Modern Elegant Footer */
.footer {
  background: linear-gradient(180deg, #0b1329 0%, #060b18 100%);
  color: #94a3b8;
  padding: 0;
  border-top: 3px solid var(--color-brand);
  font-size: 0.9rem;
}

/* Pre-Footer Brand Pillars Bar */
.footer-pillars-wrap {
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid #1e293b;
  padding: 1.75rem 0;
}

.footer-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.footer-pillar-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-pillar-item .pillar-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(2, 132, 199, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.footer-pillar-item strong {
  display: block;
  font-size: 0.9rem;
  color: #f8fafc;
  line-height: 1.25;
}

.footer-pillar-item p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.2rem 0 0 0;
}

/* Footer Main Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-heading::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.825rem;
  line-height: 1.35;
  padding: 0;
  margin: 0;
}

.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.footer-nav-list a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

/* Contact Badges */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.825rem;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid #1e293b;
  border-radius: 0.375rem;
  padding: 0.55rem 0.75rem;
}

.footer-contact-icon {
  color: var(--color-brand);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer-wa-icon {
  color: #22c55e;
}

.footer-contact-text strong {
  display: block;
  color: #cbd5e1;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-contact-text span,
.footer-contact-text a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-text a:hover {
  color: #38bdf8;
}

/* Plants List */
.footer-plants-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.footer-plant-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid #1e293b;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.plant-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

.footer-plant-badge strong {
  color: #ffffff;
  display: block;
  font-size: 0.85rem;
}

.footer-plant-badge small {
  color: #94a3b8;
  font-size: 0.75rem;
}

.footer-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.footer-btn-export {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  color: #f8fafc;
  border-color: #334155;
  background: #1e293b;
}

.footer-btn-export:hover {
  background: #334155;
  color: #ffffff;
  border-color: var(--color-brand);
}

.footer-btn-rfq {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

/* Footer Bottom Bar */
.footer-bottom {
  margin-top: 2rem;
  padding: 1.5rem 0 2.5rem 0;
  border-top: 1px solid #1e293b;
  font-size: 0.825rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  color: #94a3b8;
  margin: 0;
}

.footer-credits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.credit-text {
  color: #94a3b8;
  font-size: 0.825rem;
}

.footer-author-link {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.footer-author-link:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 0.75rem;
  }
}
