/* style.css - SPP LED LIGHTS Premium Corporate Style Sheet */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- DYNAMIC CUSTOM PROPERTIES / DESIGN SYSTEM --- */
:root {
  /* Brand Accent: Premium Corporate Light Blue (inspired by Crompton & Philips Hue) */
  --accent-color: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: rgba(2, 132, 199, 0.08);

  /* Clean Corporate Palette */
  --bg-primary: #ffffff;         /* Pure clean white background canvas */
  --bg-secondary: #f8fafc;       /* Crisp soft off-white/light-slate for alternate grids */
  --bg-tertiary: #f1f5f9;        /* Lighter grey accent surfaces / input borders */
  
  --text-primary: #0f172a;       /* Deep slate-black for main headlines & title labels */
  --text-secondary: #475569;     /* Sleek dark charcoal for body copy readability */
  --text-muted: #64748b;         /* Muted Slate Grey for structural text descriptions */
  
  --border-light: #e2e8f0;       /* Fine, ultra-thin slate border divider lines */
  --border-dark: #cbd5e1;
  
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(15, 23, 42, 0.06);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container Widths */
  --max-width: 1280px;
}

/* --- RESET & BASIC STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  transition: background-color var(--transition-normal);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITIES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-accent {
  color: var(--accent-color);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* --- HEADER / STICKY NAVBAR --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--border-light);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-color);
  font-weight: 700;
  margin-top: 1px;
}

.nav-container nav {
  height: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  height: 100%;
}

.nav-menu > li {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color);
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition-normal);
}

.nav-menu li.has-dropdown:hover .dropdown-arrow,
.nav-menu li.has-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Hamburger mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-normal);
}

/* --- MEGA MENU CONTAINERS --- */
.nav-menu li.has-dropdown {
  position: static !important;
}

.mega-menu {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99;
  padding: 2.5rem 0;
}

/* Hover bridge to keep the mega-menu active during cursor transit */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: transparent;
}

.nav-menu li.has-dropdown:hover .mega-menu,
.nav-menu li.has-dropdown.open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  gap: 2.5rem;
}

.mega-menu-grid.split-grid {
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3.5rem;
}

.mega-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mega-col ul a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
}

.mega-col ul a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

/* Highlight card inside Mega Menu */
.mega-highlight-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.mega-highlight-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.mega-highlight-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.mega-highlight-content {
  padding: 1rem;
}

.mega-highlight-content h6 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.mega-highlight-content p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.highlight-btn {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color) !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.highlight-btn:hover {
  text-decoration: underline;
}

/* Brands columns inside mega dropdown */
.brands-logos-col h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.brands-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.brand-logo-plate {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: center;
  padding: 0.25rem;
}

.brand-logo-plate:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
  background: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(0, 150, 136, 0.08);
}

.brands-statement-col {
  border-left: 1px solid var(--border-light);
  padding-left: 3rem;
  display: flex;
  align-items: center;
}

.statement-card h5 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.statement-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.statement-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.statement-link:hover {
  gap: 8px;
}

/* Header socials */
.header-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-social-btn {
  font-size: 1.05rem;
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.header-social-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--bg-secondary);
}

