/**
 * PALMERA ANIMAL HEALTH - CORE DESIGN SYSTEM & STYLESHEET
 * Premium Veterinary Pharmaceuticals & Poultry Solutions
 * Completely Local & Zero CDN Dependencies
 * Includes Full Dark Mode Support
 */

@import url('fonts.css');

/* ==========================================================================
   01. DESIGN TOKENS & CSS VARIABLES (LIGHT & DARK THEMES)
   ========================================================================== */
:root {
  /* Light Brand Palette */
  --color-primary: #006FAF;
  --color-primary-dark: #00568a;
  --color-primary-light: #1a88cb;
  --color-secondary: #00A9D8;
  --color-navy: #063B5B;
  --color-navy-dark: #032338;
  --color-navy-light: #0d4d75;
  --color-ice: #EAF8FD;
  --color-ice-subtle: #f4fbfe;
  
  /* Neutral Palette */
  --color-white: #FFFFFF;
  --color-bg: #FAFCFE;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F8FAFC;
  --color-card-bg: #FFFFFF;
  --color-stage-bg: #F8FAFC;
  --color-text-dark: #17242D;
  --color-text-muted: #5A6D7C;
  --color-text-light: #8C9EA9;
  --color-border: #E2E8F0;
  --color-border-subtle: #EEF2F6;
  --header-bg-solid: rgba(255, 255, 255, 0.96);
  --header-border-solid: rgba(6, 59, 91, 0.08);

  /* Product Accent Coding */
  --accent-virafin: #059669;
  --accent-virafin-light: #ECFDF5;
  --accent-virectam: #006FAF;
  --accent-virectam-light: #EAF8FD;
  --accent-fortiveta: #0D9488;
  --accent-fortiveta-light: #F0FDFA;
  --accent-hipower: #7C3AED;
  --accent-hipower-light: #F5F3FF;
  --accent-clostfree: #6366F1;
  --accent-clostfree-light: #EEF2FF;

  /* Typography */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ar: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  --font-base: var(--font-en);

  /* Shadows & Elevations */
  --shadow-sm: 0 1px 3px rgba(6, 59, 91, 0.06), 0 1px 2px rgba(6, 59, 91, 0.04);
  --shadow-md: 0 4px 14px rgba(6, 59, 91, 0.08), 0 2px 6px rgba(6, 59, 91, 0.04);
  --shadow-lg: 0 10px 25px -4px rgba(6, 59, 91, 0.1), 0 6px 12px -3px rgba(6, 59, 91, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(6, 59, 91, 0.14), 0 10px 18px -5px rgba(6, 59, 91, 0.06);

  /* Layout & Transitions */
  --header-height: 84px;
  --header-height-scrolled: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   DARK THEME OVERRIDES (الدارك مود الطبي المتطور)
   ========================================================================== */
[data-theme="dark"],
[data-bs-theme="dark"] {
  --color-primary: #00A9D8;
  --color-primary-dark: #0088b0;
  --color-primary-light: #38BDF8;
  --color-secondary: #38BDF8;
  --color-navy: #F8FAFC;
  --color-navy-dark: #FFFFFF;
  --color-navy-light: #E2E8F0;
  --color-ice: #0F2847;
  --color-ice-subtle: #0B1E34;
  
  --color-white: #0B1E32;
  --color-bg: #06121E;
  --color-surface: #0B1E32;
  --color-surface-hover: #122B45;
  --color-card-bg: #0C2137;
  --color-stage-bg: #0E263F;
  --color-text-dark: #F1F5F9;
  --color-text-muted: #94A3B8;
  --color-text-light: #64748B;
  --color-border: #1E3A5F;
  --color-border-subtle: #132A44;
  --header-bg-solid: rgba(11, 30, 50, 0.95);
  --header-border-solid: rgba(30, 58, 95, 0.8);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 35px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   02. RESET & BASE ELEMENTS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--color-text-dark);
  background-color: var(--color-bg);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--color-text-muted) !important;
}

.text-navy {
  color: var(--color-navy) !important;
}

.bg-light {
  background-color: var(--color-bg) !important;
}

.bg-white {
  background-color: var(--color-surface) !important;
}

/* ==========================================================================
   03. BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn-palmera-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--color-primary);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 111, 175, 0.25);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-palmera-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 111, 175, 0.35);
}

.btn-palmera-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--color-surface);
  color: var(--color-text-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-palmera-secondary:hover {
  background-color: var(--color-surface-hover);
  color: var(--color-primary) !important;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-palmera-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-palmera-outline:hover,
.btn-palmera-outline.active {
  background-color: var(--color-primary);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Badges & Tags */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-tag-primary {
  background-color: var(--color-ice);
  color: var(--color-primary);
}

