/* ============================================================
   Right Angle Pharma Pack — Complete Stylesheet
   Replaces Tailwind output.css with a full, self-contained file
   ============================================================ */

/* ---------- FONT IMPORT ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- BOX-SIZING RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Brand Colors — Premium Slate Navy & Teal Accent */
  --pharma-50: #f0fdf4;
  --pharma-100: #dcfce7;
  --pharma-200: #bbf7d0;
  --pharma-300: #86efac;
  --pharma-400: #4ade80;
  --pharma-500: #22c55e;
  --pharma-600: #16a34a;
  --pharma-700: #15803d;
  --pharma-800: #166534;
  --pharma-900: #0f172a;
  --pharma-dark: #090d16;

  /* Accent - Luxurious Gold/Teal Combo */
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-gold: #d97706;

  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;

  --green-600: #10b981;
  --yellow-600: #f59e0b;
  --red-500: #ef4444;

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Shadows — Elegant Glassmorphic Style */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 48px -10px rgba(15, 23, 42, 0.08), 0 8px 24px -8px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 35px 80px -15px rgba(15, 23, 42, 0.12), 0 10px 30px -10px rgba(15, 23, 42, 0.06);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }
body { font-family: var(--font-sans); color: var(--neutral-800); background: #fbfbfa; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; width: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pharma-900);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.85rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: var(--space-4); color: var(--neutral-600); }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px !important;
  }
}

/* ---------- SECTION ---------- */
.section {
  padding: var(--space-20) 0;
}
.section-sm {
  padding: var(--space-12) 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.8rem 1.9rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--pharma-900);
  color: #fff;
}
.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.3);
}
.btn-secondary {
  background: transparent;
  border-color: var(--pharma-900);
  color: var(--pharma-900);
}
.btn-secondary:hover {
  background: var(--pharma-900);
  color: #fff;
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(14, 165, 233, 0.3);
}
.btn-white {
  background: #fff;
  color: var(--pharma-900);
  border-color: var(--neutral-200);
}
.btn-white:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-300);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 2.8rem; font-size: 1.05rem; }

/* ---------- CARDS ---------- */
.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(15, 23, 42, 0.1);
}

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-neutral { background: var(--neutral-100); color: var(--neutral-700); border: 1px solid var(--neutral-300); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }

