/* ============================================================
   RENDHAL SCIENTIFIC — Master Stylesheet
   Biobase.cc Corporate Replica Aesthetic
   ============================================================ */

:root {
  /* Biobase Corporate Colors */
  --primary-blue: #174EA2;
  --secondary-blue: #1A5BBF;
  --accent-teal: #00B1DD;
  --accent-green: #28A745;
  --badge-red: #E53E3E;

  /* Neutrals */
  --bg-primary: #F8F9FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F1F3F5;
  --card-bg: #FFFFFF;
  --card-hover-bg: #F8FAFC;
  --card-border: #E9ECEF;
  --line-color: #DEE2E6;
  --line-color-soft: #F1F3F5;

  /* Typography */
  --text-title: #212529;
  --text-body: #495057;
  --text-muted: #868E96;

  /* Layout */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 8px;

  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-display: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --transition-fast: all 0.2s ease-in-out;
}

body.dark-theme {
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --card-bg: #1E293B;
  --card-hover-bg: #253447;
  --card-border: #334155;
  --line-color: #334155;
  --line-color-soft: #1E293B;
  --text-title: #F1F5F9;
  --text-body: #CBD5E1;
  --text-muted: #64748B;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Layout Utilities */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-head {
  margin-bottom: 35px;
  border-left: 4px solid var(--primary-blue);
  padding-left: 15px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-title);
}

.lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 700px;
}

/* Utility Bar */
.util {
  display: none;
  background: #102A43;
  color: #F0F4F8;
  font-size: 0.75rem;
  padding: 8px 0;
}

.util-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.util a {
  color: #F0F4F8;
  opacity: 0.9;
  transition: opacity 0.2s;
  margin-right: 15px;
}

.util a:hover {
  opacity: 1;
  color: var(--accent-teal);
}

/* Header & Sticky Navigation */
header {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  border-top: 5px solid var(--accent-teal);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
  height: 95px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.brand-logo {
  height: 82px;
  width: auto;
  object-fit: contain;
}

body.dark-theme header .brand-logo {
  content: url('../images/logo-dark.png');
  filter: none;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-title);
  font-size: 0.92rem;
  padding: 38px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links .active-nav {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

/* Mega Menu Dropdown */
.mega-menu-trigger {
  /* Aligns to navbar .nav wrapper instead of the trigger link */
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-md);
  padding: 15px 20px;
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  transform: translateY(10px);
}

.mega-menu-trigger:hover .mega-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
  cursor: pointer;
}

.mega-menu-item:hover {
  background: var(--bg-primary);
}

.mega-menu-item-icon {
  color: var(--primary-blue);
  flex-shrink: 0;
}

.mega-menu-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-title);
  margin: 0;
}

/* Mobile Nav Drawer */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--card-border);
  background: var(--bg-tertiary);
  transition: background 0.2s;
}

.menu-btn:hover {
  background: var(--line-color);
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text-title);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

/* Animated burger → X transform */
.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  z-index: 55;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

/* Premium mobile nav drawer header */
.mobile-menu-drawer::before {
  content: '';
  display: block;
  height: 70px;
  background: linear-gradient(135deg, #102A43, var(--primary-blue));
  flex-shrink: 0;
}

.mobile-menu-nav-links {
  padding: 10px 0 20px;
  flex: 1;
}

.mobile-menu-drawer a {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line-color-soft);
  color: var(--text-title);
  transition: background 0.15s, color 0.15s, padding-left 0.2s;
  gap: 10px;
}

.mobile-menu-drawer a:hover,
.mobile-menu-drawer a.active-nav {
  background: var(--bg-primary);
  color: var(--primary-blue);
  padding-left: 30px;
  border-left: 3px solid var(--primary-blue);
}