.badge-tag-navy {
  background-color: var(--color-ice-subtle);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

/* Section Eyebrow Title */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2.5px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

/* ==========================================================================
   04. HEADER & NAVIGATION (CRITICAL VISIBILITY FIXES)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1050;
  transition: all var(--transition-smooth);
  background-color: transparent;
}

/* Solid Header state (Active on scroll and on all non-homepage views) */
.site-header.header-scrolled,
.site-header.header-solid {
  height: var(--header-height-scrolled);
  background-color: var(--header-bg-solid) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid var(--header-border-solid);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.site-header.header-scrolled .header-logo img {
  height: 40px;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-link {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--color-navy);
  padding: 0.5rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

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

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

/* Transparent homepage hero state ONLY when NOT scrolled and NOT solid */
.site-header:not(.header-scrolled):not(.header-solid) .header-nav-link {
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.site-header:not(.header-scrolled):not(.header-solid) .header-nav-link:hover,
.site-header:not(.header-scrolled):not(.header-solid) .header-nav-link.active {
  color: var(--color-secondary);
}

/* ==========================================================================
   LANGUAGE SWITCHER & THEME TOGGLE (HIGH VISIBILITY)
   ========================================================================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1.5px solid var(--color-primary);
  background-color: var(--color-ice);
  color: var(--color-primary) !important;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 111, 175, 0.12);
  cursor: pointer;
  white-space: nowrap;
}

.lang-switcher:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 111, 175, 0.25);
}

/* Dark mode language switcher */
[data-theme="dark"] .lang-switcher {
  background-color: rgba(0, 169, 216, 0.12);
  border-color: #00A9D8;
  color: #38BDF8 !important;
}

[data-theme="dark"] .lang-switcher:hover {
  background-color: #00A9D8;
  color: #06121E !important;
}

/* Transparent hero language switcher */
.site-header:not(.header-scrolled):not(.header-solid) .lang-switcher {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF !important;
  backdrop-filter: blur(8px);
}

.site-header:not(.header-scrolled):not(.header-solid) .lang-switcher:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--color-primary) !important;
}

/* Theme Toggle Button (Moon / Sun) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.08) rotate(15deg);
  box-shadow: var(--shadow-md);
}

.site-header:not(.header-scrolled):not(.header-solid) .theme-toggle-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.site-header:not(.header-scrolled):not(.header-solid) .theme-toggle-btn:hover {
  background-color: #FFFFFF;
  color: var(--color-navy);
}

/* Mobile Offcanvas Toggler */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--color-navy);
  font-size: 1.6rem;
  cursor: pointer;
}

.site-header:not(.header-scrolled):not(.header-solid) .mobile-nav-toggle {
  color: #FFFFFF;
}

/* ==========================================================================
   05. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  background-color: #062238;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: brightness(0.8) contrast(1.15);
  z-index: 1;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 34, 56, 0.95) 0%, rgba(0, 111, 175, 0.85) 65%, rgba(0, 169, 216, 0.7) 100%);
  z-index: 2;
}

.hero-particles-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 3;
  pointer-events: none;
}

.hero-content-wrapper {
  position: relative;
  z-index: 4;
}

.hero-badge-scientific {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #EAF8FD;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #FFFFFF 0%, #A3E8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.18rem;
  line-height: 1.75;
  color: rgba(234, 248, 253, 0.92);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-showcase-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 216, 0.45) 0%, rgba(0, 111, 175, 0.15) 60%, transparent 80%);
  filter: blur(28px);
  animation: pulseGlow 6s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

.hero-featured-pack {
  position: relative;
  z-index: 5;
  max-height: 420px;
  width: auto;
  filter: drop-shadow(0 20px 30px rgba(3, 35, 56, 0.5));
  animation: heroFloat 5s ease-in-out infinite;
}

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

.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  color: #063B5B;
  box-shadow: var(--shadow-lg);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-card-1 { bottom: 30px; left: -20px; }
.hero-card-2 { top: 40px; right: -10px; }

.hero-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-ice);
  color: var(--color-primary);
}

/* ==========================================================================
   06. TRUST BAR SECTION
   ========================================================================== */
.trust-bar-section {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2.2rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.5rem 0.75rem;
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--color-ice);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.trust-item:hover .trust-icon-box {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.trust-metric {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin: 0;
}

/* ==========================================================================
   07. VETERINARY SOLUTIONS SECTION
   ========================================================================== */
.section-padding { padding: 5.5rem 0; }
.section-padding-sm { padding: 3.5rem 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-head.text-start {
  text-align: start;
  margin-inline-start: 0;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.solution-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
}

.solution-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-ice) 0%, var(--color-ice-subtle) 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: all var(--transition-fast);
}

.solution-card:hover .solution-icon-wrap {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #FFFFFF;
  transform: scale(1.05);
}

.solution-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--color-navy);
}

.solution-card-text {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.solution-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: auto;
}

/* ==========================================================================
   08. FEATURED PRODUCTS SECTION & CATALOG
   ========================================================================== */
.product-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
}

.product-card-visual {
  background-color: var(--color-stage-bg);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 270px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-subtle);
}