/* ---------- FORM ELEMENTS ---------- */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-weight: 500; font-size: 0.9rem; color: var(--neutral-700); margin-bottom: var(--space-2); }
.form-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--neutral-300);
  border-radius: 6px;
  background: #fff;
  font-size: 0.95rem;
  color: var(--neutral-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--pharma-500);
  box-shadow: 0 0 0 3px rgba(78,146,192,0.15);
}
.form-input.error { border-color: var(--red-500); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ---------- GRID SYSTEM ---------- */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-8); align-items: center; }
.grid-sidebar { display: grid; grid-template-columns: 3fr 1fr; gap: var(--space-8); }
.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* ---------- UTILITIES ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-white  { color: #fff; }
.text-muted  { color: var(--neutral-600); }
.text-accent { color: var(--accent); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.78rem; }
.text-lg     { font-size: 1.125rem; }
.text-xl     { font-size: 1.25rem; }
.text-2xl    { font-size: 1.5rem; }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.uppercase   { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.06em; }
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.fixed    { position: fixed; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.overflow-hidden { overflow: hidden; }
.rounded  { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }
.shadow   { box-shadow: var(--shadow-md); }
.shadow-lg{ box-shadow: var(--shadow-lg); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12{ margin-bottom: var(--space-12); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-4  { padding: var(--space-4); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.pt-6 { padding-top: var(--space-6); }
.border-t { border-top: 1px solid var(--neutral-200); }
.border-b { border-bottom: 1px solid var(--neutral-200); }
.hidden { display: none !important; }
.block  { display: block; }
.inline-flex { display: inline-flex; }
.space-y-2 > * + * { margin-top: var(--space-2); }
.space-y-3 > * + * { margin-top: var(--space-3); }
.space-y-4 > * + * { margin-top: var(--space-4); }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-lg  { max-width: 32rem; }
.z-50  { z-index: 50; }
.z-100 { z-index: 100; }

/* ---------- BG COLORS ---------- */
.bg-white  { background-color: #fff; }
.bg-light  { background-color: var(--neutral-50); }
.bg-gray   { background-color: var(--neutral-100); }
.bg-pharma { background-color: var(--pharma-900); }
.bg-pharma-dark { background-color: var(--pharma-dark); }
.bg-accent { background-color: var(--accent); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 15px rgba(15, 23, 42, 0.02);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  z-index: 1001;
}
.site-logo svg { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--pharma-900);
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  color: var(--pharma-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-link {
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--neutral-800);
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { color: var(--pharma-900); }
.nav-link:hover::after { width: 100%; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--pharma-900);
  z-index: 1001;
  line-height: 1;
  padding: 4px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background: linear-gradient(135deg, #f0f7fb 0%, #e1eff7 60%, #c8e2f0 100%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--neutral-200);
  color: var(--pharma-700);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
}
.hero-title .accent { color: var(--accent); }
.hero-desc {
  font-size: 1.1rem;
  color: var(--neutral-600);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-trust {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-200);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--neutral-700);
}
.hero-trust-item i { color: var(--green-600); font-size: 1.1rem; }

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-svg-wrap {
  width: 100%;
  max-width: 480px;
  position: relative;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--pharma-600);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 768px) {
  .scroll-indicator {
    display: none !important;
  }
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--pharma-400), transparent);
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  display: block;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollDown 2s infinite ease-in-out;
}
@keyframes scrollDown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: var(--pharma-900);
  padding: var(--space-16) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ============================================================
   SWIPER / CATEGORY SECTION
   ============================================================ */
.section-header {
  margin-bottom: var(--space-12);
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { color: var(--neutral-600); font-size: 1.05rem; max-width: 560px; }

.swiper-nav-btns {
  display: flex;
  gap: var(--space-3);
}
.swiper-nav-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--neutral-300);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all 0.2s;
}
.swiper-nav-btn:hover {
  background: var(--pharma-900);
  border-color: var(--pharma-900);
  color: #fff;
}

.category-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.category-card-img {
  aspect-ratio: 4/3;
  background: var(--pharma-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: var(--pharma-300);
  overflow: hidden;
  transition: background 0.3s;
}
.category-card:hover .category-card-img { background: var(--pharma-100); }
.category-card-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.category-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.category-card-body p  { font-size: 0.88rem; color: var(--neutral-500); flex: 1; margin-bottom: var(--space-4); }
.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.category-card:hover .category-card-link { gap: 0.75rem; }

.swiper-pagination-bullet { background: var(--pharma-300) !important; }
.swiper-pagination-bullet-active { background: var(--pharma-900) !important; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.cta-band h2 { color: #fff; }
.cta-band p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 560px; margin: 0.75rem auto 2rem; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  position: relative;
  background-color: #08101d;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(110px + 4.5rem) 0 6.5rem;
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  background-size: cover;
  background-position: center center;
  background-image: url('/images/hero/other_page_hero.webp');
  filter: blur(10px) brightness(0.8) contrast(1.05);
  transform: scale(1.03);
  z-index: 0;
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 24, 45, 0.82) 0%,
    rgba(15, 34, 65, 0.72) 50%,
    rgba(8, 16, 29, 0.88) 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1;
  pointer-events: none;
}
.page-header-about::before {
  background-image: url('/images/hero/About_Us_hero.webp') !important;
}
.page-header-contact::before {
  background-image: url('/images/hero/Contect_hero.webp') !important;
}
.page-header-products::before {
  background-image: url('/images/hero/Product_hero.webp') !important;
}
.page-header-reviews::before {
  background-image: url('/images/hero/other_page_hero.webp') !important;
}
.page-header-other::before {
  background-image: url('/images/hero/other_page_hero.webp') !important;
}
.page-header .container {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  color: #ffffff !important;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 0.75rem !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6) !important;
}
.page-header p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1.12rem !important;
  font-weight: 500 !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
  padding: var(--space-12) 0;
  align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  position: sticky;
  top: 100px;
}
.filter-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pharma-900);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--neutral-200);
  margin-bottom: var(--space-5);
}
.filter-group { margin-bottom: var(--space-6); }
.filter-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-500);
  margin-bottom: var(--space-3);
  display: block;
}
.filter-btns { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { background: var(--neutral-100); color: var(--pharma-900); }
.filter-btn.active { background: var(--pharma-50); color: var(--pharma-900); font-weight: 600; border-left: 3px solid var(--pharma-900); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-pill {
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  color: var(--neutral-700);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover { background: var(--pharma-50); border-color: var(--pharma-400); color: var(--pharma-900); }

/* Product Grid */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}
.product-count { font-size: 0.9rem; color: var(--neutral-600); }

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

.product-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.product-card-img {
  aspect-ratio: 4/3;
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--pharma-300);
  position: relative;
  overflow: hidden;
}
.product-card-img-icon { transition: transform 0.4s; }
.product-card:hover .product-card-img-icon { transform: scale(1.1); }

.quick-view-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--neutral-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--pharma-900);
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  transform: translateY(4px);
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translateY(0); }
.quick-view-btn:hover { background: var(--pharma-900); color: #fff; }

.product-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-meta { font-size: 0.75rem; color: var(--neutral-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.product-card-title { font-size: 1.0rem; margin-bottom: 0.5rem; }
.product-card-title a { color: var(--pharma-900); transition: color 0.2s; }
.product-card-title a:hover { color: var(--accent); }
.product-card-desc { font-size: 0.85rem; color: var(--neutral-500); flex: 1; margin-bottom: var(--space-4); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-20) 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
}
.empty-state i { font-size: 4rem; color: var(--neutral-300); display: block; margin-bottom: var(--space-4); }
.empty-state h3 { color: var(--neutral-700); }
.empty-state p  { color: var(--neutral-500); }

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 34, 59, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-dialog {
  position: relative;              /* ← CRITICAL: anchor the close btn */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(7, 34, 59, 0.25);
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Close button — sits inside .modal-dialog (position:relative parent) */
.modal-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--neutral-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--neutral-600);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 20;
}
.modal-close-btn:hover {
  background: var(--pharma-900);
  color: #fff;
  border-color: var(--pharma-900);
}

/* Left: Gallery panel */
.modal-gallery {
  background: var(--pharma-50);
  padding: 1.5rem;
  border-right: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 400px;
  overflow: hidden;
}

/* Main image area — plain div that shows icon, swiper placed inside */
.modal-main-img {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}
.modal-main-img i {
  font-size: 6rem;
  color: var(--pharma-200);
  transition: transform 0.3s;
}
.modal-main-img:hover i { transform: scale(1.05); }

/* Swiper inside modal gallery — must have explicit height */
.modal-gallery .swiper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--neutral-200);
}
.modal-gallery .swiper.qv-main {
  flex: 1;
  min-height: 260px;
}
.modal-gallery .swiper.qv-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  color: var(--pharma-200);
  height: 260px;
  background: #fff;
}
.modal-gallery .swiper.qv-thumbs {
  height: 72px;
  flex-shrink: 0;
}
.modal-gallery .swiper.qv-thumbs .swiper-slide {
  width: 68px;
  height: 68px;
  border: 2px solid var(--neutral-200);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--pharma-300);
  cursor: pointer;
  transition: border-color 0.2s;
  opacity: 0.7;
}
.modal-gallery .swiper.qv-thumbs .swiper-slide-thumb-active {
  border-color: var(--pharma-900);
  opacity: 1;
}