/* Responsive mobile styles for mega menu accordion */
@media (max-width: 1024px) {
  .mega-menu {
    display: block !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .nav-menu li.has-dropdown.open .mega-menu {
    max-height: 1000px;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }
  
  .mega-menu-grid.split-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .mega-col h5, .brands-logos-col h5 {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1px dashed var(--border-light) !important;
    padding-bottom: 0.25rem !important;
  }
  
  .mega-col ul {
    margin-left: 0.5rem !important;
  }
  
  .mega-col ul li a {
    font-size: 0.85rem !important;
    padding: 0.35rem 0 !important;
  }
  
  .mega-highlight-col, .brands-statement-col {
    display: none !important; /* Hide massive cards on mobile to keep menu sleek & fast */
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background-color: var(--bg-secondary);
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  background: #ffffff;
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.hero-info-pills {
  display: flex;
  gap: 2.2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.hero-pill {
  display: flex;
  flex-direction: column;
}

.hero-pill-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.hero-pill-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-social-connect {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-social-connect span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.hero-social-link:hover {
  color: var(--accent-color);
  background: var(--bg-secondary);
}

.hero-social-link i {
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
}

.hero-img-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);
  background: #ffffff;
  aspect-ratio: 4/3;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- BROCHURES & INSPIRATION (Crompton Style) --- */
.brochures-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: -2rem auto 4rem;
}

.brochures-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.brochure-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 0.72 / 1;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
  transition: var(--transition-normal);
}

.brochure-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.brochure-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.7) 45%, transparent 100%);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.brochure-content h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.brochure-content p {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.btn-brochure {
  width: 100%;
  padding: 0.8rem 0;
  border-radius: 50px;
  background: linear-gradient(135deg, #00b4db, #0083b0);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 180, 219, 0.3);
  transition: var(--transition-normal);
}

.brochure-card:hover {
  transform: translateY(-5px);
  border-color: #00b4db;
  box-shadow: 0 15px 30px rgba(0, 180, 219, 0.15);
}

.brochure-card:hover .brochure-img {
  transform: scale(1.03);
}

/* --- SEGMENT ICON SUB-NAVBAR (Crompton Style) --- */
.segment-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 80px;
  left: 0;
  width: 100%;
  z-index: 500;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}

.segment-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding: 1rem 1.5rem 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.segment-container::-webkit-scrollbar {
  height: 5px;
  display: block;
}

.segment-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.segment-container::-webkit-scrollbar-thumb {
  background-color: var(--border-light);
  border-radius: 4px;
  transition: var(--transition-normal);
}

.segment-container::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-color);
}

.segment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  transition: var(--transition-normal);
  min-width: 90px;
}

.segment-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-normal);
  color: var(--text-secondary);
}

.segment-btn span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.segment-btn:hover {
  color: var(--text-primary);
}

.segment-btn:hover .segment-icon-wrapper {
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.segment-btn.active {
  color: var(--text-primary);
}

.segment-btn.active .segment-icon-wrapper {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 4px 10px var(--accent-light);
}

/* --- ABOUT SECTION --- */
.about {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.about-intro h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.about-intro p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.about-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 1.75rem;
  border-radius: 12px;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.about-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.about-card-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.about-card:hover .about-card-icon {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

.about-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.about-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-color);
}

.contact-text-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.contact-text-box p {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* --- PRODUCTS / CATALOG DISPLAY --- */
.products-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.catalog-controls {
  margin-bottom: 3rem;
}

.search-container {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.search-box {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.search-box:focus {
  border-color: var(--accent-color);
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 150, 136, 0.08);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1.1rem;
}

.search-box:focus + .search-icon {
  color: var(--accent-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* Havells-Style crisp cards layout */
.product-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: transform var(--transition-slow), opacity 0.2s ease-in-out;
  display: block;
}

.product-img.loaded {
  opacity: 1;
}

.product-card:hover .product-img {
  transform: scale(1.03);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.product-model {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Havells specs bullet lines */
.product-bullets {
  list-style: none;
  margin-bottom: 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 70px;
}

.product-bullets li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.product-specs-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-light);
}

.spec-pill {
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

.view-details-btn {
  width: 100%;
  padding: 0.75rem 0;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  transition: var(--transition-normal);
  color: var(--text-primary);
}

.product-card:hover .view-details-btn {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

/* Dynamic badges */
.tag-new {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #22c55e;
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
  z-index: 5;
}

.tag-energy {
  background: #f97316;
  box-shadow: 0 4px 8px rgba(249, 115, 22, 0.2);
}

.tag-smart {
  background: var(--accent-color);
  box-shadow: 0 4px 8px var(--accent-light);
}

.tag-bldc {
  background: #0ea5e9;
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.2);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* --- BRANDS SECTION --- */
.brands-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.brands-container h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
}

.brand-logo-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
  color: var(--text-secondary);
}

.brand-logo-card:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* --- GALLERY SECTION --- */
.gallery-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.gallery-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.02);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
  padding: 1.25rem;
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-tag {
  font-size: 0.7rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CONTACT SECTION & MAPS --- */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-slogan h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-slogan p {
  color: var(--text-secondary);
}

/* Map Overlay styling */
.map-card-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  aspect-ratio: 16/9;
}

.map-card-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.map-card-wrapper:hover .map-card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.btn-maps-open {
  background: var(--accent-color);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 150, 136, 0.25);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-maps-open:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.contact-form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.8rem 1.1rem;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition-normal);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-light);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-submit-btn {
  width: 100%;
  padding: 0.9rem 0;
  border-radius: 50px;
  background: var(--accent-color);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition-normal);
}

