/* Lakshmi Meditech – Nihon Kohden Neurology | Clean & professional */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #005a9c;
  --primary-dark: #003d6b;
  --primary-light: #0077b8;
  --accent: #00a651;
  --accent-light: #34c76b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow: 0 2px 16px rgba(0,90,156,0.06);
  --shadow-md: 0 8px 32px rgba(0,90,156,0.08);
  --shadow-lg: 0 16px 48px rgba(0,90,156,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----- Responsive images: no overflow, no overlap ----- */
img {
  max-width: 100%;
  display: block;
  vertical-align: middle;
}
/* Content/standalone images scale with height */
.content-block img,
.section img:not(.card-img-wrap img):not(.hero-image img):not(.sidebar-product-item img):not(.dropdown-img) {
  height: auto;
}
/* Constrained image wrappers: contain and don't overlap */
.card-img-wrap,
.product-hero .hero-image,
.hero-slider,
.page-title-section.has-bg,
.sidebar-product-item-inner {
  max-width: 100%;
  overflow: hidden;
}
.product-hero {
  overflow: hidden;
  min-width: 0;
}
.product-hero .hero-image {
  max-width: 100%;
  min-width: 0;
}
.product-card .card-img-wrap {
  min-width: 0;
}
.sidebar-product-item img {
  max-width: 72px;
  width: 72px;
  height: 54px;
  min-width: 72px;
  min-height: 54px;
  object-fit: cover;
}
.nav-main .dropdown .dropdown-img {
  max-width: 56px;
  max-height: 42px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Header ----- */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,90,156,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.4s var(--ease-out-expo);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 0;
  gap: 16px 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.logo-wrap:hover { text-decoration: none !important; }

.logo-wrap img {
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease-spring);
}

.logo-wrap:hover img {
  transform: scale(1.03);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.logo-text .tagline {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Navigation */
.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-main ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-main > ul > li {
  position: relative;
}

.nav-main > ul > li > a {
  display: block;
  padding: 12px 18px;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

.nav-main > ul > li > a:hover {
  background: var(--gray-100);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-main .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo), visibility 0.25s;
  z-index: 50;
  border: 1px solid var(--gray-200);
  margin-top: 4px;
}

.nav-main > ul > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Submenu: one item per row, no overlapping */
.nav-main .dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  border-bottom: 1px solid var(--gray-200);
}

.nav-main .dropdown li:last-child {
  border-bottom: none;
}

.nav-main .dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--gray-800);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

.nav-main .dropdown a:hover {
  background: var(--gray-100);
  color: var(--primary);
  text-decoration: none;
}

.nav-main .dropdown .dropdown-img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--gray-100);
  display: block;
}

.nav-main .dropdown .dropdown-text {
  flex: 1;
  min-width: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-800);
}

@media (max-width: 992px) {
  .menu-toggle { display: block; }
  .nav-main > ul { display: none; }
  .nav-main.active > ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    border-radius: 0 0 16px 16px;
  }
  .nav-main .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 8px 0 8px 16px; margin-top: 4px; border-left: 3px solid var(--primary-light); }
  .nav-main > ul > li:hover .dropdown { display: block; }
  .nav-main .dropdown .dropdown-img { width: 44px; height: 34px; }
}

/* ----- Hero Slider (advanced) ----- */
.hero-slider {
  position: relative;
  width: 100%;
  max-height: 620px;
  overflow: hidden;
}

.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 0.9s var(--ease-out-expo);
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 120px;
  position: relative;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(0,61,107,0.88) 0%, rgba(0,90,156,0.82) 45%, rgba(0,61,107,0.9) 100%);
  z-index: 0;
  transition: opacity 0.6s;
}

.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 12s linear;
}

.hero-slider:hover .hero-slide.active .slide-bg {
  transform: scale(1.08);
}

.hero-slide:nth-child(1) .slide-bg { background-image: url('../assets/images/hero1.jpg'); background-color: var(--primary-dark); }
.hero-slide:nth-child(2) .slide-bg { background-image: url('../assets/images/hero2.jpg'); background-color: var(--primary-dark); }
.hero-slide:nth-child(3) .slide-bg { background-image: url('../assets/images/hero3.jpg'); background-color: var(--primary-dark); }

