/*
Theme Name: MicroMagic
Theme URI: https://www.memsmag.ru/
Description: Micro-Magic Inc ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ High-precision MEMS inertial sensors website theme. Supports RU/EN/ZH/KK multi-language.
Version: 1.0.2
Author: Micro-Magic Inc
Author URI: https://memsmag.ru/
Text Domain: memsmag
Tags: custom-logo, custom-menu, featured-images, translation-ready
Requires at least: 5.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
/* ============================================
   CSS extracted from <style id="memsmag-style-inline-css">
   homepage_html.txt lines 87-1204
   ============================================ */

/* ============================================
   memsmag.ru - Modern Inertial Sensors Website
   Multi-language: RU / EN / ZH / KK
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #1a56db;
  --primary-dark: #1240a8;
  --primary-light: #e8efff;
  --secondary: #0e9f6e;
  --accent: #f59e0b;
  --dark: #1e293b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-nav: 'HarmonyOS Sans SC Medium', 'HarmonyOS Sans SC', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--dark); font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--dark);
  font-weight: 800;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---- Header / Navbar ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--dark);
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}
.logo-text span { color: var(--primary); }
.nav-links {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.nav-menu,
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 14px;
  font-family: var(--font-nav);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.01em;
  color: var(--gray-700);
  white-space: nowrap;
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active,
.nav-item:hover > .nav-link,
.nav-item.current-item > .nav-link {
  color: var(--primary);
  background: rgba(26, 86, 219, 0.09);
  box-shadow: inset 0 0 0 1px rgba(26, 86, 219, 0.08);
}
.submenu-caret {
  font-size: 0.78rem;
  transform: translateY(1px);
}
.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1100;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  transform: translateX(-50%) rotate(45deg);
}
.submenu-item {
  display: block;
}
.submenu-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-nav);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  background: transparent;
  transition: var(--transition);
}
.submenu-link:hover,
.submenu-link.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-item.has-submenu:hover > .submenu,
.nav-item.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-selector {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: var(--white);
  font-family: var(--font-nav);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover {
  border-color: rgba(26, 86, 219, 0.42);
  color: var(--primary);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  min-width: 176px;
  display: none;
  overflow: hidden;
  z-index: 100;
}
.lang-dropdown.show { display: block; }
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-nav);
  font-size: 0.9rem;
  transition: var(--transition);
}
.lang-dropdown a:hover { background: var(--gray-100); color: var(--primary); }
.lang-dropdown a img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; }
.nav-cta { background: var(--primary); color: var(--white) !important; border-radius: 14px !important; }
.nav-cta:hover { background: var(--primary-dark); transform: none !important; }

/* Mobile menu */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: var(--white);
  font-size: 1.3rem;
  color: var(--gray-700);
}
@media (max-width: 1180px) {
  .header-inner {
    gap: 16px;
    padding: 0 18px;
  }
  .nav-menu {
    gap: 6px;
  }
  .nav-link {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}
@media (max-width: 992px) {
  .header-inner {
    min-height: 72px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.99);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  }
  .nav-links.open {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-item {
    width: 100%;
    flex-direction: column;
  }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
  }
  .submenu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    min-width: 0;
    margin-top: 8px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--gray-100);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex;
  }
  .submenu::before {
    display: none;
  }
  .submenu-link {
    background: var(--white);
  }
  .menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 768px) {
  .header-inner {
    gap: 12px;
    padding: 0 12px;
  }
  .logo-text {
    font-size: 1.06rem;
  }
  .header-right {
    gap: 10px;
  }
  .lang-btn {
    height: 42px;
    padding: 0 12px;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
}

/* ---- Hero Section ---- */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e293b 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,159,110,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  color: #93c5fd;
}
.hero h1 { color: white; margin-bottom: 20px; font-weight: 800; }
.hero h1 span { color: #60a5fa; }
.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat-value { font-size: 2rem; font-weight: 800; color: #60a5fa; }
.hero-stat-label { font-size: 0.85rem; color: #94a3b8; margin-top: 4px; }

.hero-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.hero-product-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.hero-product-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(26,86,219,0.5);
  transform: translateY(-4px);
}
.hero-product-icon {
  width: 44px;
  height: 44px;
  background: rgba(26,86,219,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.3rem;
}
.hero-product-name { font-size: 0.85rem; font-weight: 600; color: #e2e8f0; }

/* ---- Categories Grid ---- */
.categories-section { background: var(--gray-100); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-300);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.category-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}
.category-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.category-card p { font-size: 0.85rem; color: var(--gray-500); }

/* ---- Featured Products ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-card-img {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}
.product-badge.compat { background: var(--secondary); }
.product-card-body { padding: 20px; }
.product-model {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.product-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.product-card-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-specs-mini {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.spec-mini {
  font-size: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 3px 8px;
  border-radius: 4px;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.product-price {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---- Specs Table ---- */
.specs-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300);
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.specs-table th {
  background: var(--dark);
  color: white;
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}
.specs-table th:first-child { text-align: left; }
.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
}
.specs-table td:first-child { text-align: left; font-weight: 500; color: var(--dark); }
.specs-table tr:nth-child(even) { background: var(--gray-100); }
.specs-table tr:hover { background: var(--primary-light); }

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  background: var(--white);
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature-content h4 { margin-bottom: 6px; }
.feature-content p { font-size: 0.88rem; color: var(--gray-500); }

/* ---- Contact / Form ---- */
.contact-section { background: var(--gray-100); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.contact-info-label { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 4px; }
.contact-info-value { font-size: 1rem; font-weight: 600; color: var(--dark); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}
.form-success h3 { color: var(--secondary); margin-bottom: 8px; }

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 12px; }
.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  font-size: 0.88rem;
  padding: 5px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: white; padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}