.form-submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* --- FOOTER --- */
.footer {
  background: #f0f7ff;          /* Premium soft light blue-grey corporate background */
  border-top: 1px solid #bae6fd;  /* Light blue border */
  padding: 4rem 0 2rem;
  
  /* Legibility variables inside light-themed footer */
  --text-primary: #0f172a;       /* Deep slate navy for headings */
  --text-secondary: #475569;     /* Sleek charcoal for descriptions */
  --text-muted: #64748b;
  --border-light: #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  height: 38px;
  width: 38px;
  border-radius: 50%;
}

.footer-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.social-icon-btn:hover {
  border-color: var(--accent-color);
  color: #ffffff;
  background: var(--accent-color);
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
  font-weight: 700;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-color);
  margin-top: 0.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* --- INTERACTIVE COLOR OPTION SWATCHES --- */
.modal-colors-section {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.colors-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.colors-selected {
  font-weight: 700;
  color: #ffffff;
  background: var(--accent-color);
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 2px 5px rgba(2, 132, 199, 0.2);
  display: inline-flex;
  align-items: center;
}

.colors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-option-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.color-option-btn:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.04);
}

.color-option-btn.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transform: translateY(-1px);
}

.color-option-swatch-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 1px;
  flex-shrink: 0;
  transition: all var(--transition-fast) ease;
}

.color-option-btn:hover .color-option-swatch-img {
  border-color: var(--accent-color);
}

