/* waterest-wmc200.css — style ĐẶC THÙ trang sản phẩm Waterest WMC200.
   Reset/utility/topbar/footer/cta dùng chung nằm ở assets/css/base.css — KHÔNG lặp lại ở đây. */

html {
  scroll-padding-top: calc(var(--srm-topbar-height) + 85px);
}

body::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(58, 134, 255, 0.1) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

/* 1. HEADER RIÊNG SẢN PHẨM (nằm dưới thanh srm-topbar dùng chung) */
.header {
  position: fixed;
  top: var(--srm-topbar-height);
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border-glass);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.logo-text span {
  color: var(--primary);
  margin-left: 2px;
}

.logo-tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* MOBILE NAV DRAWER */
.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: var(--bg-deep);
  border-left: 1px solid var(--border-glass);
  z-index: 1250;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav .close-btn {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 2rem;
}

.nav-menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 2. HERO */
.hero {
  padding: calc(var(--srm-topbar-height) + 10rem) 0 5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.1rem;
  margin: 1.2rem 0;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-img-wrapper {
  position: relative;
}

.hero-img-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.hero-img-card:hover {
  border-color: var(--border-glass-active);
  box-shadow: var(--shadow-card-hover);
}

.hero-img-card img {
  width: 100%;
  object-fit: cover;
}

.hero-specs-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.2rem;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.spec-item .spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-item .spec-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}

/* 3. FEATURES */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-active);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 4. SIMULATOR */
.simulator-section {
  padding: 6rem 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.simulator-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.wmc-device-box {
  background: #111726;
  border: 2px solid #2a3754;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.1);
  position: relative;
}

.wmc-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #1e2a45;
}

.wmc-brand-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.wmc-brand-title span {
  color: var(--primary);
}

.wmc-status-leds {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.75rem;
}

.led-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

.led-indicator.green {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.led-indicator.amber {
  background-color: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.wmc-lcd-screen {
  background: linear-gradient(135deg, #7da585 0%, #688e70 100%);
  color: #0b1a0e;
  font-family: var(--font-mono);
  border: 4px solid #1c2738;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lcd-top-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  border-bottom: 1px dashed #3f5e46;
  padding-bottom: 0.4rem;
}

.lcd-main-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.8rem 0;
}

.lcd-value-box {
  display: flex;
  flex-direction: column;
}

.lcd-param-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lcd-param-val {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.3rem 0;
}

.lcd-param-unit {
  font-size: 0.8rem;
  font-weight: 700;
}

.lcd-chart-area {
  height: 80px;
  width: 100%;
}

.lcd-chart-area canvas {
  width: 100%;
  height: 100%;
}

.lcd-bottom-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  border-top: 1px dashed #3f5e46;
  padding-top: 0.4rem;
}

.wmc-keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.wmc-btn {
  background: #1c273a;
  color: #94a3b8;
  border: 1px solid #2e3e5c;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.wmc-btn:hover, .wmc-btn.active {
  background: var(--primary);
  color: #060913;
  border-color: var(--primary);
}

.simulator-controls h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.simulator-controls p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.sensor-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.sensor-chip {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.sensor-chip:hover, .sensor-chip.active {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary);
}

.action-trigger-box {
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-glass);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 5. SENSOR ECOSYSTEM */
.sensors-section {
  padding: 6rem 0;
}

.sensors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.sensor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sensor-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-active);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.sensor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.sensor-model-tag {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.sensor-tag-type {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(58, 134, 255, 0.15);
  color: var(--secondary);
  font-weight: 600;
}

.sensor-card h4 {
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.sensor-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.sensor-specs-list {
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.sensor-specs-list li {
  display: flex;
  justify-content: space-between;
}

.sensor-specs-list .label {
  color: var(--text-muted);
}

.sensor-specs-list .value {
  color: var(--text-main);
  font-weight: 600;
}

/* 6. TECHNICAL SPECIFICATIONS TABS */
.specs-section {
  padding: 6rem 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-glass);
}

.spec-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.spec-tab-trigger {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.spec-tab-trigger:hover, .spec-tab-trigger.active {
  background: var(--gradient-primary);
  color: #060913;
  border-color: transparent;
  box-shadow: var(--shadow-neon);
}

.spec-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2.5rem;
}

.spec-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.spec-table th, .spec-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-glass);
}

.spec-table th {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.spec-table td {
  font-size: 0.92rem;
  color: var(--text-main);
}

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

/* 7. APPLICATIONS */
.applications-section {
  padding: 6rem 0;
  position: relative;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-active);
  box-shadow: var(--shadow-card-hover);
}

.app-card-img {
  height: 200px;
  overflow: hidden;
}

.app-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.app-card:hover .app-card-img img {
  transform: scale(1.05);
}

.app-card-body {
  padding: 1.8rem;
}

.app-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.app-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .simulator-container { grid-template-columns: 1fr; }
  .applications-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero-content h1 { font-size: 2.2rem; }
  .section-title { font-size: 1.8rem; }
  .applications-grid { grid-template-columns: 1fr; }
  .sensor-select-grid { grid-template-columns: 1fr; }
  .wmc-keypad { grid-template-columns: repeat(2, 1fr); }
}