/* Swiper nav arrows inside modal */
.modal-gallery .swiper-button-next,
.modal-gallery .swiper-button-prev {
  color: var(--pharma-900) !important;
  background: rgba(255, 255, 255, 0.92);
  width: 34px !important;
  height: 34px !important;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.modal-gallery .swiper-button-next::after,
.modal-gallery .swiper-button-prev::after {
  font-size: 0.8rem !important;
  font-weight: 800;
}

/* Right: Details panel */
.modal-details {
  padding: 2rem 2rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}
.modal-details h2 { font-size: 1.55rem; margin-bottom: 0.5rem; line-height: 1.2; }
.modal-details .modal-desc { font-size: 0.9rem; color: var(--neutral-600); margin-bottom: 1.25rem; }
.modal-specs-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neutral-500);
  margin-bottom: 0.5rem;
  display: block;
}
.modal-specs { list-style: none; margin: 0 0 1.5rem; }
.modal-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--neutral-100);
  font-size: 0.88rem;
}
.modal-spec-row .label { color: var(--neutral-500); }
.modal-spec-row .value { font-weight: 500; color: var(--neutral-800); }
.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}
.modal-actions .btn { flex: 1; justify-content: center; }

.modal-actions { display: flex; gap: var(--space-3); margin-top: auto; }

/* Swiper overrides inside modal */
.modal-gallery .swiper-button-next,
.modal-gallery .swiper-button-prev {
  color: var(--pharma-900);
  background: rgba(255,255,255,0.9);
  width: 36px; height: 36px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.modal-gallery .swiper-button-next::after,
.modal-gallery .swiper-button-prev::after {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
  padding: var(--space-16) 0;
}
.contact-info-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
  height: fit-content;
}
.info-row {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.info-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--pharma-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--pharma-700);
}
.contact-form-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.map-placeholder {
  width: 100%;
  height: 380px;
  background: var(--pharma-50);
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--neutral-400);
  gap: 1rem;
  margin-bottom: var(--space-16);
}
.map-placeholder i { font-size: 3.5rem; }
.map-placeholder span { font-size: 0.9rem; }

/* ============================================================
   CERTIFICATIONS PAGE
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.cert-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert-icon-wrap {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--pharma-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--pharma-600);
}
.cert-card h4 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.cert-card p  { font-size: 0.88rem; color: var(--neutral-500); margin: 0; }

/* ============================================================
   REVIEWS
   ============================================================ */