.footer-social a:hover { background: var(--primary); color: white; }

/* ---- Page Header Banner ---- */
.page-banner {
  height: 260px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding-top: 72px;
}
.page-banner h1 { color: white; margin-bottom: 12px; }
.page-banner p { color: #94a3b8; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 16px;
}
.breadcrumb a { color: #60a5fa; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Product Detail Page ---- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery {
  position: sticky;
  top: 90px;
}
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  margin-bottom: 12px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-100);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 1.8rem; margin-bottom: 12px; }
.product-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.product-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--gray-500);
}
.product-meta-item strong { color: var(--dark); }
.product-price-tag {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}
.product-price-tag small { font-size: 0.9rem; color: var(--gray-500); font-weight: 400; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.product-tabs {
  margin-top: 32px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--gray-300);
  background: var(--gray-100);
}
.product-tab-btn {
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.product-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--white);
}
.product-tab-content { padding: 24px; display: none; }
.product-tab-content.active { display: block; }
.product-tab-content p { margin-bottom: 12px; line-height: 1.8; }

/* ---- Animations ---- */
.fade-in { animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.scroll-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Product Detail Page (Gallery + Tabs) ---- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery-col { display: flex; flex-direction: column; gap: 16px; }
.product-image-main {
  position: relative;
  height: 300px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-row { display: flex; gap: 8px; }
.thumb {
  width: 60px; height: 60px;
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
  transition: var(--transition);
}
.thumb.active, .thumb:hover { border-color: var(--primary); }
.product-info-box {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-300);
}
.product-specs-col { display: flex; flex-direction: column; gap: 16px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--gray-300);
  margin-bottom: 16px;
}
.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Spec table in product detail */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.spec-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--gray-100);
}
.spec-table td:first-child { font-weight: 500; color: var(--dark); white-space: nowrap; }
.spec-table tr:nth-child(even) td { background: var(--gray-100); }
.spec-table h3 { font-size: 1rem; color: var(--primary); margin: 12px 0 4px; border-left: 3px solid var(--primary); padding-left: 8px; }
.en { font-size: 0.75rem; color: var(--gray-400); }