/* Mobile CTA in drawer */
.mobile-menu-cta {
  padding: 20px 24px;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu-cta .mobile-quote-btn {
  display: block;
  text-align: center;
  background: var(--primary-blue);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}

.mobile-menu-cta .mobile-quote-btn:hover {
  background: var(--secondary-blue);
}

.mobile-menu-cta .mobile-wa-btn {
  display: block;
  text-align: center;
  background: #25D366;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}

.mobile-menu-cta .mobile-wa-btn:hover {
  background: #1ebe5d;
}

/* Mobile drawer overlay backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 54;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
  display: block;
  opacity: 1;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,42,67,0.5), rgba(23,78,162,0.15));
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 40px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-slide-content h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-slide-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

.btn-slider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-teal);
  color: white;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-slider:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.slider-dot.active {
  background: white;
}

/* Slider Arrows */
.slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  pointer-events: none;
  z-index: 6;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(0) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.slider-arrow:active {
  transform: translateY(0) scale(0.95);
}

/* Featured Products Carousel */
.featured-section {
  background: var(--bg-secondary);
}

.featured-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 45px;
}

.featured-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 12px 0;
  scroll-behavior: smooth;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-card {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: calc((100% - 60px) / 4);
  max-width: calc((100% - 60px) / 4);
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--transition-fast);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1100px) {
  .featured-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
}

@media (max-width: 768px) {
  .featured-carousel-wrapper {
    padding: 0 35px;
  }
  .featured-card {
    flex: 0 0 calc((100% - 15px) / 2);
    min-width: calc((100% - 15px) / 2);
    max-width: calc((100% - 15px) / 2);
  }
}

@media (max-width: 480px) {
  .featured-carousel-wrapper {
    padding: 0 25px;
  }
  .featured-card {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
  }
}

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

.featured-card-img {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: var(--bg-tertiary);
}

.featured-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--badge-red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}

.featured-card-brand {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2px 5px;
  border-radius: 2px;
}

.featured-card-brand img {
  height: 12px;
  width: auto;
  mix-blend-mode: multiply;
}

.featured-card-body {
  padding: 12px 14px;
  flex-grow: 1;
}

.featured-card-body h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 2px;
}

.featured-card-body .model-tag,
.product-model-tag,
.product-model,
.model {
  display: none !important;
}

.featured-card-body p {
  font-size: 0.75rem;
  color: var(--text-body);
  margin-top: 6px;
  line-height: 1.35;
}

.featured-card-cta {
  padding: 0 14px 12px;
}

.btn-inquire {
  width: 100%;
  background: var(--primary-blue);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  text-align: center;
  transition: background 0.2s;
}

.btn-inquire:hover {
  background: var(--secondary-blue);
}

.carousel-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-title);
  z-index: 10;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-arrow-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  box-shadow: 0 6px 16px rgba(10, 77, 140, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow-left { left: 2px; }
.carousel-arrow-right { right: 2px; }

/* Company Statistics Section */
.stats-section {
  background: #102A43;
  color: white;
  padding: 45px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-teal);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* Certifications Strip */
.certs-section {
  padding: 30px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.certs-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.75;
}

.cert-badge:hover {
  opacity: 1;
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.cert-badge span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Categories Visual Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.category-cover-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: var(--transition-fast);
}

.category-cover-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.category-image-wrapper {
  position: relative;
  padding-top: 60%;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.category-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.category-icon-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.category-card-body {
  padding: 12px 14px;
}

.category-card-body h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 2px;
}

.category-card-body p {
  font-size: 0.75rem;
  color: var(--text-body);
  line-height: 1.35;
}

.category-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 6px;
}

/* Products Catalog Page layout with LEFT SIDEBAR */
.catalog-page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 40px 0;
}

.catalog-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  padding: 15px;
  align-self: start;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-blue);
  text-transform: uppercase;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  color: var(--text-body);
  transition: all 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--bg-primary);
  color: var(--primary-blue);
}

.sidebar-link .count-badge {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.sidebar-link.active .count-badge {
  background: var(--primary-blue);
  color: white;
}

/* Products Grid */
.products-grid-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-header-banner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  padding: 20px 25px;
  border-left: 4px solid var(--primary-blue);
}

.catalog-header-banner h2 {
  font-size: 1.25rem;
  color: var(--text-title);
  font-weight: 700;
}

.catalog-header-banner p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.catalog-search-wrapper {
  position: relative;
  width: 280px;
}

.catalog-search-wrapper input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
  font-size: 0.8rem;
  color: var(--text-title);
}

.catalog-search-wrapper input:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.catalog-search-wrapper .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.catalog-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.product-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.product-card-img-wrapper {
  position: relative;
  padding-top: 75%;
  background: var(--bg-tertiary);
}