.review-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--neutral-200);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.review-stars { color: #f59e0b; font-size: 1rem; display: flex; gap: 2px; margin-bottom: var(--space-3); }
.review-text { font-size: 0.95rem; color: var(--neutral-700); margin-bottom: var(--space-4); }
.review-author { font-size: 0.85rem; font-weight: 600; color: var(--pharma-900); }

/* ============================================================
   ABOUT / INFRASTRUCTURE PAGE
   ============================================================ */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.mission-visual {
  background: var(--pharma-50);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: var(--pharma-200);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.value-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  padding: var(--space-6);
  text-align: center;
}
.value-icon { font-size: 2.5rem; color: var(--pharma-600); margin-bottom: var(--space-3); display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background-color: #060c18;
  color: rgba(255,255,255,0.92);
  padding-top: var(--space-20);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  background-image: url('/images/hero/Footer_section.webp');
  background-size: cover;
  background-position: center center;
  filter: blur(10px) brightness(0.72) contrast(1.05);
  transform: scale(1.03);
  z-index: 0;
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 18, 35, 0.82) 0%,
    rgba(6, 12, 24, 0.92) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}
.site-footer .container {
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--space-4); }
.footer-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: #ffffff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.footer-tagline { font-size: 0.92rem; max-width: 290px; margin-bottom: var(--space-6); color: rgba(255,255,255,0.88); text-shadow: 0 1px 4px rgba(0,0,0,0.5); line-height: 1.6; }
.footer-socials { display: flex; gap: var(--space-3); }
.footer-social-link { width: 38px; height: 38px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #ffffff; transition: all 0.25s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.footer-social-link:hover { background: #38bdf8; border-color: #38bdf8; color: #0f172a; transform: translateY(-2px); }
.footer-col-title { color: #ffffff !important; font-family: var(--font-heading); font-size: 0.98rem; font-weight: 700; margin-bottom: var(--space-5); text-transform: uppercase; letter-spacing: 0.05em; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { font-size: 0.92rem; color: rgba(255,255,255,0.85) !important; font-weight: 500; transition: all 0.2s; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.footer-links a:hover { color: #38bdf8 !important; text-shadow: 0 0 8px rgba(56,189,248,0.4); transform: translateX(3px); }
.footer-address { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-address-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: rgba(255,255,255,0.9) !important; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.footer-address-row i { font-size: 1.1rem; color: #4ade80 !important; flex-shrink: 0; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
.site-footer {
  padding-bottom: 2.5rem;
}
.footer-bottom {
  padding: var(--space-6) 0 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 768px) {
  .site-footer {
    padding-bottom: 95px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
    padding-bottom: 1.5rem !important;
  }
  .footer-bottom > div {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: 100%;
  }
  .footer-bottom-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
  }
}
.footer-bottom-links { display: flex; gap: var(--space-6); }
.footer-bottom-links a { color: rgba(255,255,255,0.85) !important; font-weight: 500; transition: color 0.2s; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.footer-bottom-links a:hover { color: #38bdf8 !important; }

/* ============================================================
   FLOATING WIDGETS
   ============================================================ */
.floating-widgets {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}
.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.float-whatsapp { background: #25D366; }
.float-chat { background: var(--pharma-900); }
.float-chat img, .float-chat svg { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.float-chat:hover img, .float-chat:hover svg { transform: scale(1.12); }

.chatbot-window {
  position: fixed;
  bottom: 1.5rem;
  right: 5.5rem;
  width: 370px;
  height: 500px;
  max-height: calc(100vh - 60px);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  z-index: 998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.chatbot-header { background: var(--pharma-900); color: #fff; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.chatbot-header h4 { font-size: 0.95rem; font-weight: 600; margin: 0; color: #fff; }
.chatbot-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 4px; }
.chatbot-body {
  flex: 1;
  min-height: 0;
  padding: 1rem;
  background: #f5f7fa;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}
.chatbot-body::-webkit-scrollbar {
  width: 6px;
}
.chatbot-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.chatbot-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.chatbot-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.chat-bubble { background: #fff; border-radius: 12px; padding: 0.65rem 0.85rem; font-size: 0.88rem; color: var(--neutral-800); max-width: 85%; box-shadow: var(--shadow-sm); line-height: 1.5; }
.chat-bubble-typing {
  background: #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 32px;
  padding: 0 !important;
  border-radius: 16px;
  align-self: flex-start;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}
.chatbot-footer { padding: 0.75rem; border-top: 1px solid var(--neutral-200); display: flex; gap: 0.5rem; }
.chatbot-input { flex: 1; border: 1.5px solid var(--neutral-200); border-radius: 8px; padding: 0.5rem 0.75rem; font-size: 0.88rem; outline: none; }
.chatbot-input:focus { border-color: var(--pharma-500); }
.chatbot-send { background: var(--pharma-900); border: none; color: #fff; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.chatbot-send:hover { background: var(--pharma-800); }

/* Custom Admin UI Components */
.admin-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.admin-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--neutral-300);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  color: var(--neutral-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.admin-input:focus {
  border-color: var(--pharma-500);
  box-shadow: 0 0 0 3px rgba(78, 146, 192, 0.15);
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--pharma-900);
  color: #fff;
  text-decoration: none;
}
.admin-btn:hover {
  background: var(--pharma-800);
  transform: translateY(-1px);
}
.admin-btn-ghost {
  background: transparent;
  border-color: var(--neutral-300);
  color: var(--neutral-700);
}
.admin-btn-ghost:hover {
  background: var(--neutral-100);
  border-color: var(--neutral-400);
}

/* Responsive Premium Admin Tables */
.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  padding: 14px 18px;
  background: var(--neutral-100);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--neutral-700);
  border-bottom: 1px solid var(--neutral-200);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.admin-table td {
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--neutral-800);
  border-bottom: 1px solid var(--neutral-100);
  vertical-align: middle;
}
.admin-table tbody tr {
  transition: background-color 0.2s;
}
.admin-table tbody tr:hover {
  background-color: var(--neutral-50);
}

.admin-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #f1f4f8;
  font-family: var(--font-sans);
}

/* Admin Sidebar */
.admin-sidebar {
  width: 250px;
  min-width: 250px;
  background: var(--pharma-dark);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform 0.3s ease;
}
.admin-sidebar-brand {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  gap: 0.6rem;
  text-decoration: none;
}
.admin-sidebar-brand svg { flex-shrink: 0; }
.admin-nav { flex: 1; padding: 1rem 0.75rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.2rem; }

/* Custom Scrollbar for Admin Nav (SaaS style) */
.admin-nav::-webkit-scrollbar {
  width: 5px;
}
.admin-nav::-webkit-scrollbar-track {
  background: transparent;
}
.admin-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
.admin-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f4f8;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid #f1f4f8;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Admin Nav Section Headers */
.admin-nav-section {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.25rem 0.85rem 0.4rem;
  font-family: var(--font-sans);
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65) !important;
  transition: all 0.2s;
  text-decoration: none;
}
.admin-nav-link i { font-size: 1.15rem; width: 20px; text-align: center; }
.admin-nav-link:hover { background: rgba(255,255,255,0.08) !important; color: #ffffff !important; }
.admin-nav-link.active { background: var(--pharma-600) !important; color: #ffffff !important; }
.admin-nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.admin-sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin-sidebar-footer a,
.admin-sidebar-footer button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.admin-sidebar-footer a:hover,
.admin-sidebar-footer button:hover {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.05);
}

/* Admin Main */
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

/* Admin Topbar */
.admin-topbar {
  height: 64px;
  background: #fff;
  box-shadow: 0 1px 0 var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  flex-shrink: 0;
  z-index: 100;
}
.admin-topbar-left { display: flex; align-items: center; gap: 1rem; }
.admin-sidebar-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--neutral-600); cursor: pointer; }
.admin-page-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--pharma-900); }
.admin-topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.admin-search { position: relative; }
.admin-search input { padding: 0.5rem 0.85rem 0.5rem 2.25rem; background: var(--neutral-100); border: none; border-radius: 8px; font-size: 0.88rem; width: 220px; outline: none; color: var(--neutral-800); }
.admin-search i { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); color: var(--neutral-500); font-size: 0.95rem; }
.admin-notif-btn { position: relative; background: none; border: none; font-size: 1.3rem; color: var(--neutral-600); cursor: pointer; line-height: 1; padding: 4px; }
.admin-notif-badge { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; border: 2px solid #fff; }
.admin-avatar { width: 36px; height: 36px; background: var(--pharma-100); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; color: var(--pharma-900); border: 2px solid var(--pharma-200); cursor: pointer; }

/* Admin Content */
.admin-content { flex: 1; overflow-y: auto; padding: 1.75rem; }

/* KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.75rem; }
.kpi-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
}
.kpi-label { font-size: 0.82rem; color: var(--neutral-500); font-weight: 500; margin-bottom: 0.6rem; }
.kpi-value { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--pharma-900); line-height: 1; }
.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.trend-up { color: var(--green-600); }
.trend-down { color: var(--red-500); }

/* Charts */
.charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-bottom: 1.75rem; }
.chart-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.chart-card h3 { font-size: 1rem; color: var(--neutral-800); margin-bottom: 1rem; font-weight: 600; }
.chart-wrap { height: 260px; position: relative; }

/* Admin Table */
.admin-table-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--neutral-200);
  gap: 1rem;
  flex-wrap: wrap;
}
.table-search { position: relative; }
.table-search input { padding: 0.5rem 0.85rem 0.5rem 2.2rem; background: var(--neutral-100); border: none; border-radius: 8px; font-size: 0.88rem; width: 240px; outline: none; }
.table-search i { position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); color: var(--neutral-500); }
.table-toolbar-right { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--neutral-500); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table thead { position: sticky; top: 0; z-index: 10; }
.data-table th { background: var(--neutral-50); border-bottom: 1px solid var(--neutral-200); padding: 0.75rem 1rem; text-align: left; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--neutral-500); white-space: nowrap; }
.data-table th:first-child { padding-left: 1.25rem; width: 40px; }
.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--neutral-100); color: var(--neutral-800); vertical-align: middle; }
.data-table td:first-child { padding-left: 1.25rem; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--neutral-50); }
.data-table tbody tr { transition: background 0.15s; }

