/* Lakshmi Meditech — professional UI | responsive | SEO-friendly structure */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --primary: #0045a5;
  --primary-dark: #003380;
  --primary-light: #1d6adb;
  --accent: #00a8c5;
  --accent-light: #5ee7f7;
  --brand-red: #d92d33;
  --body-bg: #f0f4f8;
  --surface: #ffffff;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow: 0 2px 16px rgba(0, 50, 120, 0.06);
  --shadow-md: 0 10px 40px rgba(0, 50, 120, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 50, 120, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', 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;
}

/* Touch / mobile: reduce double-tap zoom delay on controls */
button,
.menu-toggle,
.nav-submenu-toggle,
.hero-slider-arrow,
.hero-slider-dots button,
.btn {
  touch-action: manipulation;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.65;
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
  outline: 2px solid var(--accent-light);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

.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: 1000;
  overflow: visible;
  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: 14px 0;
  gap: 12px 20px;
  row-gap: 14px;
  position: relative;
  overflow: visible;
}

.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-wrap {
  min-width: 0;
}

.logo-wrap.logo-wrap--raster .logo-mark {
  height: 44px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .logo-wrap.logo-wrap--raster .logo-mark {
    height: 50px;
    max-width: 80px;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-red);
  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;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.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 {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-width: min(100vw - 32px, 380px);
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.99);
  transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo), visibility 0.25s;
  z-index: 3000;
  border: 1px solid var(--gray-200);
  margin-top: 6px;
}

.nav-main .dropdown ul,
.nav-main .dropdown {
  display: block;
}

.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: normal;
  line-height: 1.35;
}

.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;
  display: block;
}

/* Desktop submenu: standard vertical dropdown list */
@media (min-width: 993px) {
  .nav-main .dropdown {
    width: 340px;
    max-width: 340px;
    padding: 8px 0;
  }
  .nav-main .dropdown li {
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-main .dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 60px;
    padding: 10px 16px;
  }
  .nav-main .dropdown .dropdown-img {
    width: 56px;
    height: 42px;
  }
  .nav-main .dropdown .dropdown-text {
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-800);
}

.nav-mobile-backdrop {
  display: none;
}

.nav-mobile-head,
.nav-mobile-close,
.nav-mobile-title,
.nav-mobile-brand,
.nav-mobile-brand-logo,
.nav-mobile-brand-text {
  display: none;
}

.nav-item--sub {
  position: relative;
}
.nav-submenu-toggle {
  display: none;
  margin-left: 4px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.nav-submenu-toggle:hover {
  background: var(--gray-200);
}

@media (max-width: 992px) {
  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
  }
  .logo-wrap:not(.logo-wrap--raster) .logo-mark {
    height: 48px;
  }
  .logo-text .brand {
    font-size: 1.12rem;
  }
  .logo-text .tagline {
    font-size: 0.7rem;
    line-height: 1.25;
  }
  .menu-toggle { display: block; }
  .menu-toggle {
    position: relative;
    z-index: 2700;
  }
  .nihon-badge {
    display: none;
  }
  .nav-main {
    position: relative;
    z-index: 2500;
  }
  .nav-main > ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    width: min(84vw, 340px);
    height: 100dvh;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    padding: 14px 16px 20px;
    border-radius: 0 16px 16px 0;
    gap: 4px;
    z-index: 2600;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.28s var(--ease-out-expo), opacity 0.22s ease, visibility 0s linear 0.28s;
  }
  .nav-main.active > ul {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition: transform 0.28s var(--ease-out-expo), opacity 0.22s ease;
  }
  .nav-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.5);
    z-index: 2550;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .nav-main.active .nav-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }
  .nav-main > ul > li {
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
    margin: -2px 0 8px;
    padding: 0 0 10px;
  }
  .nav-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .nav-mobile-brand-logo {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--gray-100);
    padding: 2px;
  }
  .nav-mobile-brand-text {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--gray-900);
    font-size: 0.98rem;
    line-height: 1.2;
  }
  .nav-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-800);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }
  .nav-main > ul > li:last-child {
    border-bottom: none;
  }
  .nav-item--sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: none !important;
  }
  .nav-item--sub > a[href="products.php"] {
    flex: 1;
    min-width: 0;
  }
  .nav-submenu-toggle {
    display: inline-flex;
    transition: transform 0.2s ease, background 0.2s ease;
  }
  .nav-item--sub.is-open > .nav-submenu-toggle {
    transform: rotate(180deg);
  }
  .nav-item--sub .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: block;
    width: 100%;
    flex-basis: 100%;
    margin: 0;
    padding: 0 0 0 12px;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--gray-50);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, margin-top 0.2s ease, padding-top 0.2s ease, padding-bottom 0.2s ease;
  }
  .nav-main > ul > li:hover .dropdown {
    max-height: 0;
  }
  .nav-main .nav-item--sub.is-open .dropdown {
    max-height: 60vh;
    margin-top: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow-y: auto;
  }
  .nav-main .dropdown .dropdown-img { width: 44px; height: 34px; }
  .nihon-badge {
    font-size: 0.65rem;
    padding: 6px 10px;
    max-width: 160px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
}