.product-card-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 12px 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-title);
}

.product-card-body .model {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-top: 2px;
}

.product-card-body p {
  font-size: 0.75rem;
  color: var(--text-body);
  margin-top: 6px;
  line-height: 1.35;
  flex-grow: 1;
}

.product-card-footer {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line-color-soft);
  display: flex;
  gap: 8px;
}

.btn-detail {
  flex-grow: 1;
  background: var(--bg-tertiary);
  color: var(--text-title);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  text-align: center;
}

.btn-detail:hover {
  background: var(--line-color);
}

.btn-add-quote {
  background: var(--primary-blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-add-quote:hover {
  background: var(--secondary-blue);
}

.btn-add-quote.in-cart {
  background: var(--accent-green);
  pointer-events: none;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

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

.breadcrumbs span::after {
  content: "/";
  margin-left: 6px;
}

.breadcrumbs span:last-child::after {
  content: "";
}

/* Product Detail Page Layout */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 20px 0 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  padding: 30px;
}

.product-detail-gallery {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  background: var(--bg-tertiary);
  padding-top: 75%;
  overflow: hidden;
}

.product-detail-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-title);
  font-weight: 700;
}

.product-detail-info .model {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-top: 4px;
}

.product-detail-info .desc {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-top: 15px;
  line-height: 1.5;
}

.product-detail-cta {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line-color-soft);
}

.btn-detail-inquire {
  background: var(--primary-blue);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--r-sm);
}

.btn-detail-inquire:hover {
  background: var(--secondary-blue);
}

.btn-detail-add-quote {
  background: transparent;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--r-sm);
}

.btn-detail-add-quote:hover {
  background: var(--primary-blue);
  color: white;
}

.btn-detail-add-quote.in-cart {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
  pointer-events: none;
}

/* Detail Page Parameter Tabs Section */
.product-tabs-container {
  margin-top: 40px;
}

.detail-tabs-header {
  display: flex;
  border-bottom: 2px solid var(--line-color);
}

.detail-tab-btn {
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.detail-tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.detail-tab-content {
  display: none;
  padding: 20px 0;
}

.detail-tab-content.active {
  display: block;
}

/* Specifications Table */
.spec-table-wrapper {
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.spec-table tr {
  border-bottom: 1px solid var(--line-color-soft);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: 10px 15px;
}

.spec-table td.label-cell {
  font-weight: 700;
  color: var(--text-title);
  width: 35%;
  background: var(--bg-tertiary);
  border-right: 1px solid var(--line-color-soft);
}

.spec-table td.value-cell {
  color: var(--text-body);
}

/* Features List */
.features-list {
  list-style: none;
}

.features-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-body);
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

/* Related Products */
.related-section {
  margin-top: 40px;
}

/* static corporate pages */
.corp-layout {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  padding: 40px;
}

.corp-layout h2 {
  font-size: 1.4rem;
  color: var(--text-title);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line-color-soft);
  padding-bottom: 6px;
}

.corp-layout p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.branch-card {
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  padding: 20px;
  background: var(--bg-primary);
}

.branch-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 6px;
}

.branch-card p {
  font-size: 0.78rem;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Certificates Grid */
.certs-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.cert-page-card {
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  padding: 25px;
  text-align: center;
  background: var(--bg-primary);
}

.cert-page-card .cert-badge-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--primary-blue);
  color: var(--primary-blue);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.cert-page-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
}

.cert-page-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* News Section Grid — 5 Cards in a Single Window View */
.news-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.news-card-img {
  width: 100%;
  padding-top: 58%;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.news-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #0284C7;
  letter-spacing: 0.02em;
}

.news-card-body h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-title);
  margin-top: 4px;
  line-height: 1.35;
}

.news-card-body p {
  font-size: 0.74rem;
  color: var(--text-body);
  margin-top: 6px;
  line-height: 1.38;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  padding: 25px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  background: var(--bg-secondary);
  font-size: 0.8rem;
  color: var(--text-title);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--primary-blue);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--r-sm);
  text-align: center;
}

.btn-submit:hover {
  background: var(--secondary-blue);
}

/* Float Basket & Cart Drawer */
.floating-cart {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 90;
  display: none;
}