.table-product-thumb { width: 40px; height: 40px; border-radius: 8px; background: var(--neutral-100); border: 1px solid var(--neutral-200); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--pharma-300); flex-shrink: 0; }
.product-name-cell { display: flex; align-items: center; gap: 0.75rem; }
.product-name-cell span { font-weight: 500; color: var(--neutral-800); }

.row-actions { display: flex; gap: 0.25rem; justify-content: flex-end; }
.row-action-btn { width: 32px; height: 32px; border-radius: 6px; border: none; background: none; display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; transition: all 0.15s; color: var(--neutral-500); }
.row-action-btn:hover { background: var(--neutral-100); }
.row-action-btn.danger:hover { background: #fee2e2; color: var(--red-500); }

.table-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--neutral-200);
}
.pagination-btn {
  width: 34px; height: 34px;
  border-radius: 6px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  font-size: 0.88rem;
  color: var(--neutral-700);
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.pagination-btn:hover { background: var(--neutral-100); }
.pagination-btn.active { background: var(--pharma-900); color: #fff; border-color: var(--pharma-900); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Slide-over Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7,34,59,0.5);
  backdrop-filter: blur(3px);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: all; }
.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 100%;
  max-width: 440px;
  background: #fff;
  z-index: 500;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  flex-shrink: 0;
}
.drawer-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--pharma-900); }
.drawer-close-btn { background: none; border: none; font-size: 1.2rem; color: var(--neutral-500); cursor: pointer; width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.drawer-close-btn:hover { background: var(--neutral-200); color: var(--pharma-900); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.drawer-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.upload-zone {
  border: 2px dashed var(--neutral-300);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  background: var(--neutral-50);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: var(--space-4);
}
.upload-zone:hover { border-color: var(--pharma-400); background: var(--pharma-50); }
.upload-zone i { font-size: 2rem; color: var(--neutral-400); display: block; margin-bottom: 0.5rem; }
.upload-zone p { font-size: 0.85rem; color: var(--neutral-600); margin: 0; }
.upload-zone span { font-size: 0.75rem; color: var(--neutral-400); }

/* Section Divider */
.section-divider { border: 0; border-top: 1px solid var(--neutral-200); margin: 1.25rem 0; }

/* ============================================================
   TOAST
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease;
  max-width: 360px;
}
.toast-success { background: var(--green-600); }
.toast-error   { background: var(--red-500); }
.toast-info    { background: var(--pharma-900); }

/* ============================================================
   PAGE TRANSITION OVERLAY
   ============================================================ */
.page-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, var(--pharma-dark) 0%, var(--pharma-900) 100%);
  z-index: 9999; /* Ensure it is above all widgets */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* JS will handle opacity */
}
.overlay-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.overlay-logo-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.overlay-logo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.overlay-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--pharma-500);
  border-bottom-color: var(--accent);
  animation: spin-loader 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  z-index: 1;
}
.overlay-branding h2 {
  color: white;
  font-family: var(--font-heading);
  letter-spacing: 3px;
  font-size: 1.6rem;
  margin-bottom: 0.1rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.overlay-sub {
  color: var(--pharma-300);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2rem !important;
}
.overlay-loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.overlay-loader-progress {
  width: 60px;
  height: 100%;
  background: linear-gradient(90deg, var(--pharma-500), var(--accent));
  border-radius: 10px;
  position: absolute;
  animation: progress-indet 1.8s ease-in-out infinite;
}

@keyframes spin-loader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes progress-indet {
  0% { left: -60px; }
  50% { left: 100px; width: 80px; }
  100% { left: 160px; }
}

/* ============================================================
   SCROLL REVEAL INITIAL STATE (Set by JS)
   ============================================================ */
/* .gsap-hidden initial state is set by JS (app.js) ONLY after GSAP loads.
   This CSS rule is intentionally left as a no-op so content is always
   visible even if GSAP/CDN fails to load. */
.gsap-hidden {
  /* JS will apply: opacity:0; transform:translateY(32px) via gsap.set() */
  will-change: transform, opacity;
}

/* ============================================================
   RESPONSIVE ADMIN GRID UTILITIES
   ============================================================ */
.admin-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .admin-grid-2 { grid-template-columns: 1fr !important; }
}