.hero-slide .slide-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s 0.2s var(--ease-out-expo), transform 0.8s 0.2s var(--ease-out-expo);
}

.hero-slide.active .slide-inner {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.hero-slide .slide-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.hero-slide p {
  font-size: 1.15rem;
  opacity: 0.96;
  line-height: 1.75;
  text-shadow: 0 2px 16px rgba(0,0,0,0.2);
  margin-bottom: 28px;
}

.btn-hero {
  display: inline-block;
  padding: 14px 32px;
  background: var(--white);
  color: var(--primary) !important;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-hero:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  color: var(--primary-dark) !important;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slider progress bar */
.hero-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255,255,255,0.25);
  width: 100%;
  z-index: 2;
  overflow: hidden;
}

.hero-slider-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: left;
  transition: transform 0.1s linear;
}

.hero-slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero-slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
}

.hero-slider-dots button.active {
  background: var(--white);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

.hero-slider-dots button:hover:not(.active) {
  background: rgba(255,255,255,0.4);
  transform: scale(1.1);
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.35s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-arrow:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-arrow.prev { left: 24px; }
.hero-slider-arrow.next { right: 24px; }

@media (max-width: 768px) {
  .hero-slide { height: 520px; padding: 56px 20px 88px; }
  .hero-slider-arrow { width: 46px; height: 46px; }
  .hero-slider-arrow.prev { left: 14px; }
  .hero-slider-arrow.next { right: 14px; }
}

/* ----- Featured strip (MMSE-style: 3 cards Know More) ----- */
.featured-strip {
  padding: 48px 24px 56px;
  background: var(--white);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.featured-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s;
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: inherit;
}

.featured-card-img {
  aspect-ratio: 600/380;
  overflow: hidden;
  background: var(--gray-100);
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

.featured-card:hover .featured-card-img img {
  transform: scale(1.05);
}

.featured-card-body {
  padding: 24px 22px 28px;
}

.featured-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.featured-card-body p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 14px;
}

.featured-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.featured-card:hover .featured-link {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ----- About home (MMSE-style) ----- */
.about-home {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 64px 24px 72px;
}

.about-home-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-home-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  border: none;
  padding: 0;
}

.about-home-title {
  font-size: 1.25rem;
  color: var(--gray-800);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-home-content p {
  margin-bottom: 16px;
  color: var(--gray-700);
  line-height: 1.7;
}

.about-home-content .btn {
  margin-top: 8px;
}

/* ----- Section title center ----- */
.section-title-center {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  border: none;
  padding: 0;
}

/* ----- Products home ----- */
.products-home .product-links {
  margin-top: 24px;
}

/* ----- Why pillars (MMSE-style: 4 items) ----- */
.why-intro {
  margin-bottom: 8px !important;
}

.why-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .why-pillars { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 900px) {
  .why-pillars { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

.why-pillar {
  background: var(--white);
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.why-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-pillar-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 16px;
}

.why-pillar h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.why-pillar p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ----- Stats row (MMSE-style: 30 Years, 50 Products, 100 Clients) ----- */
.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.stat-box {
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.stat-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ----- Footer contact & Get in Touch ----- */
.footer-contact {
  max-width: 320px;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.95;
}

.footer-contact a {
  color: rgba(255,255,255,0.95);
}

.btn-footer {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--white);
  color: var(--primary) !important;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  text-decoration: none;
  color: var(--primary-dark) !important;
}

/* ----- Curved section shapes ----- */
.section-wrap {
  position: relative;
}

.section-wrap .curve-top,
.section-wrap .curve-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 0;
}

.section-wrap .curve-top {
  top: -1px;
  color: #f8fafc;
}

.section-wrap .curve-bottom {
  bottom: -1px;
  color: #ffffff;
}

.section-alt.section-wrap .curve-bottom {
  color: #f8fafc;
}

.section-wrap .curve-top svg,
.section-wrap .curve-bottom svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ----- Nihon Kohden badge ----- */
.nihon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.nihon-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nihon-badge-hero {
  margin-bottom: 24px;
  padding: 12px 24px;
  font-size: 0.9rem;
}

/* ----- Page title ----- */
.page-title-section {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.page-title-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.15;
}

.page-title-section h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  color: var(--gray-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-title-section p {
  font-size: 1.08rem;
  color: var(--gray-600);
  margin-top: 10px;
}

/* Page title with background image (product pages) */
.page-title-section.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 72px 24px 64px;
  border-bottom: none;
}

.page-title-section.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,61,107,0.88) 0%, rgba(0,90,156,0.82) 50%, rgba(0,61,107,0.85) 100%);
  z-index: 0;
}

.page-title-section.has-bg .container {
  position: relative;
  z-index: 1;
}

.page-title-section.has-bg h1,
.page-title-section.has-bg p {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.page-title-section.has-bg p {
  opacity: 0.95;
}

/* Breadcrumb (MMSE-style) */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--gray-500);
}
.page-title-section.has-bg .breadcrumb {
  color: rgba(255,255,255,0.85);
}
.page-title-section.has-bg .breadcrumb a {
  color: rgba(255,255,255,0.95);
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span { opacity: 0.7; margin: 0 6px; }

/* ----- Sections ----- */
.section {
  padding: 88px 24px;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: var(--gray-50);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--gray-900);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section h2.text-center {
  display: block;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.section-lead.text-center {
  margin-left: auto;
  margin-right: auto;
}

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ----- Product cards ----- */
.product-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), border-color 0.4s;
  box-shadow: var(--shadow);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
  border-color: var(--primary-light);
}