/* ----- Hero Slider (advanced) ----- */
.hero-slider {
  position: relative;
  width: 100%;
  max-height: 620px;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
}

/* One slide (e.g. DB empty fallback): hide chrome */
.hero-slider--single .hero-slider-arrow,
.hero-slider--single .hero-slider-dots,
.hero-slider--single .hero-slider-progress {
  display: none !important;
}

.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;
}

/* slide-bg = image (z:0); ::after = dark overlay (z:1) so text stays readable on any photo */
.hero-slide .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 12s linear;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.82) 100%
  );
  transition: opacity 0.6s;
}

.hero-slider:hover .hero-slide.active .slide-bg {
  transform: scale(1.08);
}

.hero-slide .slide-bg {
  background-color: var(--primary-dark);
}

.hero-slide .slide-inner {
  position: relative;
  z-index: 2;
  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;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 4px 28px rgba(0, 0, 0, 0.55);
}

.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: 5;
  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(--body-bg);
  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(0, 0, 0, 0.35);
  border: 2px solid rgba(255,255,255,0.55);
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 5;
  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  ----- */
.featured-strip {
  padding: 48px 24px 56px;
  background: var(--body-bg);
}

.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(--surface);
  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  ----- */
.about-home {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  padding: 64px 24px 72px;
}

.about-home-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-home-inner {
    grid-template-columns: 1fr 1.1fr;
  }
}
.about-home-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.about-home-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.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  ----- */
.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(--body-bg);
  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  ----- */
.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(--body-bg);
  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(--body-bg);
  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;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.72rem;
  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__icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.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-section--gradient {
  background: linear-gradient(135deg, #0a2d5c 0%, #0045a5 42%, #006994 100%);
  border-bottom: none;
  padding: 48px 24px 52px;
}
.page-title-section--gradient::after {
  opacity: 0.35;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-light), var(--white), var(--accent));
}
.page-title-section--gradient h1 {
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 2px 24px rgba(0,0,0,0.2);
}
.page-title-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.92) !important;
  margin-top: 12px !important;
  line-height: 1.65;
  max-width: 52rem;
}
.breadcrumb--light {
  color: rgba(255,255,255,0.82);
  margin-bottom: 16px;
}
.breadcrumb--light a {
  color: rgba(255,255,255,0.95);
}
.breadcrumb-sep {
  opacity: 0.55;
  margin: 0 8px;
}

/* 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  */
.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(--surface);
  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(--body-bg);
  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(--body-bg);
  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 — stats strip + content ----- */
.about-stats-strip {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-200);
  padding: 40px 0 48px;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .about-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.about-stat-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s;
}

.about-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-stat-card--accent {
  border-color: rgba(217, 45, 51, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, rgba(217, 45, 51, 0.06) 100%);
}

.about-stat-card__num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-stat-card--accent .about-stat-card__num {
  color: var(--brand-red);
}

.about-stat-card__unit {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 10px;
}