.admin-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 992px) {
  .admin-grid-2-1 { grid-template-columns: 1fr !important; }
}

.admin-grid-1-320 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
@media (max-width: 992px) {
  .admin-grid-1-320 { grid-template-columns: 1fr !important; }
}

.admin-grid-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 992px) {
  .admin-grid-double { grid-template-columns: 1fr !important; gap: 20px; }
}

/* ============================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .section { padding: var(--space-16) 0; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: 2; margin-top: 2rem; }
  .hero-svg-wrap { max-width: 320px; margin: 0 auto; }

  /* Mobile nav (kicks in below 1024px for premium design) */
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 75px 20px 150px;
    box-shadow: -10px 0 35px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 1.25rem;
    z-index: 10005;
  }
  .main-nav.open { transform: translateX(0); }
  .mobile-nav-close { display: flex !important; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; }
  @media (max-width: 480px) {
    .main-nav > div { flex-direction: column !important; align-items: stretch !important; width: 100%; margin-top: 10px; }
    .main-nav > div > * { width: 100%; justify-content: center; }
  }
  .nav-link { font-size: 1.1rem; }
  .mobile-toggle { display: block; }
  .site-header { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); box-shadow: 0 1px 20px rgba(0,0,0,.08); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .products-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-dialog { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-gallery { border-right: none; border-bottom: 1px solid var(--neutral-200); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-split { grid-template-columns: 1fr; gap: var(--space-6); }
  .grid-sidebar { grid-template-columns: 1fr; gap: var(--space-6); }
  
  .nav-dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    padding-left: 20px !important;
    margin-top: 10px !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .certs-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column !important; align-items: flex-start !important; gap: 1rem !important; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-3); }
  .form-row-2 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { position: fixed; transform: translateX(-100%); height: 100%; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-toggle { display: block; }
  .admin-search { display: none; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-col { grid-template-columns: 1fr; }
  .admin-table-card { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 800px; }
  .contact-layout { grid-template-columns: 1fr !important; gap: 1.5rem !important; padding: 2rem 0 !important; }
  .contact-info-card, .contact-form-card { padding: 1.25rem !important; }
}

@media (max-width: 576px) {
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .stat-number { font-size: 2.2rem !important; }
  .hero-ctas { flex-direction: column; width: 100%; gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .modal-dialog { border-radius: 0; max-height: 100vh; }
  .kpi-grid { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .chatbot-window {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 5.5rem;
    height: 420px;
    max-height: calc(100vh - 120px);
  }
}

/* Mobile Floating Widgets — Smaller & Less Intrusive */
@media (max-width: 768px) {
  .floating-widgets {
    bottom: 1rem;
    right: 0.75rem;
    gap: 0.5rem;
  }
  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  }
}

@media (max-width: 480px) {
  .floating-widgets {
    bottom: 0.75rem;
    right: 0.5rem;
    gap: 0.4rem;
  }
  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@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;
  }
  .gsap-hidden { opacity: 1; transform: none; }
}

/* Chatbot Pulsing Keyframes */
@keyframes pulse {
  0%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
}
.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--neutral-400);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Small Mobile Optimization for Contact Page */
@media (max-width: 480px) {
  .container.contact-layout {
    padding: 1.5rem 0 !important;
    gap: 1rem !important;
  }
  .contact-info-card, 
  .contact-form-card {
    padding: 1.25rem 0.85rem !important;
    border-radius: 12px !important;
  }
  .info-row {
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }
  .info-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    border-radius: 8px !important;
  }
  .info-row h4 {
    font-size: 0.95rem !important;
    margin-bottom: 0.25rem !important;
  }
  .info-row p {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }
  .form-group {
    margin-bottom: 1rem !important;
  }
  .form-label {
    font-size: 0.8rem !important;
    margin-bottom: 0.25rem !important;
  }
  .form-input {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.85rem !important;
  }
  .contact-form-card h3,
  .contact-info-card h3 {
    font-size: 1.35rem !important;
    margin-bottom: 1rem !important;
  }
}