.product-card .card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}

.product-card .card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,90,156,0.08) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover .card-img-wrap::after {
  opacity: 1;
}

.product-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out-expo);
  background: var(--gray-100);
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.product-card .card-body {
  padding: 32px 28px 36px;
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gray-900);
  margin-bottom: 12px;
  font-weight: 700;
}

.product-card p {
  color: var(--gray-600);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.product-card a.btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white) !important;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(0,90,156,0.25);
}

.product-card a.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,90,156,0.35);
}

/* ----- Product grid (responsive card grid – no list) ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 0;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px; }
}

.product-grid .product-card {
  text-align: left;
}

.product-grid .product-card .card-body {
  padding: 24px 22px 28px;
}

.product-grid .product-card .card-body .features {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.product-grid .product-card .card-body .features li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.product-grid .product-card .card-body .features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.product-grid .product-card h3 a {
  color: var(--gray-900);
  text-decoration: none;
  font-weight: 700;
}

.product-grid .product-card h3 a:hover {
  color: var(--primary);
}

/* Image fallback so images always display (no min-height on constrained boxes to avoid overlap) */
.card-img-wrap img,
.item-thumb img {
  background: var(--gray-100);
}
.product-hero .hero-image img {
  background: var(--gray-100);
}

/* Ensure sidebar images keep layout and display */
.sidebar-product-item img {
  min-height: 54px;
  min-width: 72px;
  background: var(--gray-100);
}

.card-img-wrap img[src=""],
.card-img-wrap img:not([src]) {
  opacity: 0;
}

.card-img-wrap img.img-fallback {
  object-fit: contain;
  padding: 24px;
}

/* ----- Product detail hero ----- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--gray-200);
}

.product-hero .hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.5s, transform 0.5s;
  position: relative;
}

.product-hero .hero-image:hover {
  box-shadow: 0 28px 60px rgba(0,90,156,0.15);
}

/* Zoom-on-hover (Amazon/Flipkart style) for product hero image */
.product-hero .hero-image.product-image-zoom {
  cursor: crosshair;
  transform: none;
}
.product-hero .hero-image.product-image-zoom:hover {
  transform: none;
}
.product-hero .hero-image.product-image-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.product-hero .hero-image.product-image-zoom.zoomed img {
  transform: scale(2);
}

.product-hero .hero-image:not(.product-image-zoom):hover {
  transform: scale(1.02);
}

.product-hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero .hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  color: var(--gray-900);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.product-hero .hero-text .lead {
  font-size: 1.12rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-hero .hero-image { order: -1; max-height: 360px; aspect-ratio: 16/10; }
}

/* ----- Product page with right sidebar (remaining products) ----- */
.product-page-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 40px 0 72px;
}

