/* =====================================================================
 * Neelkanth Power – Product category & model pages
 *   voltage-stabilizer, power-control, power-conditioning, power-factor
 *   + the 10 model pages (three-phase-ac-aircooled-…, k-rated-transformer, …)
 * Loaded after style.css and product-page.css. Everything is scoped to
 * .np-products, so the header, menu, footer and other pages are untouched.
 * ===================================================================== */

/* ---------- Intro (breadcrumb + title) ---------- */
.np-products .np-intro-tight { padding-bottom: 28px; }
.np-products .np-breadcrumb .np-crumb-current { color: var(--np-blue); }
.np-products .np-cat-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 22px;
}
.np-products .np-cat-icon {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.np-products .np-lead a { color: var(--np-accent); }

/* ---------- Category cards ---------- */
.np-products .np-eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--np-accent);
}
.np-products .np-mini-table {
  width: 100%;
  margin: 4px 0 6px;
  border-collapse: collapse;
  font-size: .875rem;
}
.np-products .np-mini-table th,
.np-products .np-mini-table td {
  padding: 8px 10px;
  border: 1px solid var(--np-line);
  text-align: left;
}
.np-products .np-mini-table th {
  background: var(--np-soft);
  color: var(--np-blue);
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.np-products .np-cta-band {
  padding: 48px 0;
  background: var(--np-blue-dark);
  color: #ffffff;
}
.np-products .np-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.np-products .np-cta-row h2 {
  margin: 0 0 6px;
  font-family: Philosopher, Georgia, serif;
  font-size: 1.75rem;
  color: #ffffff;
}
.np-products .np-cta-row p { margin: 0; color: #e3edf4; }
.np-products .np-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.np-products .np-btn-light {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--np-blue);
}
.np-products .np-btn-light:hover,
.np-products .np-btn-light:focus-visible {
  background: transparent;
  color: #ffffff;
}
.np-products .np-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
  color: #ffffff;
}
.np-products .np-btn-ghost:hover,
.np-products .np-btn-ghost:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--np-blue);
}

/* ---------- Model page: hero ---------- */
.np-products .np-hero {
  padding: 8px 0 48px;
  background: #ffffff;
}
.np-products .np-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.np-products .np-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-height: 460px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--np-line);
  border-top: 4px solid var(--np-blue);
}
.np-products .np-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.np-products .np-hero .np-title { font-size: 2.5rem; }
.np-products .np-hero-copy { margin-top: 16px; color: var(--np-text); }
.np-products .np-hero-copy p { margin: 0 0 12px; }
.np-products .np-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.np-products .np-hero-actions .np-btn { font-family: Arial, Helvetica, sans-serif; }

/* ---------- Model page: details (tabs + sidebar) ---------- */
.np-products .np-details {
  padding: 56px 0 72px;
  background: var(--np-soft);
  border-top: 1px solid var(--np-line);
}
.np-products .np-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

/* tabs – the class names main.js uses are kept (u-tabs, u-tab-link, u-tab-pane, u-tab-active) */
.np-products .np-tabs {
  background: #ffffff;
  border: 1px solid var(--np-line);
  box-shadow: 0 2px 10px rgba(0, 45, 75, .06);
}
.np-products .np-tab-list {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  border-bottom: 1px solid var(--np-line);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.np-products .np-tab-list li { flex: 0 0 auto; margin: 0; }
.np-products .np-tab-list .u-tab-link {
  display: block;
  padding: 16px 22px;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--np-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s;
}
.np-products .np-tab-list .u-tab-link:hover { color: var(--np-blue); background: var(--np-soft); }
.np-products .np-tab-list .u-tab-link.active {
  color: var(--np-blue);
  border-bottom-color: var(--np-accent);
}
.np-products .np-tabs .u-tab-pane { display: none; padding: 28px; }
.np-products .np-tabs .u-tab-pane.u-tab-active { display: block; }
.np-products .np-tabs .u-tab-pane[hidden] { display: none !important; }

/* tab content */
.np-products .np-tabs .u-tab-pane h4 {
  margin: 28px 0 12px;
  font-family: Philosopher, Georgia, serif;
  font-size: 1.375rem;
  color: var(--np-blue);
}
.np-products .np-tabs .u-tab-pane p { margin: 16px 0 0; font-size: .9375rem; line-height: 1.7; }
.np-products .np-tabs .u-tab-pane img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0 16px;
  border: 1px solid var(--np-line);
}
.np-products .np-tabs .u-tab-pane ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
}
.np-products .np-tabs .u-tab-pane ul li {
  position: relative;
  margin: 0;
  padding: 9px 0 9px 26px;
  border-bottom: 1px dashed var(--np-line);
  line-height: 1.5;
}
.np-products .np-tabs .u-tab-pane ul li:last-child { border-bottom: 0; }
.np-products .np-tabs .u-tab-pane ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 8px;
  height: 8px;
  background: var(--np-accent);
}
.np-products .np-tabs .u-tab-pane ul.np-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.np-products .np-tabs .u-tab-pane ul.np-notes li { color: var(--np-muted); font-size: .875rem; }
.np-products .np-tabs .u-tab-pane ul.np-notes li::before { background: var(--np-line); }