/* ============================================================
   ADMIN MOBILE RESPONSIVENESS OVERRIDES
   ============================================================ */

/* Mobile Card Padding Overrides */
@media (max-width: 768px) {
  .admin-card, .admin-table-card, .chart-card {
    padding: 1rem !important;
  }
}
@media (max-width: 480px) {
  .admin-card, .admin-table-card, .chart-card {
    padding: 0.75rem !important;
  }
}

/* Mobile Topbar Overrides */
@media (max-width: 768px) {
  .admin-topbar {
    padding: 0 1rem !important;
  }
  .admin-page-title {
    font-size: 1rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    display: inline-block;
    vertical-align: middle;
  }
}

/* Mobile Content Area Padding */
@media (max-width: 768px) {
  .admin-content {
    padding: 1rem !important;
  }
}
@media (max-width: 480px) {
  .admin-content {
    padding: 0.75rem !important;
  }
}

/* Responsive Tables & Badge No-Wrap */
@media (max-width: 768px) {
  .admin-table-wrapper, [style*="overflow-x:auto"], [style*="overflow-x: auto"] {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
  }
  .data-table, .admin-table {
    min-width: 750px !important;
    width: 100%;
  }
}
.data-table td span, .admin-table td span {
  white-space: nowrap;
}

/* Horizontal Scroll Filter Bar for Mobile */
.admin-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
  width: 100%;
}
.admin-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  flex: 1;
}
.admin-filter-tabs::-webkit-scrollbar {
  height: 4px;
}
.admin-filter-tabs::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: 2px;
}
.admin-search-form {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .admin-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .admin-filter-tabs {
    width: 100%;
    flex: none;
    padding-bottom: 8px;
  }
  .admin-search-form {
    width: 100%;
    margin-left: 0;
  }
  .admin-search-form input {
    flex: 1;
    width: 100% !important;
  }
}