.color-option-btn.active .color-option-swatch-img {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

/* --- PREMIUM PRODUCT SPECIFICATIONS DIALOG (MODAL) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  transform: scale(0.95);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  position: relative;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition-normal);
  z-index: 10;
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  padding: 2.5rem;
}

.modal-media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-main-img-box {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.thumb-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
  background: #ffffff;
}

.thumb-img.active, .thumb-img:hover {
  border-color: var(--accent-color);
}

.modal-info {
  display: flex;
  flex-direction: column;
}

.modal-brand {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.modal-model {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.modal-desc-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.modal-features-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.modal-features-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  padding-left: 1.25rem;
  position: relative;
}

.modal-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.modal-specs-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.35rem;
  color: var(--text-primary);
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.modal-specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.modal-specs-table td {
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.modal-specs-table td.label {
  font-weight: 600;
  color: var(--text-secondary);
  width: 40%;
}

.modal-specs-table td.value {
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-whatsapp-inquiry {
  background: #25d366;
  color: #ffffff;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  border-radius: 8px;
  transition: var(--transition-normal);
}

.btn-whatsapp-inquiry:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1280px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

@media (max-width: 1024px) {
  html { font-size: 15px; }
  .hero-grid { gap: 2rem; }
  .hero-content h1 { font-size: 2.8rem; }
  .about-grid, .contact-grid { gap: 3rem; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr; gap: 2.5rem; }
  .brochures-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

@media (max-width: 768px) {
  .header-socials a {
    display: none;
  }
  body.nav-menu-open {
    overflow: hidden !important;
    height: 100vh !important;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transition: var(--transition-normal);
    z-index: 999;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  .nav-menu > li {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: background-color var(--transition-normal), padding var(--transition-normal);
  }

  .nav-menu > li.has-dropdown.open {
    background: var(--bg-secondary);
    padding: 0 1rem;
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 8px;
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-menu > li.has-dropdown.open > .nav-link {
    border-bottom-color: transparent;
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-info-pills { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-highlights { order: 2; }
  .about-intro { order: 1; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(2), .gallery-item:nth-child(3), .gallery-item:nth-child(4), .gallery-item:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .modal-content-grid { grid-template-columns: 1fr; padding: 1.75rem; gap: 1.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .compare-table { min-width: 650px; }
}@media (max-width: 576px) {
  .modal-overlay { padding: 0.5rem; }
  .modal-dialog { max-height: 92vh; }
  .compare-modal { padding: 0.5rem; }
  .compare-modal-content { max-height: 92vh; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .hero-content h1 { font-size: 2.1rem; line-height: 1.25; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 0.85rem; }
  .btn { width: 100%; }
  .about-highlights { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .brochures-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-info { padding: 0.85rem 0.85rem 1rem; }
  .card-action-bar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .add-to-inquiry-btn { width: 100%; justify-content: center; }
  .compare-checkbox-label { width: 100%; justify-content: center; }
  .modal-content-grid { padding: 1rem; gap: 1.25rem; }
  .compare-tray {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    left: 0;
    transform: none;
    padding: 1rem;
    border-left: none;
    border-right: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .compare-tray-items { justify-content: center; }
  .compare-tray > div:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .compare-tray-btn { flex: 1; text-align: center; }
}

@media (max-width: 400px) {
  .logo-title { font-size: 1.45rem; }
  .logo-subtitle { font-size: 0.7rem; }
  .logo-img { height: 52px; width: 52px; }
  .nav-container { height: 70px; }
  .header { height: 70px; }
  .nav-menu { top: 70px; height: calc(100vh - 70px); }
  .catalog-header { margin-top: 70px; }
  .page-header { margin-top: 70px; }
  .gallery-header { margin-top: 70px; }
  .contact-header { margin-top: 70px; }
  .segment-navbar { top: 70px; }
}

/* --- CARD COLOR PREVIEW SYSTEM --- */
.card-colors-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.colors-preview-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.card-colors-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.card-color-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.05);
  display: inline-block;
  cursor: help;
  transition: transform 0.15s ease;
}

.card-color-dot:hover {
  transform: scale(1.2);
}