.about-stat-card__label {
  display: block;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.section--about-main {
  padding-top: 56px;
  padding-bottom: 88px;
}

.about-page-list {
  margin: 0 0 1.25em 1.15em;
  padding: 0;
  color: var(--gray-700);
  line-height: 1.75;
}

.about-page-list li {
  margin-bottom: 0.65em;
}

.about-page-cta-wrap {
  margin-top: 28px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.about-page-content h2:not(:first-child) {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

/* ----- 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(--body-bg);
  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(--body-bg);
  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);
}

/* ----- Single product (dynamic / backend) ----- */
.product-detail-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
  }
}
.product-detail-intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}
.product-detail-intro p {
  margin-bottom: 1em;
}
.feature-block {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.feature-block h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  line-height: 1.5;
}
.feature-list li:last-child {
  border-bottom: none;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.product-section-2 {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--gray-200);
}
.product-section-2 h2 {
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.product-section-2 .sub-lead {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.65;
}
.ap-dealer-strip {
  background: linear-gradient(135deg, rgba(0, 69, 165, 0.08) 0%, rgba(0, 183, 206, 0.1) 100%);
  border-left: 4px solid var(--brand-red);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 28px;
  font-size: 0.98rem;
  color: var(--gray-800);
}

/* ----- Single product — MMSE-inspired layout ----- */
.product-mmse {
  background: var(--body-bg);
}

.product-mmse-breadcrumb-bar {
  position: relative;
  padding: 14px 0;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--gray-200);
}

.product-mmse-breadcrumb-bar--has-bg {
  background: linear-gradient(135deg, #0a2d5c 0%, #0045a5 50%, #0c4a6e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.product-mmse-breadcrumb-bar--has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(105deg, rgba(10, 45, 92, 0.92) 0%, rgba(0, 69, 165, 0.88) 42%, rgba(12, 74, 110, 0.9) 100%),
    var(--breadcrumb-bg-img);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.product-mmse-breadcrumb-bar .container {
  position: relative;
  z-index: 1;
}

.product-mmse-breadcrumb-bar--has-bg .product-mmse-breadcrumb a {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none;
}

.product-mmse-breadcrumb-bar--has-bg .product-mmse-breadcrumb a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.product-mmse-breadcrumb-bar--has-bg .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.55);
}

.product-mmse-breadcrumb-bar--has-bg .product-mmse-breadcrumb .breadcrumb-current {
  color: #ffffff;
}

.product-mmse-breadcrumb {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.product-mmse-breadcrumb-bar:not(.product-mmse-breadcrumb-bar--has-bg) .product-mmse-breadcrumb a {
  color: var(--primary);
}

.product-mmse-breadcrumb-bar:not(.product-mmse-breadcrumb-bar--has-bg) .breadcrumb-sep {
  color: var(--gray-400);
}

.product-mmse-breadcrumb .breadcrumb-current {
  font-weight: 600;
}

.product-mmse-breadcrumb-bar:not(.product-mmse-breadcrumb-bar--has-bg) .product-mmse-breadcrumb .breadcrumb-current {
  color: var(--gray-700);
}

.product-mmse-hero {
  background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%, #f0f7ff 100%);
  border-bottom: 1px solid var(--gray-200);
  padding: 36px 0 48px;
}

.product-mmse-hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .product-mmse-hero-inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
  }
}

.product-mmse-hero--solo .product-mmse-hero-inner {
  grid-template-columns: 1fr;
  max-width: 52rem;
}

.product-mmse-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-mmse-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.product-mmse-lead {
  font-size: 1.08rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 38rem;
  margin-bottom: 24px;
}

.product-mmse-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-mmse-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white) !important;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 69, 165, 0.28);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.btn-mmse-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 69, 165, 0.35);
  color: var(--white) !important;
}

.btn-mmse-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background: var(--surface);
  color: var(--primary) !important;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none !important;
  border: 2px solid var(--primary);
  font-size: 0.98rem;
  transition: background 0.2s, color 0.2s;
}