.np-products .np-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--np-line);
}
.np-products .np-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.5;
  background: #ffffff;
}
.np-products .np-table th,
.np-products .np-table td {
  padding: 12px 16px;
  border: 1px solid var(--np-line);
  text-align: left;
  vertical-align: top;
}
.np-products .np-table thead th {
  background: var(--np-blue);
  border-color: var(--np-blue);
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}
.np-products .np-table tbody tr:nth-child(even) td { background: #f8fbfd; }
.np-products .np-table-kv td:first-child {
  width: 34%;
  color: var(--np-blue);
  font-weight: 600;
  background: var(--np-soft) !important;
}
.np-products .np-table-wide { min-width: 640px; }

/* sidebar */
.np-products .np-aside { display: grid; gap: 24px; }
.np-products .np-aside-box {
  background: #ffffff;
  border: 1px solid var(--np-line);
  border-top: 4px solid var(--np-blue);
  padding: 22px;
}
.np-products .np-aside-title {
  margin: 0 0 14px;
  font-family: Philosopher, Georgia, serif;
  font-size: 1.25rem;
  color: var(--np-blue);
}
.np-products .np-model-nav { margin: 0; padding: 0; list-style: none; }
.np-products .np-model-nav li { margin: 0 0 8px; }
.np-products .np-model-nav a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--np-line);
  border-left: 4px solid var(--np-line);
  color: var(--np-text);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.np-products .np-model-nav a:hover { border-left-color: var(--np-accent); color: var(--np-blue); }
.np-products .np-model-nav a[aria-current="page"] {
  background: var(--np-blue);
  border-color: var(--np-blue);
  color: #ffffff;
}
.np-products .np-aside-contact { font-size: .875rem; line-height: 1.6; }
.np-products .np-aside-contact p { margin: 0 0 10px; }
.np-products .np-aside-contact b { color: var(--np-blue); }
.np-products .np-aside-contact a { color: var(--np-blue); }
.np-products .np-aside-contact .np-btn { width: 100%; margin-top: 8px; color: #ffffff; }
.np-products .np-aside-contact .np-btn:hover,
.np-products .np-aside-contact .np-btn:focus-visible { color: var(--np-blue); }

/* ---------- Enquiry / PDF popup (markup and ids unchanged – main.js drives it) ---------- */
.np-products .popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 25, 45, .6);
}
.np-products .popup .popup-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 34px 30px 28px;
  border-radius: 0;
  border-top: 4px solid var(--np-blue);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.np-products .popup .popup-content h2 {
  margin: 0 0 18px;
  font-family: Philosopher, Georgia, serif;
  font-size: 1.75rem;
  color: var(--np-blue);
}
.np-products .popup .close-popup {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--np-muted);
  font-size: 28px;
  line-height: 40px;
  cursor: pointer;
}
.np-products .popup .close-popup:hover { color: var(--np-blue); background: transparent; }
.np-products .popup form br { display: none; }
.np-products .popup label {
  display: block;
  margin: 14px 0 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--np-text);
}
.np-products .popup input[type="text"],
.np-products .popup input[type="email"],
.np-products .popup input[type="tel"] {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #c9d3dc;
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
}
.np-products .popup input:focus {
  border-color: var(--np-accent);
  box-shadow: 0 0 0 3px rgba(22, 151, 212, .15);
  outline: none;
}
.np-products .popup .field-error { margin: 4px 0 0; }
.np-products .popup button[type="submit"] {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  padding: 12px 20px;
  border: 2px solid var(--np-blue);
  background: var(--np-blue);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.np-products .popup button[type="submit"]:hover { background: #ffffff; color: var(--np-blue); }
.np-products .popup #enquiryMessage { margin: 14px 0 0; font-size: .9375rem; }
.np-products .np-popup-note { margin: 0 0 4px; font-size: .875rem; color: var(--np-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .np-products .np-details-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
}
@media (max-width: 991px) {
  .np-products .np-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .np-products .np-hero-media { max-width: 460px; width: 100%; margin: 0 auto; }
  .np-products .np-hero .np-title { font-size: 2.125rem; }
  .np-products .np-details-grid { grid-template-columns: minmax(0, 1fr); }
  .np-products .np-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .np-products .np-hero { padding-bottom: 36px; }
  .np-products .np-details { padding: 36px 0 48px; }
  .np-products .np-tabs .u-tab-pane { padding: 20px 16px; }
  .np-products .np-tab-list .u-tab-link { padding: 14px 16px; font-size: .8125rem; }
  .np-products .np-tabs .u-tab-pane ul.np-list-grid { grid-template-columns: 1fr; }
  .np-products .np-table th,
  .np-products .np-table td { padding: 10px 12px; font-size: .875rem; }
  .np-products .np-aside { grid-template-columns: minmax(0, 1fr); }
  .np-products .np-cat-icon { width: 64px; height: 64px; }
  .np-products .np-cat-head { gap: 14px; }
  .np-products .np-cta-row h2 { font-size: 1.5rem; }
  .np-products .np-cta-actions { width: 100%; }
  .np-products .np-cta-actions .np-btn { flex: 1 1 200px; }
}
@media (max-width: 575px) {
  .np-products .np-hero .np-title { font-size: 1.75rem; }
  .np-products .np-hero-actions .np-btn { flex: 1 1 100%; }
  .np-products .np-hero-media { padding: 18px; }
  .np-products .popup .popup-content { padding: 30px 18px 22px; }
  .np-products .np-table-kv td:first-child { width: 42%; }
}

/* tables: header-row key/value ("Parameter / Description") and plain grids (application lists) */
.np-products .np-table-kv-head thead th:first-child { width: 34%; }
.np-products .np-table-grid td { width: 33.33%; }
.np-products .np-table-grid tbody tr:nth-child(even) td { background: #ffffff; }