/* App grid */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
}
.app-icon {
  width: 36px; height: 36px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.app-name { font-weight: 700; font-size: 0.88rem; color: var(--dark); }
.app-reason { font-size: 0.8rem; color: var(--gray-500); }
.app-reason::before { content: 'ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ '; color: var(--primary); }

/* Related products */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.related-placeholder {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 280px 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 24px; }
  .hero-products { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .app-grid { grid-template-columns: 1fr; }
}
/*# sourceURL=memsmag-style-inline-css */


/* ============================================
   CSS extracted from <style id="mm-nav-inline-style">
   homepage_html.txt lines 1265-1570
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    backdrop-filter: none;
}

.header .header-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 76px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 22px;
}

.header .logo {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    margin-right: 28px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.header .logo img {
    display: block;
    width: 96px;
    height: auto;
}

.header .logo:hover {
    opacity: 0.92;
}

.header .nav-links {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
}

.header .nav-menu {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.header .nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
    list-style: none;
}

.header .nav-link,
.header .submenu-link,
.header .lang-btn,
.header .menu-toggle,
.header .search-toggle,
.header .search-submit {
    font-family: Arial, Helvetica, sans-serif;
}

.header .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 76px;
    padding: 0 14px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #202124;
    text-decoration: none;
    background: transparent;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease;
}

.header .nav-link:hover,
.header .nav-link.active,
.header .nav-item.current-item > .nav-link,
.header .nav-item:hover > .nav-link {
    color: #1e5ca8;
    background: transparent;
    box-shadow: none;
}

.header .submenu-caret {
    font-size: 0.7rem;
    line-height: 1;
}

.header .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    margin: 0;
    padding: 12px;
    list-style: none;
    border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 50;
}

.header .submenu-item + .submenu-item {
    margin-top: 6px;
}

.header .submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: #173154;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.header .submenu-link:hover,
.header .submenu-link.active {
    color: #123d9b;
    background: #f1f6ff;
    transform: translateX(2px);
}

.header .nav-item.has-submenu:hover > .submenu,
.header .nav-item.has-submenu:focus-within > .submenu,
.header .nav-item.has-submenu.is-open > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header .header-actions {
    display: flex;
    align-items: stretch;
    margin-left: auto;
    flex-shrink: 0;
}

.header .search-shell,
.header .lang-selector {
    position: relative;
    display: flex;
    align-items: stretch;
}

.header .search-toggle,
.header .lang-btn,
.header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 76px;
    padding: 0 12px;
    border: none;
    border-radius: 0;
    background: #fff;
    color: #202124;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.header .search-toggle {
    width: 52px;
    padding: 0;
}

.header .search-toggle:hover,
.header .lang-btn:hover,
.header .menu-toggle:hover {
    color: #1e5ca8;
    background: #f8fafc;
}

.header .search-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.header .lang-name {
    white-space: nowrap;
    font-size: 0.94rem;
    color: #164480;
}

.header .lang-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #164480;
}

.header .lang-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.header .lang-caret {
    color: #164480;
}

.header .search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    border-radius: 0 0 12px 12px;
    display: none;
    z-index: 60;
}

.header .search-panel.show {
    display: block;
}

.header .search-form {
    display: flex;
    gap: 10px;
}

.header .search-input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #111827;
    background: #fff;
}

.header .search-input:focus {
    outline: none;
    border-color: #1e5ca8;
    box-shadow: 0 0 0 3px rgba(30, 92, 168, 0.12);
}

.header .search-submit {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: #154c8a;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.header .lang-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;
    padding: 8px;
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    display: none;
    z-index: 60;
}

.header .lang-dropdown.show {
    display: block;
}

.header .lang-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #173154;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.header .lang-dropdown a:hover,
.header .lang-dropdown a.active {
    background: #f1f6ff;
    color: #123d9b;
}

.header .menu-toggle {
    display: none;
    min-width: 72px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

@media (max-width: 1360px) {
    .header .nav-link {
        padding: 0 11px;
        font-size: 0.82rem;
    }

    .header .logo {
        margin-right: 22px;
    }
}

@media (max-width: 1180px) {
    .header .header-inner {
        flex-wrap: wrap;
        align-items: center;
        padding: 0;
    }

    .header .logo {
        min-height: 76px;
        padding: 0 18px;
        margin-right: 0;
    }

    .header .nav-links {
        order: 3;
        width: 100%;
        display: none;
        border-top: 1px solid #e5e7eb;
        background: #fff;
    }

    .header .nav-links.open {
        display: block;
    }

    .header .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 12px 16px;
    }

    .header .nav-item {
        display: block;
    }

    .header .nav-link {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        padding: 0 14px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .header .submenu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        border-radius: 12px;
        box-shadow: none;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header .nav-item.has-submenu.open-mobile > .submenu {
        display: block;
    }

    .header .header-actions {
        margin-left: auto;
    }

    .header .search-toggle,
    .header .lang-btn,
    .header .menu-toggle {
        min-height: 76px;
        padding: 0 16px;
    }

    .header .search-toggle {
        width: auto;
        min-width: 52px;
        padding: 0 14px;
    }

    .header .search-panel {
        width: min(320px, calc(100vw - 32px));
    }

    .header .menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .header .logo {
        padding: 0 14px;
    }

    .header .lang-name {
        display: none;
    }

    .header .search-toggle,
    .header .lang-btn,
    .header .menu-toggle {
        min-height: 64px;
        padding: 0 14px;
    }

    .header .search-form {
        flex-direction: column;
    }
}


/* ============================================
   Third-Level Submenu (added 2026-06-09)
   Appears to the right of the parent submenu item
   ============================================ */

/* Position parent relative for absolute positioning */
.submenu-item.has-submenu {
    position: relative;
}

/* Third-level submenu: positioned to the right */
.submenu-item.has-submenu > .submenu {
    position: absolute;
    left: 100%;
    top: 0;
    transform: translateX(8px) translateY(0);
    min-width: 260px;
    margin-top: 0;
    margin-left: 0;
}

/* Left-pointing arrow for third-level submenu */
.submenu-item.has-submenu > .submenu::before {
    content: '';
    position: absolute;
    top: 18px;
    left: -7px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    transform: rotate(45deg);
}

/* Show on hover/focus */
.submenu-item.has-submenu:hover > .submenu,
.submenu-item.has-submenu:focus-within > .submenu,
.submenu-item.has-submenu.is-open > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(8px) translateY(0);
}