.btn-mmse-outline:hover {
  background: rgba(0, 69, 165, 0.06);
  color: var(--primary-dark) !important;
}

.btn-mmse-block {
  width: 100%;
  text-align: center;
}

.product-mmse-hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  aspect-ratio: 4/3;
}

.product-mmse-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-mmse-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.product-mmse-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.product-mmse-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  line-height: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-mmse-gallery-thumb:hover {
  border-color: var(--gray-300);
}

.product-mmse-gallery-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.product-mmse-gallery-thumb:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.product-mmse-gallery-thumb img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  display: block;
}

/* Hover zoom (Amazon/Flipkart-style) — pointer pans origin */
.product-image-zoom-lens {
  cursor: crosshair;
  -webkit-tap-highlight-color: transparent;
}

.product-image-zoom-lens img {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.product-image-zoom-lens.zoomed img {
  transform: scale(2);
}

.product-mmse-zoom-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
}

@media (hover: none) {
  .product-mmse-zoom-hint {
    display: none;
  }
}

.section--product-tight {
  padding-top: 48px;
  padding-bottom: 72px;
}

.product-mmse-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .product-mmse-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 48px;
  }
}

.product-mmse-main {
  min-width: 0;
}

.product-mmse-dealer {
  margin-bottom: 32px;
}

.product-mmse-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.product-mmse-h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.product-mmse-highlight-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.product-mmse-highlight-card--subtle {
  background: var(--gray-50);
  box-shadow: none;
}

.product-mmse-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-mmse-feature-list li {
  position: relative;
  padding: 12px 12px 12px 36px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  line-height: 1.55;
  font-size: 0.98rem;
}

.product-mmse-feature-list li:last-child {
  border-bottom: none;
}

.product-mmse-feature-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  box-shadow: 0 0 0 3px rgba(0, 183, 206, 0.2);
}

.product-mmse-prose {
  font-size: 1.02rem;
  color: var(--gray-700);
  line-height: 1.75;
}

.product-mmse-prose p {
  margin-bottom: 1em;
}

.product-mmse-prose ul {
  margin: 1em 0 1em 1.25em;
}

.product-mmse-aside {
  min-width: 0;
}

@media (min-width: 1024px) {
  .product-mmse-sticky {
    position: sticky;
    top: 96px;
  }
}

.product-mmse-cta-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 22px 26px;
  box-shadow: var(--shadow-md);
}

.product-mmse-cta-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.product-mmse-cta-card .btn-mmse-outline {
  margin-top: 10px;
}

.product-mmse-cta-note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--gray-500);
  line-height: 1.45;
  margin-bottom: 0;
}

.product-mmse-related {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}

.product-mmse-related-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.product-mmse-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.product-mmse-related-list li {
  border-bottom: 1px solid var(--gray-100);
}

.product-mmse-related-list li:last-child {
  border-bottom: none;
}

.product-mmse-related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  text-decoration: none !important;
  color: inherit;
  border-radius: 8px;
  transition: background 0.2s;
}

.product-mmse-related-link:hover {
  background: var(--gray-50);
}

.product-mmse-related-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.product-mmse-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-mmse-related-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.product-mmse-related-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gray-900);
  line-height: 1.3;
}