.product-page-main {
  min-width: 0;
}

.product-sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.product-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-product-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-product-list li {
  margin-bottom: 12px;
}

.sidebar-product-list li:last-child {
  margin-bottom: 0;
}

.sidebar-product-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--gray-800);
  transition: background 0.2s, color 0.2s;
  border-radius: 8px;
  margin: 0 -8px;
  padding: 10px 8px;
}

.sidebar-product-item:last-child { border-bottom: none; }

.sidebar-product-item:hover {
  background: var(--gray-50);
  color: var(--primary);
  text-decoration: none;
}

.sidebar-product-item-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-product-item img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--gray-100);
}

.sidebar-product-item .sidebar-product-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .product-page-wrap {
    grid-template-columns: 1fr;
  }
  .product-sidebar {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  .product-sidebar h3 {
    grid-column: 1 / -1;
  }
  .sidebar-product-list {
    display: contents;
  }
  .sidebar-product-list li {
    margin-bottom: 0;
  }
}

.product-content { padding: 56px 0 72px; }

.product-page-wrap .product-content { padding: 0 0 24px; }

.product-content .content-block { margin-bottom: 44px; }

.product-content .content-block h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--gray-900);
  margin-bottom: 18px;
  font-weight: 700;
}

.product-content .content-block p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--gray-700);
}

.feature-list { list-style: none; margin: 0; padding: 0; }

.feature-list li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--gray-100);
  line-height: 1.65;
  color: var(--gray-700);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

/* Feature grid (product detail – clean grid layout) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.feature-grid li {
  padding: 16px 18px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.5;
  position: relative;
  padding-left: 44px;
}

.feature-grid li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.product-cta {
  margin-top: 48px;
  padding: 36px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--gray-200);
}

.product-cta .btn { padding: 16px 32px; font-weight: 600; border-radius: 12px; }
.product-cta .btn.outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.product-cta .btn.outline:hover { background: var(--primary); color: var(--white); }

/* ----- Why Choose Us ----- */
.why-section {
  padding: 72px 24px 80px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s, border-color 0.3s;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.why-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* ----- About page: image left, content right (MMSE style) ----- */
.about-page-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.about-page-image {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.about-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}

.about-page-content h2 {
  margin-bottom: 20px;
}

.about-page-content p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--gray-700);
}

@media (max-width: 900px) {
  .about-page-inner {
    grid-template-columns: 1fr;
  }
  .about-page-image {
    position: static;
    max-height: 320px;
    aspect-ratio: 16/10;
  }
}

/* ----- About / CTA block ----- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .about-block { grid-template-columns: 1fr; }
}

.about-cta-section .about-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.about-cta-section .about-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}

.about-block h2,
.about-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.35rem;
  border: none;
  padding: 0;
}

.about-card p {
  margin-bottom: 20px;
  color: var(--gray-700);
  line-height: 1.65;
}

.about-block .btn,
.about-card .btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-block .btn:hover,
.about-card .btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent) !important;
}

.btn-accent:hover {
  background: #008f45 !important;
}

/* ----- Stats ----- */
.stats-section {
  padding: 64px 24px 72px;
}

.stats-section .section-lead {
  margin-bottom: 36px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
  margin-top: 0;
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.stat-card,
.stats > div {
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.stat-card:hover,
.stats > div:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-card .num,
.stats .num {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}

.stat-card .label,
.stats .label {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ----- CTA strip ----- */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 48px 24px;
  margin-top: 0;
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.cta-strip-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-strip-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.btn-light {
  background: var(--white) !important;
  color: var(--primary) !important;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: var(--primary-dark) !important;
}

/* ----- Footer ----- */
.site-footer {
  background: linear-gradient(180deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: var(--white);
  padding: 56px 24px 28px;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer a {
  color: rgba(255,255,255,0.88);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 8px; }

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ----- Forms ----- */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gray-800);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,90,156,0.12);
}

.form-group textarea { min-height: 128px; resize: vertical; }

button.btn,
input[type="submit"].btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

button.btn:hover,
input[type="submit"].btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,90,156,0.3);
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }

.category-list { list-style: none; }

.category-list li {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.category-list a {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--primary);
}