.floating-cart.active {
  display: block;
}

.cart-toggle-btn {
  background: var(--primary-blue);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--badge-red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 95;
  display: none;
}

.cart-drawer-backdrop.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 100;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.cart-drawer.open {
  right: 0;
}

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

.cart-drawer-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-color-soft);
}

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

.cart-item-info strong {
  font-size: 0.8rem;
  color: var(--text-title);
}

.cart-item-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-item-remove {
  color: var(--badge-red);
}

.cart-drawer-footer {
  padding: 15px;
  border-top: 1px solid var(--card-border);
}

.cart-drawer-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-sync-btn {
  width: 100%;
  background: var(--primary-blue);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px;
  border-radius: var(--r-sm);
  text-align: center;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  color: var(--text-title);
  animation: slideIn 0.2s ease-out;
}

.toast-success { border-left: 3px solid var(--accent-green); }
.toast-info { border-left: 3px solid var(--primary-blue); }

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

/* Footer Section — Scilogex Inspired Replica (Light Blue Theme) */
footer {
  background: #EDF5FF;
  color: #334155;
  padding: 50px 0 0;
  font-size: 0.82rem;
  border-top: 3px solid #0284C7;
  position: relative;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 1.1fr 1.3fr;
  gap: 30px;
  align-items: start;
}

footer .brand-logo {
  height: 90px;
  width: auto;
  margin-bottom: 15px;
  display: block;
}

.foot-address {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 12px;
}

.foot-contact-link {
  color: #0284C7;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s;
  display: inline-block;
}

.foot-contact-link:hover {
  color: #0369A1;
  text-decoration: underline;
}

.foot-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F2942;
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  color: #0284C7 !important;
  font-size: 0.88rem;
  margin-bottom: 7px;
  transition: color 0.2s;
  text-decoration: none;
}

.foot-col a:hover {
  color: #0F2942 !important;
  text-decoration: underline;
}

/* Trust Badges Column */
.foot-trust {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.trust-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-brand-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-top: 4px;
  line-height: 1;
}

.trust-ssl-text {
  font-size: 0.85rem;
  color: #334155 !important;
  font-weight: 600;
  line-height: 1.35;
  max-width: 240px;
}

/* Newsletter Column */
.foot-newsletter h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0F2942;
  line-height: 1.35;
  margin-bottom: 10px;
}

.foot-newsletter p {
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 6px;
}

.newsletter-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #CBD5E1;
  border-radius: var(--r-sm);
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.82rem;
  outline: none;
  width: 100%;
}

.newsletter-input:focus {
  border-color: #0284C7;
}

.newsletter-btn {
  background: #0284C7;
  color: #FFFFFF;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  transition: background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #0369A1;
}

/* Bottom Copyright Bar with Back-To-Top */
.foot-bottom {
  margin-top: 40px;
  background: #E2EEF9;
  padding: 16px 0;
  border-top: 1px solid #CBD5E1;
  position: relative;
}

.foot-bottom-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.foot-bottom p {
  font-size: 0.78rem;
  color: #475569;
  margin: 0;
}

.back-to-top-btn {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  width: 38px;
  height: 28px;
  border-radius: 14px 14px 0 0;
  background: #CBD5E1;
  color: #0F2942;
  border: 1px solid #94A3B8;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.back-to-top-btn:hover {
  background: #0284C7;
  color: #FFFFFF;
}

.back-to-top-btn:hover {
  background: #38BDF8;
  color: #0F172A;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icons a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #324D6E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8395A7;
}

.social-icons a:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
}

/* Theme Switch Button */
.theme-switch {
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-title);
  margin-left: 10px;
}

.theme-switch:hover {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.sun-icon { display: none; }
body.dark-theme .sun-icon { display: block; }
body.dark-theme .moon-icon { display: none; }

/* Header Search Bar */
.header-search {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 6px 14px;
  max-width: 240px;
  margin-left: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(23,78,162,0.15);
}

.header-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.82rem;
  color: var(--text-title);
  width: 100%;
  padding-right: 25px;
}

.header-search button {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color 0.2s;
}