.product-mmse-related-cat {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.product-mmse-related-all {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none !important;
}

.product-mmse-related-all:hover {
  text-decoration: underline !important;
}

.product-mmse-section-2-wrap {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 48px 0 56px;
  margin-top: 8px;
}

.product-mmse-section-2 {
  max-width: 52rem;
}

.product-mmse-enquiry-wrap {
  padding-top: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.product-mmse-enquiry-lead {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.product-enquiry-box--mmse {
  max-width: none;
  padding: 32px 28px 36px;
}

.external-ref {
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--gray-500);
}
.external-ref a {
  color: var(--accent);
  font-weight: 500;
}

.enquiry-flash {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.98rem;
}
.enquiry-flash--ok {
  background: rgba(0, 183, 206, 0.12);
  border: 1px solid var(--accent);
  color: var(--gray-800);
}
.enquiry-flash--err {
  background: rgba(227, 30, 36, 0.08);
  border: 1px solid var(--brand-red);
  color: var(--gray-800);
}
.enquiry-flash ul {
  margin: 0;
  padding-left: 1.2em;
}
.product-enquiry-box {
  max-width: 560px;
  padding: 28px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.product-enquiry-box h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}
.product-enquiry-form .form-group {
  margin-bottom: 16px;
}

/* ----- Admin Panel Layout (lm-admin-*) ----- */
.lm-admin-shell {
  display: flex;
  min-height: 100vh;
  background: var(--body-bg);
}

.lm-admin-overlay {
  display: none;
}

.lm-admin-sidebar {
  width: 280px;
  background: linear-gradient(180deg, rgba(0, 69, 165, 0.12) 0%, rgba(0, 51, 153, 0.08) 100%);
  border-right: 1px solid var(--gray-200);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.lm-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.lm-admin-brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.lm-admin-brand--raster .lm-admin-brand-logo {
  width: 48px;
  height: 48px;
  max-width: 48px;
}

.lm-admin-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--brand-red);
  font-size: 1.05rem;
  line-height: 1.2;
}

.lm-admin-brand-sub {
  color: var(--gray-600);
  font-size: 0.82rem;
  margin-top: 4px;
}

.lm-admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lm-admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  color: var(--gray-800);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(226, 232, 240, 0.55);
  text-decoration: none;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s var(--ease-spring), border-color 0.15s var(--ease-spring);
}

.lm-admin-nav-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 90, 156, 0.35);
}

.lm-admin-nav-link--active {
  background: linear-gradient(135deg, rgba(0, 69, 165, 0.16) 0%, rgba(0, 51, 153, 0.12) 100%);
  border-color: rgba(0, 69, 165, 0.35);
  color: var(--primary-dark);
}

.lm-admin-nav-count {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.92rem;
}

.lm-admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(227, 30, 36, 0.12);
  border: 1px solid rgba(227, 30, 36, 0.35);
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 800;
}

.lm-admin-sidebar-footer {
  margin-top: 18px;
  border-top: 1px solid var(--gray-200);
  padding-top: 14px;
}

.lm-admin-logout {
  display: inline-block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
  font-weight: 700;
  text-decoration: none;
}

.lm-admin-logout:hover {
  background: var(--gray-50);
}

.lm-admin-main {
  flex: 1;
  min-width: 0;
}

.lm-admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lm-admin-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--gray-800);
}

.lm-admin-topbar-title {
  flex: 1;
  min-width: 0;
}

.lm-admin-topbar-title {
  font-size: 1.15rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--gray-900);
}

.lm-admin-topbar-right {
  display: flex;
  gap: 12px;
}

.lm-admin-mini {
  font-size: 0.86rem;
  color: var(--gray-600);
}

.lm-admin-content {
  padding: 26px 22px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.lm-admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.lm-admin-h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--gray-900);
  font-size: 1.4rem;
}

.lm-admin-muted {
  color: var(--gray-600);
  margin-top: 8px;
  line-height: 1.6;
}

.lm-admin-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.lm-admin-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), border-color 0.25s var(--ease-spring);
}

.lm-admin-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 90, 156, 0.28);
}

.lm-admin-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lm-admin-card-title {
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--gray-900);
  font-size: 1.05rem;
}