/* ============================================================
   10. PREMIUM 3D CARD TILT ANIMATION STYLES
   ============================================================ */
.tilt-card-3d {
  position: relative !important;
  transform-style: preserve-3d !important;
  perspective: 1000px !important;
  will-change: transform;
  /* Disable transform transitions so GSAP updates are snappy, but keep shadow/border transitions */
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Disable default CSS hover transform transitions to prevent clash with GSAP */
.tilt-card-3d:hover {
  transform: none !important;
}

/* Ensure inner elements can have depth (3D Parallax effect) */
.tilt-depth-sm {
  transform: translateZ(15px) !important;
}
.tilt-depth-md {
  transform: translateZ(30px) !important;
}
.tilt-depth-lg {
  transform: translateZ(45px) !important;
}

/* Premium dynamic glare overlay */
.card-glare {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: 0;
  z-index: 10 !important;
  border-radius: inherit !important;
  mix-blend-mode: overlay !important;
  will-change: background, opacity;
  transition: opacity 0.4s ease-out;
}

.tilt-card-3d:hover .card-glare {
  opacity: 1;
}

/* ============================================================
   GOOGLE-STYLE SEARCH AUTOCOMPLETE
   ============================================================ */
.search-suggest-wrap {
  position: relative;
  width: 100%;
}

.search-input-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--neutral-300);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  gap: 0;
}

.search-suggest-wrap.has-dropdown .search-input-row {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--pharma-900);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.07);
}

.search-input-row:focus-within {
  border-color: var(--pharma-900);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.07);
}

.search-icon-left {
  padding: 0 0 0 12px;
  font-size: 1rem;
  color: var(--neutral-400);
  flex-shrink: 0;
  pointer-events: none;
}

.search-suggest-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 14px 10px 8px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--neutral-800);
  min-width: 0;
}

.search-suggest-input::placeholder {
  color: var(--neutral-400);
}

/* ─── Dropdown Panel ─── */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--pharma-900);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 20px 40px -8px rgba(15,23,42,0.18), 0 4px 12px -4px rgba(15,23,42,0.08);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 #fff;
  display: none;
}

.search-dropdown.open { display: block; }

/* ─── Individual Suggest Item ─── */
.suggest-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--neutral-100);
}

.suggest-item:last-of-type { border-bottom: none; }

.suggest-item:hover,
.suggest-item.active {
  background: var(--neutral-50);
}

.suggest-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--neutral-200);
  background: #fff;
  flex-shrink: 0;
}

.suggest-thumb-fallback {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--neutral-400);
}

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

.suggest-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neutral-800);
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: normal;
  word-break: break-word;
}

.suggest-name mark {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.suggest-details-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.suggest-cat-badge {
  background: rgba(14,165,233,0.08);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.suggest-spec {
  font-size: 0.68rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.suggest-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-600);
  white-space: nowrap;
}

.suggest-price-req {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--neutral-500);
  background: var(--neutral-100);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ─── Footer Row ─── */
.suggest-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  border-top: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: background 0.15s;
}

.suggest-footer:hover { background: rgba(14,165,233,0.06); }
.suggest-footer strong { color: var(--pharma-900); }

/* ─── Loading State ─── */
.search-suggest-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.search-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--neutral-200);
  border-top-color: var(--pharma-900);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Empty State ─── */
.search-suggest-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.search-suggest-empty i {
  font-size: 1.2rem;
  color: var(--neutral-300);
}


/* ── Nav Dropdown (More menu) Mobile Fix ──────────────────────────── */
@media (max-width: 1024px) {
  .nav-dropdown-menu {
    display: block !important;
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 0 0 16px !important;
    margin: 4px 0 0 0 !important;
    width: 100% !important;
  }
  .nav-dropdown-menu li a {
    padding: 8px 10px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    color: var(--neutral-600) !important;
  }
  .nav-dropdown-toggle {
    color: var(--neutral-800) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
  }
  .nav-dropdown-toggle i { display: none !important; }
}

/* ── Nav Drop Item (shared style for More dropdown links) ─────────── */
.nav-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--neutral-700);
    text-decoration: none;
    transition: background 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}
.nav-drop-item:hover { background: var(--neutral-50); color: var(--pharma-700); }

@media (max-width: 1024px) {
    .nav-drop-item {
        font-size: 1rem !important;
        padding: 8px 10px !important;
    }
}