.header-search button:hover {
  color: var(--primary-blue);
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* ================================================================
   COMPREHENSIVE MOBILE-FIRST RESPONSIVE DESIGN
   All breakpoints: 1200px → 900px → 768px → 580px → 480px → 380px
   ================================================================ */

/* ── Large Tablets / Small Desktops (≤ 1200px) ── */
@media (max-width: 1200px) {
  .wrap { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .header-search { max-width: 180px; }
}

/* ── Tablets (≤ 1040px) ── */
@media (max-width: 1040px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-products-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .branches-grid, .certs-page-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-page-layout { grid-template-columns: 200px 1fr; gap: 20px; }
}

/* ── Mobile Nav Trigger (≤ 900px) ── */
@media (max-width: 900px) {
  /* Header adjustments */
  header {
    height: 70px;
    border-top-width: 3px;
  }

  .nav-links { display: none; }
  .header-search { display: none; }
  .menu-btn { display: flex; }
  .mega-menu { display: none !important; }

  /* Hide text of "Request a Quote" button, only show on large screens */
  .nav-cta .btn-inquire {
    display: none;
  }

  /* Hero */
  .hero-slider { height: 360px; }
  .hero-slide-content h1 { font-size: 1.9rem; }
  .hero-slide-content p { font-size: 0.9rem; }

  /* Layout */
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .catalog-page-layout { grid-template-columns: 1fr; }

  /* Sidebar: convert to horizontal scrollable pills on mobile */
  .catalog-sidebar {
    position: relative;
  }

  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .sidebar-link {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    background: var(--bg-primary);
    white-space: nowrap;
  }

  .sidebar-link:hover,
  .sidebar-link.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
  }

  .sidebar-link.active .count-badge {
    background: rgba(255,255,255,0.25);
    color: white;
  }

  /* Product modal full-screen on tablet */
  .product-modal-container {
    max-height: 92vh;
    border-radius: var(--r-md);
  }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  /* Core layout */
  .wrap { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 25px; }
  .sec-title { font-size: 1.4rem; }

  /* Utility bar hidden on mobile (info in drawer) */
  .util { display: none; }

  /* Header */
  header { height: 65px; }
  .brand-logo { height: 50px; }

  /* Hero slider */
  .hero-slider { height: 320px; }
  .hero-slide-content {
    padding: 0 20px;
    max-width: 100%;
  }
  .hero-slide-content h1 {
    font-size: 1.65rem;
    line-height: 1.15;
  }
  .hero-slide-content p {
    font-size: 0.85rem;
    margin-bottom: 18px;
  }
  .btn-slider {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  .slider-arrows { padding: 0 12px; }
  .slider-arrow {
    width: 38px;
    height: 38px;
  }

  /* Stats section */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .stat-item .stat-number { font-size: 2rem; }

  /* Certifications strip */
  .certs-grid { gap: 20px; }
  .cert-icon { width: 38px; height: 38px; font-size: 0.6rem; }

  /* Categories grid */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* News section */
  .news-grid { grid-template-columns: 1fr; gap: 15px; }

  /* Featured carousel */
  .featured-carousel-wrapper { padding: 0 30px; }

  /* Product catalog */
  .catalog-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .catalog-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .catalog-search-wrapper { width: 100%; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Footer */
  .foot-top { grid-template-columns: 1fr; gap: 25px; }
  footer .brand-logo { height: 78px; }

  /* Corp layout */
  .corp-layout { padding: 25px; }

  /* Branches & Certs */
  .branches-grid { grid-template-columns: 1fr; }
  .certs-page-grid { grid-template-columns: repeat(2, 1fr); }

  /* Cart drawer */
  .cart-drawer { width: 100%; right: -100%; }
  .cart-drawer.open { right: 0; }

  /* Category banner */
  .category-banner {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .category-banner-image { height: 150px; }

  /* Products sub-grid */
  .products-sub-grid { grid-template-columns: 1fr; }

  /* Product modal full-screen */
  .product-modal-backdrop { padding: 0; align-items: flex-end; }
  .product-modal-container {
    max-height: 96vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-width: 100%;
  }
  .product-modal-body { padding: 20px; gap: 20px; }
  .product-modal-main-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-modal-meta h2 { font-size: 1.4rem; }

  /* AI Chat widget */
  .ai-chat-box {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    z-index: 9999;
  }
  .ai-chat-widget { bottom: 16px; right: 16px; }

  /* Floating cart button */
  .floating-cart { bottom: 80px; right: 16px; }

  /* Toast */
  .toast-container { left: 12px; right: 12px; bottom: 16px; }
  .toast { font-size: 0.82rem; }

  /* Touch-friendly targets */
  .btn-slider, .btn-inquire, .btn-add-quote, .btn-detail,
  .btn-submit, .cart-sync-btn, .modal-add-quote-btn,
  .add-quote-btn, .sidebar-link, .mobile-menu-cta a {
    min-height: 44px;
  }

  /* Detail tabs scrollable on mobile */
  .detail-tabs-header {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .detail-tabs-header::-webkit-scrollbar { display: none; }
  .detail-tab-btn { flex-shrink: 0; padding: 10px 16px; }

  /* Product modal tabs scrollable */
  .product-modal-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .product-modal-tabs::-webkit-scrollbar { display: none; }
  .product-modal-tab-btn { flex-shrink: 0; }
}

/* ── Small Mobile (≤ 580px) ── */
@media (max-width: 580px) {
  .wrap { padding: 0 12px; }
  .section { padding: 30px 0; }
  .sec-title { font-size: 1.25rem; }

  /* Hero */
  .hero-slider { height: 280px; }
  .hero-slide-content h1 { font-size: 1.35rem; }
  .hero-slide-content p { font-size: 0.8rem; margin-bottom: 14px; }
  .slider-arrow { display: none; } /* hide on very small, use dots only */
  .slider-dots { bottom: 12px; }

  /* Stats - 2 column always */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: center;
  }
  .stat-item .stat-number { font-size: 1.75rem; }
  .stat-item .stat-label { font-size: 0.78rem; }

  /* Categories */
  .categories-grid { grid-template-columns: 1fr; }

  /* Products grid - single column on small mobile */
  .catalog-products-grid { grid-template-columns: 1fr; }

  /* Corp layout */
  .corp-layout { padding: 16px; }
  .corp-layout h2 { font-size: 1.15rem; }

  /* Cert badges */
  .certs-grid { gap: 15px; }
  .cert-badge { gap: 4px; }
  .cert-icon { width: 36px; height: 36px; }

  /* Certs page */
  .certs-page-grid { grid-template-columns: 1fr; }

  /* Branches */
  .branches-grid { grid-template-columns: 1fr; }

  /* Cart */
  .cart-drawer { width: 100%; }

  /* Featured cards single */
  .featured-carousel-wrapper { padding: 0 20px; }
  .featured-card {
    flex: 0 0 85%;
    min-width: 85%;
    max-width: 85%;
  }

  /* Footer */
  .foot-bottom-in { flex-direction: column; text-align: center; gap: 12px; }
  .back-to-top-btn { position: static; transform: none; margin: 0 auto; border-radius: 50%; width: 34px; height: 34px; }
  .foot-top { grid-template-columns: 1fr; gap: 25px; }
  footer { padding: 35px 0 0; }

  /* Product card footer buttons stacked */
  .product-card-footer { flex-direction: column; }
  .btn-detail { text-align: center; }

  /* Spec table scroll */
  .spec-table-wrapper { overflow-x: auto; }
  .spec-table td { padding: 8px 10px; font-size: 0.78rem; }
  .spec-table td.label-cell { width: 40%; }

  /* Product detail CTA stacked */
  .product-detail-cta { flex-direction: column; gap: 8px; }
  .btn-detail-inquire, .btn-detail-add-quote { width: 100%; text-align: center; }
}

/* ── Extra Small Mobile (≤ 420px) ── */
@media (max-width: 420px) {
  header { height: 60px; }
  .brand-logo { height: 44px; }
  .nav-cta { gap: 6px; }
  .theme-switch { width: 36px; height: 36px; }
  .menu-btn { width: 36px; height: 36px; }

  .hero-slider { height: 250px; }
  .hero-slide-content h1 { font-size: 1.2rem; }

  /* Stat section stays 2 col */
  .stat-item .stat-number { font-size: 1.6rem; }

  /* AI chat */
  .ai-chat-box { height: 85vh; }
  .ai-chat-toggle-btn { width: 48px; height: 48px; }

  /* Product modal */
  .product-modal-body { padding: 14px; gap: 15px; }
  .product-modal-meta h2 { font-size: 1.25rem; }

  /* Footer */
  .foot-col h4 { margin-bottom: 8px; }
  .foot-col a { margin-bottom: 5px; }

  /* Util bar stacked */
  .util-in { flex-direction: column; gap: 3px; text-align: center; }
}

/* ============================================================
   PRODUCT DETAIL VIEW (category detail mode) & TABS
   ============================================================ */

.category-banner {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 25px;
  max-height: 200px;
  align-items: center;
}

.category-banner-copy {
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-banner-copy h2 {
  font-size: 1.4rem;
  color: var(--text-title);
  margin-bottom: 6px;
  font-weight: 700;
}

.category-banner-copy p {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.4;
  margin: 0;
}

.category-banner-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.category-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back-to-catalog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--primary-blue);
  cursor: pointer;
  margin-bottom: 10px;
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  transition: color 0.2s;
}

.back-to-catalog:hover {
  color: var(--secondary-teal);
  text-decoration: underline;
}

.products-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-item-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.product-item-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.product-image-header {
  position: relative;
  padding-top: 50%; /* Make product image smaller and aspect ratio wider (2:1) */
  background: var(--bg-tertiary);
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
}

.product-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.product-model-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.product-card-body > p {
  font-size: 0.8rem;
  color: var(--text-body);
  margin-top: 8px;
  line-height: 1.45;
  margin-bottom: 15px;
}

/* Tabs styling */
.product-tabs {
  display: flex;
  border-bottom: 2px solid var(--line-color);
  margin-top: 10px;
  margin-bottom: 15px;
  gap: 15px;
}

.product-tab-btn {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.product-tab-btn:hover {
  color: var(--primary-blue);
}

.product-tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.product-tab-content {
  display: none;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-body);
  flex-grow: 1;
}

.product-tab-content.active {
  display: block;
}

/* Specs Table */
.product-specs-table-wrapper {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--r-sm);
}

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.product-specs-table tr {
  border-bottom: 1px solid var(--line-color-soft);
}

.product-specs-table tr:last-child {
  border-bottom: none;
}

.product-specs-table tr:nth-child(even) {
  background: var(--bg-primary);
}

.product-specs-table td {
  padding: 8px 10px;
}

.product-specs-table td:first-child {
  font-weight: 600;
  color: var(--text-title);
  width: 40%;
  border-right: 1px solid var(--line-color-soft);
}

/* Features List */
.product-features-list {
  padding-left: 15px;
  margin: 0;
  list-style-type: disc;
}

.product-features-list li {
  margin-bottom: 6px;
  font-size: 0.75rem;
  color: var(--text-body);
}

.product-features-list li::marker {
  color: var(--primary-blue);
}

/* Inquiry button inside details card */
.add-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 15px;
}

.add-quote-btn:hover {
  background: #1A5BBF;
  transform: translateY(-1px);
}

.add-quote-btn.in-cart {
  background: var(--accent-green);
}

.product-slideshow .slideshow-arrow {
  opacity: 0.75;
  pointer-events: auto;
}

.product-slideshow .slideshow-arrow:hover {
  background: white !important;
  transform: translateY(-50%) scale(1.1) !important;
  color: var(--primary-blue) !important;
}

.product-slideshow .slideshow-dot:hover {
  background: white !important;
  transform: scale(1.2) !important;
}

/* ─── 26. PRODUCT DETAIL MODAL LIGHTBOX ────────────────────── */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.product-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal-container {
  position: relative;
  width: 100%;
  max-width: 950px;
  max-height: 90vh;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-backdrop.active .product-modal-container {
  transform: scale(1) translateY(0);
}

.product-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-title);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: var(--transition-fast);
}