.lm-admin-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(0, 183, 206, 0.10);
  border: 1px solid rgba(0, 183, 206, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.lm-admin-card-value {
  font-weight: 1000;
  font-size: 2.2rem;
  color: var(--primary-dark);
  letter-spacing: -0.04em;
}

.lm-admin-card-sub {
  color: var(--gray-600);
}

.lm-admin-grid2 {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.lm-admin-panel {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.lm-admin-panel-title {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.lm-admin-empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--gray-300);
  color: var(--gray-600);
  background: var(--gray-50);
}

.lm-admin-table-wrap {
  overflow: auto;
  border-radius: 14px;
}

.lm-admin-table-wrap--tight {
  border-radius: 14px;
}

.lm-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.lm-admin-table th,
.lm-admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

.lm-admin-table th {
  background: var(--gray-50);
  font-weight: 900;
  color: var(--gray-800);
}

.lm-admin-row-unread td {
  background: rgba(255, 251, 235, 0.95);
}

.lm-admin-preview {
  max-width: 320px;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-admin-sep {
  margin: 0 10px;
  color: var(--gray-400);
}

.lm-admin-flash {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
  background: var(--gray-50);
}

.lm-admin-flash--err {
  background: rgba(227, 30, 36, 0.06);
  border-color: rgba(227, 30, 36, 0.28);
  color: var(--gray-800);
}

.lm-admin-filters {
  display: flex;
  gap: 12px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}

.lm-admin-filter {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 800;
  text-decoration: none;
  background: var(--surface);
}

.lm-admin-filter--active {
  border-color: rgba(0, 90, 156, 0.35);
  background: linear-gradient(135deg, rgba(0, 69, 165, 0.10) 0%, rgba(0, 51, 153, 0.08) 100%);
  color: var(--primary-dark);
}

.lm-admin-cta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lm-admin-cta {
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-weight: 900;
  color: var(--primary-dark);
}

.lm-admin-cta:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lm-admin-mini a {
  color: var(--primary);
  font-weight: 800;
}

/* Images tab */
.lm-admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.lm-admin-image-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}

.lm-admin-image-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.lm-admin-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.lm-admin-image-meta {
  font-size: 0.82rem;
  color: var(--gray-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lm-admin-image-item--card {
  text-decoration: none;
}

.lm-admin-image-preview {
  display: block;
  text-decoration: none;
}

.lm-admin-image-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lm-admin-btn-copy {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--gray-800);
}

.lm-admin-btn-copy:hover {
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.lm-admin-link-small {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.lm-admin-link-small:hover {
  text-decoration: underline;
}

.lm-admin-panel--images-upload {
  margin-bottom: 24px;
}

.lm-admin-upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lm-admin-upload-form input[type="file"] {
  max-width: 100%;
}

.lm-admin-upload-form--split {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.lm-admin-upload-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lm-admin-upload-label {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--gray-800);
}

.lm-admin-upload-row select {
  max-width: 420px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}

.lm-admin-upload-actions {
  margin-top: 4px;
}

.lm-admin-radio {
  display: block;
  margin: 6px 0;
  font-size: 0.9rem;
  cursor: pointer;
}

.lm-admin-image-zone {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.lm-admin-image-usage {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.lm-admin-image-orphan {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gray-500);
  font-style: italic;
}

.lm-admin-image-assign {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-200);
}

.lm-admin-image-assign select {
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-size: 0.85rem;
}

.lm-admin-assign-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lm-admin-btn-small {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--gray-800);
}

.lm-admin-btn-small:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.lm-admin-image-delete {
  margin-top: 8px;
}

.lm-admin-btn-danger {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #b91c1c;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.lm-admin-btn-danger:hover {
  background: #fee2e2;
}

.lm-admin-btn-inline {
  margin-left: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.lm-admin-flash code {
  font-size: 0.88em;
  word-break: break-all;
}

.lm-admin-thumb {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}

.lm-admin-thumb--sm {
  width: 110px;
  height: 66px;
}

.lm-admin-mini {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 8px;
  word-break: break-word;
}

.lm-admin-cell-title {
  font-weight: 900;
  color: var(--gray-900);
}

.lm-admin-cell-sub {
  color: var(--gray-600);
  font-size: 0.84rem;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .lm-admin-cards {
    grid-template-columns: 1fr;
  }
  .lm-admin-grid2 {
    grid-template-columns: 1fr;
  }
  .lm-admin-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .lm-admin-topbar-right {
    display: none;
  }
  .lm-admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.25s var(--ease-spring);
    z-index: 1000;
    width: 280px;
    height: 100vh;
  }
  body.lm-admin-sidebar-open .lm-admin-sidebar {
    transform: translateX(0);
  }
  .lm-admin-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease-spring);
    z-index: 900;
  }
  body.lm-admin-sidebar-open .lm-admin-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .lm-admin-content {
    padding: 18px 14px 60px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lm-admin-topbar {
    z-index: 50;
  }
}

/* ----- Trust strip (home) ----- */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 28px 24px;
  align-items: start;
}
@media (min-width: 768px) {
  .trust-strip-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 32px 24px;
  }
}
.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.trust-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 69, 165, 0.1), rgba(0, 183, 206, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.trust-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.trust-item span {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.45;
}

/* ----- Products listing ----- */
.section--tight {
  padding-top: 56px;
  padding-bottom: 72px;
}
.intro-prose {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 58rem;
  margin: 0 0 40px;
  line-height: 1.7;
}
.category-block {
  margin-bottom: 64px;
  scroll-margin-top: 96px;
}
.category-block:last-child {
  margin-bottom: 0;
}
.category-block__title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--gray-900);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}
.category-block__lead {
  color: var(--gray-600);
  margin-bottom: 28px;
  max-width: 52rem;
  line-height: 1.65;
}