.product-card-img {
  max-height: 220px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  transition: transform var(--transition-smooth);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

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

.product-accent-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.product-card.accent-green .product-accent-strip { background-color: var(--accent-virafin); }
.product-card.accent-blue .product-accent-strip { background-color: var(--accent-virectam); }
.product-card.accent-teal .product-accent-strip { background-color: var(--accent-fortiveta); }
.product-card.accent-purple .product-accent-strip { background-color: var(--accent-hipower); }
.product-card.accent-slate .product-accent-strip { background-color: var(--accent-clostfree); }

.product-card-body {
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-type-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.product-type-pill {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-ice);
  color: var(--color-primary);
}

.product-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--color-navy);
}

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

.product-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-pack-badge {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   09. FIND THE RIGHT SOLUTION (INTERACTIVE WIDGET)
   ========================================================================== */
.finder-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
}

.finder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.finder-tab-btn {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.finder-tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.finder-tab-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 111, 175, 0.25);
}

/* ==========================================================================
   10. STRATEGIC PARTNERSHIP SECTION
   ========================================================================== */
.partnership-banner {
  background: linear-gradient(135deg, #062238 0%, #031524 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3.5rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.partnership-badge-tag {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-secondary);
}

.partnership-logos-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.partnership-cross {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
}

.partner-logo-display {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   11. PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail-hero {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 3.5rem;
}

.product-detail-stage {
  background-color: var(--color-stage-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  box-shadow: var(--shadow-sm);
}

.product-detail-stage img {
  max-height: 400px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2));
}

.product-clinical-tabs .nav-link {
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  transition: all var(--transition-fast);
}

.product-clinical-tabs .nav-link:hover {
  color: var(--color-primary);
}

.product-clinical-tabs .nav-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: transparent;
}

.clinical-tab-pane {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.clinical-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clinical-spec-list li {
  position: relative;
  padding-inline-start: 1.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
  color: var(--color-text-dark);
}

.clinical-spec-list li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  font-weight: 800;
  color: var(--color-primary);
}

/* ==========================================================================
   12. QUALITY & PARTNERS STYLING
   ========================================================================== */
.cert-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-smooth);
}

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

.cert-card img,
.cert-card svg {
  height: 110px;
  width: auto;
  margin: 0 auto 1.25rem auto;
}

.partner-card-clean {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition-smooth);
}

.partner-card-clean:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.partner-card-clean img,
.partner-card-clean svg {
  max-height: 65px;
  width: auto;
  transition: all var(--transition-fast);
}

/* Dark mode adjustment for SVGs with white backgrounds */
[data-theme="dark"] .partner-card-clean svg rect[fill="#ffffff"],
[data-theme="dark"] .partnership-logos-card {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

/* ==========================================================================
   13. FORM CONTROLS & SEARCH INPUTS (DARK & LIGHT)
   ========================================================================== */
.form-control,
.form-select {
  background-color: var(--color-surface);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--color-surface);
  color: var(--color-text-dark);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 111, 175, 0.2);
}

.catalog-search-wrap {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  background-color: #040E18;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--color-primary);
}

.footer-brand-summary {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(234, 248, 253, 0.8);
  margin-top: 1.2rem;
  max-width: 320px;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 28px;
  height: 2px;
  background-color: var(--color-secondary);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li { margin-bottom: 0.75rem; }

.footer-links-list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--color-secondary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-item a { color: rgba(255, 255, 255, 0.85); }
.footer-contact-item a:hover { color: var(--color-secondary); }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.footer-iss-link {
  color: var(--color-secondary) !important;
  text-decoration: none;
  font-weight: 700;
  transition: opacity var(--transition-fast), text-decoration var(--transition-fast);
}

.footer-iss-link:hover {
  opacity: 0.85;
  text-decoration: underline !important;
}

/* ==========================================================================
   15. ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
}

/* ==========================================================================
   16. 3D VIDEO SHOWCASE & CLINICAL DOSSIER COMPONENTS
   ========================================================================== */
.video-showcase-wrapper {
  position: relative;
  background: linear-gradient(145deg, #071e33 0%, #03101c 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(0, 169, 216, 0.25);
  box-shadow: 0 25px 50px -12px rgba(3, 16, 28, 0.45), 0 0 40px rgba(0, 169, 216, 0.15);
}

.video-showcase-wrapper video {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.video-tab-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.video-tab-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.video-tab-btn.active {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 169, 216, 0.4);
}

.product-gallery-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-column;
}

.product-gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.product-gallery-thumb {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: var(--color-stage-bg);
  padding: 1rem;
  transition: transform 0.4s ease;
}

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

.product-gallery-caption {
  padding: 1rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
}

.gallery-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(6, 59, 91, 0.85);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  transition: all 0.2s ease;
}

[dir="rtl"] .gallery-zoom-badge {
  right: auto;
  left: 12px;
}

.product-gallery-card:hover .gallery-zoom-badge {
  background: var(--color-primary);
}

.partnership-hero-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-xl);
}

.partnership-hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.partnership-hero-img-wrap:hover img {
  transform: scale(1.02);
}

.dossier-image-modal img {
  max-height: 85vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-md);
}