.product-modal-close-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: rotate(90deg);
}

.product-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.product-modal-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .product-modal-main-grid {
    grid-template-columns: 1fr;
  }
  .product-modal-container {
    max-height: 95vh;
  }
}

/* Modal Gallery Styling */
.product-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-modal-main-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 ratio */
  background: var(--bg-tertiary);
  border-radius: var(--r-md);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.product-modal-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.product-modal-thumbs::-webkit-scrollbar {
  height: 4px;
}

.product-modal-thumbs::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 2px;
}

.product-modal-thumb-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--r-sm);
  border: 2px solid var(--card-border);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.product-modal-thumb-btn.active {
  border-color: var(--primary-blue);
}

.product-modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Meta Styling */
.product-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-modal-meta .cat-badge {
  align-self: flex-start;
  background: rgba(23, 78, 162, 0.1);
  color: var(--primary-blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}

.product-modal-meta h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.2;
}

.product-modal-meta .desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Tab Styles in Modal */
.product-modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--line-color-soft);
  gap: 20px;
  margin-top: 10px;
}

.product-modal-tab-btn {
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.product-modal-tab-btn.active {
  color: var(--primary-blue);
}

.product-modal-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-blue);
}

.product-modal-tab-pane {
  display: none;
  margin-top: 15px;
  max-height: 200px;
  overflow-y: auto;
}