/* --- TAG-GROUP HEADING FOR PRODUCTS CATALOG GRID --- */
.grid-group-title {
  grid-column: 1 / -1;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.products-grid > .grid-group-title:first-of-type {
  margin-top: 0.5rem;
}

/* --- INFINITE SCROLL / LAZY RENDERING LOADER --- */
.scroll-sentinel {
  grid-column: 1 / -1;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.03em;
}

.scroll-sentinel.loading {
  display: flex;
}

.infinite-loader {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.infinite-loader i {
  color: var(--accent-color);
  font-size: 1.2rem;
}


/* ============================================================================
   ===== DARK THEME AND INTERACTIVE PREMIUM FEATURES =====
   ============================================================================ */

body.dark-theme {
  --bg-primary: #0f172a;         /* Deep Slate Black */
  --bg-secondary: #1e293b;       /* Slate 800 */
  --bg-tertiary: #334155;        /* Slate 700 */
  
  --text-primary: #f8fafc;       /* Slate 50 */
  --text-secondary: #cbd5e1;     /* Slate 300 */
  --text-muted: #94a3b8;         /* Slate 400 */
  
  --border-light: #334155;       /* Dark slate borders */
  --border-dark: #475569;
  
  --glass-bg: rgba(15, 23, 42, 0.95);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Adjust header, megamenu and card overlays for dark theme */
body.dark-theme .header {
  background: rgba(15, 23, 42, 0.9);
}
body.dark-theme .header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
body.dark-theme .mega-menu {
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
body.dark-theme .mega-highlight-card {
  background: #0f172a;
  border: 1px solid #334155;
}
body.dark-theme .brochure-card {
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
body.dark-theme .product-card {
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
body.dark-theme .modal-content {
  background: #1e293b;
  color: var(--text-primary);
  border: 1px solid #334155;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
body.dark-theme .product-modal-spec-table th {
  background: #0f172a;
}
body.dark-theme .product-modal-spec-table td {
  border-bottom: 1px solid #334155;
}
body.dark-theme .product-modal-spec-table tr:last-child td {
  border-bottom: none;
}
body.dark-theme .btn-secondary {
  background: #334155;
  border: 1px solid #475569;
  color: #cbd5e1;
}
body.dark-theme .btn-secondary:hover {
  background: #475569;
  color: #f8fafc;
}
body.dark-theme .brand-logo-plate {
  background: #1e293b;
  border: 1px solid #334155;
}
body.dark-theme .brand-logo-plate:hover {
  background: #334155;
}
body.dark-theme .brand-header-block {
  border-bottom: 2px solid #334155;
}
body.dark-theme .brand-divider-title {
  background: #0f172a;
}
body.dark-theme .category-indicator-tag {
  background: #0f172a;
  border: 1px solid #334155;
}
body.dark-theme .search-wrapper {
  background: #1e293b;
  border: 1px solid #334155;
}
body.dark-theme .search-wrapper input {
  color: var(--text-primary);
}
body.dark-theme .segment-navbar {
  background: var(--bg-primary);
  border-bottom-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
body.dark-theme .nav-menu {
  background: var(--bg-primary);
  border-top-color: var(--border-light);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
body.dark-theme .product-img-wrapper,
body.dark-theme .modal-main-img-box,
body.dark-theme .thumb-img,
body.dark-theme .color-option-swatch-img,
body.dark-theme .hero-img-container {
  background: var(--bg-secondary);
}
body.dark-theme .contact-icon-box,
body.dark-theme .social-icon-btn {
  background: var(--bg-secondary);
  border-color: var(--border-light);
  color: var(--text-primary);
}
body.dark-theme .form-control {
  background: var(--bg-primary);
  border-color: var(--border-light);
  color: var(--text-primary);
}
body.dark-theme .form-control:focus {
  background: var(--bg-secondary);
  border-color: var(--accent-color);
}
body.dark-theme .contact-info-card, 
body.dark-theme .contact-form-container {
  background: #1e293b;
  border: 1px solid #334155;
}
body.dark-theme .form-group input, 
body.dark-theme .form-group textarea {
  background: #0f172a;
  border: 1px solid #334155;
  color: var(--text-primary);
}
body.dark-theme .form-group input:focus, 
body.dark-theme .form-group textarea:focus {
  border-color: var(--accent-color);
}
body.dark-theme .about-hero, 
body.dark-theme .values-section {
  background: #1e293b;
}
body.dark-theme .value-card {
  background: #0f172a;
  border: 1px solid #334155;
}
body.dark-theme .masonry-card {
  background: #1e293b;
  border: 1px solid #334155;
}

#theme-toggle i {
  transition: transform 0.4s ease;
}
#theme-toggle:hover i {
  transform: rotate(30deg);
}

/* --- WHATSAPP INQUIRY CART --- */
.floating-inquiry-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1001;
  background: var(--accent-color);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
  cursor: pointer;
  border: none;
  outline: none;
}
.floating-inquiry-btn:hover {
  transform: scale(1.1);
  background: var(--accent-hover);
}
.floating-inquiry-btn i {
  font-size: 1.45rem;
}
.floating-inquiry-btn .cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444; /* Alert Red */
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: var(--transition-normal);
}

.inquiry-drawer {
  position: fixed;
  top: 0;
  right: -420px; /* Hidden offscreen by default */
  width: 420px;
  height: 100vh;
  z-index: 1010;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-light);
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 480px) {
  .inquiry-drawer {
    width: 100%;
    right: -100%;
  }
}
.inquiry-drawer.open {
  right: 0;
}
.inquiry-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
}
.inquiry-drawer-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.close-drawer-btn {
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}
.close-drawer-btn:hover {
  background: var(--border-light);
  color: var(--text-primary);
}
.inquiry-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-light);
  align-items: center;
}
.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 4px;
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.remove-item-btn {
  color: #ef4444;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-fast);
}
.remove-item-btn:hover {
  background: rgba(239, 68, 68, 0.08);
}
.inquiry-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
}
.whatsapp-send-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  background: #25d366; /* WhatsApp Green */
  color: #ffffff;
  font-weight: 700;
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}
.whatsapp-send-btn:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.whatsapp-send-btn i {
  font-size: 1.35rem;
}
.empty-cart-view {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.empty-cart-view i {
  font-size: 3rem;
  color: var(--border-dark);
}
.inquiry-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1009;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.inquiry-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- SIDE-BY-SIDE COMPARISON --- */
.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: 0.65rem;
}
.add-to-inquiry-btn {
  flex: 1;
  background: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}