/* Remove the top arrow from nested submenus */
.nav-item > .submenu .submenu::before {
    display: none;
}

/* Mobile: third-level menu collapses inline */
@media (max-width: 992px) {
    .submenu-item.has-submenu > .submenu {
        position: static;
        left: auto;
        top: auto;
        min-width: 0;
        margin-top: 6px;
        margin-left: 16px;
        border-radius: 14px;
        box-shadow: none;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .submenu-item.has-submenu > .submenu.open {
        display: block;
    }
    
    .submenu-item.has-submenu > .submenu::before {
        display: none;
    }
}

/* Invisible bridge to fill the gap between nav-item and submenu */
/* This prevents the submenu from disappearing when moving the mouse down */
.nav-item.has-submenu > .submenu::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
    z-index: -1;
}

/* Hover delay timer for submenu - keeps menu open briefly when mouse leaves */
@media (min-width: 993px) {
    .nav-item.has-submenu > .submenu {
        transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), 
                    margin-top 0.05s linear;
    }
    .nav-item.has-submenu:hover > .submenu {
        transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
}


/* Invisible bridge for second-level submenu items */
.submenu-item.has-submenu > .submenu::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: 0;
    height: 8px;
    width: 8px;
    background: transparent;
}
@media (min-width: 993px) {
    .submenu-item.has-submenu > .submenu {
        transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
}


body,button,input,select,textarea{font-family:Arial,Helvetica,sans-serif}
E:\???\theme_editor_dump\style.cssE:\???\theme_editor_dumpstyle.cssArrayArray1