.product-modal-tab-pane.active {
  display: block;
}

/* Recommendations Slider */
.product-modal-suggestions {
  border-top: 1px solid var(--line-color-soft);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-modal-suggestions h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-title);
}

.suggestions-slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.suggestions-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  padding: 5px 0;
}

.suggestions-slider::-webkit-scrollbar {
  display: none;
}

.suggestion-card {
  width: 180px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.suggestion-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.suggestion-card-img {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 ratio */
  overflow: hidden;
  background: white;
}

.suggestion-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.suggestion-card-body h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggestion-card-body p {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
}

/* Slider Controls */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-title);
  z-index: 5;
  transition: var(--transition-fast);
}

.slider-arrow-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.slider-arrow-btn.left {
  left: -15px;
}

.slider-arrow-btn.right {
  right: -15px;
}

.modal-add-quote-btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  transition: var(--transition-fast);
  margin-top: 10px;
}

.modal-add-quote-btn:hover {
  background: #1A5BBF;
  transform: translateY(-1px);
}

.modal-add-quote-btn.in-cart {
  background: var(--accent-green);
}

/* Custom diagram scaling class */
.contain-fit {
  object-fit: contain !important;
  background: #ffffff !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  image-rendering: -webkit-optimize-contrast !important;
  image-rendering: crisp-edges !important;
}