.add-to-inquiry-btn:hover {
  background: var(--accent-color);
  color: #ffffff;
}
.add-to-inquiry-btn.in-cart {
  background: #10b981; /* Emerald Green */
  border-color: #10b981;
  color: #ffffff;
}
.compare-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}
.compare-checkbox-label:hover {
  background: var(--bg-secondary);
  border-color: var(--border-dark);
}
.compare-checkbox-label input {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.compare-tray {
  position: fixed;
  bottom: -120px; /* Hidden offscreen initially */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  background: var(--bg-primary);
  border: 1px solid var(--border-dark);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -5px 25px rgba(15, 23, 42, 0.1);
  width: 90%;
  max-width: 600px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.compare-tray.open {
  bottom: 0;
}
.compare-tray-items {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.compare-tray-thumb {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 2px;
  position: relative;
}
.compare-tray-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.compare-tray-btn {
  background: var(--accent-color);
  color: #ffffff;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-size: 0.88rem;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.2);
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
}
.compare-tray-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.compare-tray-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.compare-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1020;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  padding: 1.5rem;
}
.compare-modal.open {
  opacity: 1;
  visibility: visible;
}
.compare-modal-content {
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 850px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: compareModalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes compareModalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.compare-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
}
.compare-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Premium Comparison Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.compare-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-secondary);
  width: 25%;
}
.compare-table td {
  color: var(--text-secondary);
  width: 25%;
}
.compare-table tr:hover td {
  background: var(--bg-secondary);
}
.compare-table-img-cell {
  text-align: center;
}
.compare-table-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: var(--bg-secondary);
  border-radius: 6px;
  padding: 4px;
  margin: 0 auto 0.75rem;
}
.compare-table-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.compare-table-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

/* Clear All / Reset buttons for Cart & Compare */
.clear-all-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-normal);
  cursor: pointer;
}
.clear-all-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}
.compare-tray-clear-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  transition: var(--transition-normal);
  cursor: pointer;
}
.compare-tray-clear-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
  transform: translateY(-1px);
}

/* --- COMPARE DIFFERENCE HIGHLIGHTING & SHARE BUTTONS --- */
.compare-highlight-bar {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}
.compare-highlight-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}
.compare-highlight-label:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.compare-highlight-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-color);
}
.compare-table tr.highlight-diff td {
  background: rgba(245, 158, 11, 0.08) !important;
}
body.dark-theme .compare-table tr.highlight-diff td {
  background: rgba(245, 158, 11, 0.12) !important;
}
.compare-table tr.highlight-diff th {
  border-left: 4px solid #f59e0b !important;
  padding-left: calc(1.25rem - 4px) !important;
}
.modal-share-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* --- PREMIUM TOAST NOTIFICATION SYSTEM --- */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

body.dark-theme .toast-notification {
  background: #1e293b;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.08);
}

.toast-icon {
  color: #00b4db;
}