/* ----- Contact page ----- */
.contact-page-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-page-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
  }
}
.contact-info--card,
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 26px 32px;
  box-shadow: var(--shadow);
}
.contact-info--card h2,
.contact-form-card h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}
.contact-info--card p {
  margin-bottom: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ----- Admin: compact table ----- */
.lm-admin-table--compact th,
.lm-admin-table--compact td {
  padding: 10px 8px;
  font-size: 0.88rem;
}

/* ----- Admin login ----- */
.lm-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(145deg, #0a2d5c 0%, #0045a5 40%, #0c4a6e 100%);
  position: relative;
  overflow: hidden;
}
.lm-login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 183, 206, 0.25), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.lm-login-card {
  position: relative;
  width: 400px;
  max-width: 100%;
  background: var(--surface);
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lm-login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.lm-login-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.lm-login-logo--raster img {
  width: 48px;
  height: 48px;
  max-width: 48px;
}
.lm-login-logo__text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-red);
  line-height: 1.25;
}
.lm-login-logo__sub {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-top: 4px;
}
.lm-login-card h1 {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--gray-900);
}
.lm-login-field {
  margin-bottom: 16px;
}
.lm-login-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--gray-700);
}
.lm-login-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lm-login-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 69, 165, 0.12);
}
.lm-login-error {
  color: #b91c1c;
  font-size: 0.88rem;
  margin-bottom: 6px;
  padding: 10px 12px;
  background: rgba(220, 38, 38, 0.08);
  border-radius: 8px;
}
.lm-login-card .btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
}
.lm-login-back {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--gray-600);
}
.lm-login-back a {
  color: var(--primary);
  font-weight: 600;
}

.lm-admin-edit-bg {
  background: var(--body-bg);
  min-height: 100vh;
  padding: 24px 16px 48px;
}

/* ----- Standalone admin forms (product edit) ----- */
.lm-admin-form-shell {
  max-width: 880px;
  margin: 32px auto;
  padding: 28px 28px 36px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.lm-admin-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.lm-admin-form-head h1 {
  font-size: 1.45rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--gray-900);
}
.lm-admin-form-shell .field {
  margin-bottom: 16px;
}
.lm-admin-form-shell .field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--gray-800);
}
.lm-admin-form-shell .field input[type="text"],
.lm-admin-form-shell .field select,
.lm-admin-form-shell .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
  font-family: inherit;
}
.lm-admin-form-shell .field small {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.lm-admin-form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.lm-admin-btn-secondary {
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--surface);
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--gray-800);
}
.lm-admin-btn-secondary:hover {
  background: var(--gray-50);
}
.lm-admin-form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .lm-admin-form-row2 {
    grid-template-columns: 1fr;
  }
}

.lm-btn-outline {
  display: inline-block;
  margin-left: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  background: transparent;
  font-weight: 600;
  text-decoration: none !important;
}
.lm-btn-outline:hover {
  background: rgba(0, 69, 165, 0.08);
}