.tall-fit {
  object-fit: contain !important;
  background: var(--bg-tertiary) !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}

.pipette-fit {
  object-fit: contain !important;
  background: #ffffff !important;
}


/* AI Chat Widget */
.ai-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  font-family: inherit;
}

.ai-chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-toggle-btn:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.ai-chat-box {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 360px;
  height: 500px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 110;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  pointer-events: none;
}

.ai-chat-box.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
  color: #ffffff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.4);
}

.ai-chat-bot-info h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.ai-chat-status {
  font-size: 0.72rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.ai-chat-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
  padding: 0 5px;
  transition: opacity 0.2s;
}

.ai-chat-close-btn:hover {
  opacity: 1;
}

.ai-chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-secondary);
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-body);
  border-radius: 16px 16px 16px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--primary-blue);
  color: #ffffff;
  border-radius: 16px 16px 0 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.chat-msg p {
  margin: 0;
}

.chat-msg p + p {
  margin-top: 8px;
}

.chat-msg b {
  font-weight: 700;
  color: var(--text-title);
}

.chat-msg.user b {
  color: #ffffff;
}

.ai-chat-suggestions {
  padding: 10px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--card-border);
  background: var(--card-bg);
}

.chat-suggest-btn {
  padding: 6px 12px;
  border: 1px solid var(--primary-blue);
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary-blue);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-suggest-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.ai-chat-input-form {
  display: flex;
  border-top: 1px solid var(--card-border);
  padding: 12px;
  background: var(--card-bg);
  align-items: center;
}

.ai-chat-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--bg-secondary);
  color: var(--text-body);
  outline: none;
  font-size: 0.85rem;
  transition: border 0.2s;
}

.ai-chat-input:focus {
  border-color: var(--primary-blue);
}

.ai-chat-send-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ai-chat-send-btn:hover {
  background: var(--accent-teal);
}

/* Typing Indicator Animation */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@media (max-width: 480px) {
  .ai-chat-box {
    width: calc(100vw - 40px);
    height: 400px;
  }
}

