/*
 * BAREbits — DARK ECO theme + public site SHELL layout.
 *
 * CONTENT theme for this standalone client commerce site (recycled Nissan Leaf /
 * EV-pack battery kit-sets + boards). Palette is taken from the BAREbits logo and
 * is deliberately HARD-CODED here: this is the client's own brand, NOT BARE
 * estate chrome, so it does not use the estate brand helper.
 *
 * Contains:
 *   1. Palette + base
 *   2. Buttons / cards / links / forms (shared components)
 *   3. Header (logo + nav + social/YouTube + auth + cart indicator)
 *   4. The signature left + right floating-column layout with the shopping
 *      cart DOCKED down the right-hand side (persistent mini-cart frame)
 *   5. Page components (hero, catalogue, media, faq, auth)
 *   6. Footer
 *   7. Responsive collapse
 *
 * Palette (BAREbits landing — navy + white light theme):
 *   navy #1E3A8A (primary brand)  blue #3B6FE0 (accent / buttons / links)
 *   white #FFFFFF (page/cards)    ink #0B1020   deeper navy #15285f (hover)
 */

/* ========================================================================= */
/* 1. Palette + base                                                         */
/* ========================================================================= */
:root {
  --ng-green:        #3B6FE0;   /* primary brand -> brand blue */
  --ng-green-deep:   #1E3A8A;   /* deep -> navy */
  --ng-green-bright: #3B6FE0;   /* bright accent -> brand blue */
  --ng-blue:         #1E3A8A;   /* strong brand navy */
  --ng-blue-bright:  #3B6FE0;   /* brand blue */
  --ng-navy:         #1E3A8A;
  --ng-navy-logo:    #15285f;   /* deeper navy (hover) */

  --ng-bg:        #FFFFFF;   /* white page */
  --ng-bg-2:      #FFFFFF;   /* raised panel */
  --ng-surface:   #FFFFFF;   /* card surface */
  --ng-surface-2: #F6F8FD;   /* alt surface (very light navy wash) */
  --ng-ink:       #0B1020;   /* ink body text */
  --ng-muted:     #5B6473;   /* mid grey ink */
  --ng-line:      rgba(30, 58, 138, 0.14);
  --ng-line-2:    rgba(30, 58, 138, 0.08);

  --ng-font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ng-header-h: 76px;
  --ng-maxw:     1320px;
  --ng-radius:   14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ng-font);
  color: var(--ng-ink);
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(59,111,224,0.06), transparent 60%),
    radial-gradient(900px 540px at 88% 8%, rgba(30,58,138,0.05), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F6F8FD 60%, #EEF3FB 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: var(--ng-blue-bright); text-decoration: none; }
a:hover { color: var(--ng-navy); }

.ngs-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ng-green); color: #FFFFFF; padding: .6rem 1rem; border-radius: 0 0 8px 0; font-weight: 700;
}
.ngs-skip:focus { left: 0; }

/* ========================================================================= */
/* 2. Shared components                                                      */
/* ========================================================================= */
.ngs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(92deg, var(--ng-blue-bright), var(--ng-navy));
  color: #FFFFFF;
  font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  box-shadow: 0 6px 20px rgba(59, 111, 224, 0.22);
}
.ngs-btn:hover { transform: translateY(-1px); color: #FFFFFF; box-shadow: 0 10px 26px rgba(30, 58, 138, 0.28); }
.ngs-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.ngs-btn-ghost {
  background: transparent; border-color: var(--ng-navy); color: var(--ng-navy);
  box-shadow: none;
}
.ngs-btn-ghost:hover { border-color: var(--ng-navy); background: var(--ng-navy); color: #FFFFFF; }
.ngs-btn-block { width: 100%; }
.ngs-btn-sm { padding: .45rem .8rem; font-size: .8rem; }

.ngs-card {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius);
  padding: 1.25rem 1.2rem;
}
.ngs-card h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--ng-green); }
.ngs-card p  { margin: 0 0 .75rem; font-size: .9rem; line-height: 1.55; color: var(--ng-muted); }
.ngs-card.is-placeholder { border-style: dashed; }

.ngs-link { font-weight: 600; font-size: .86rem; color: var(--ng-blue-bright); }
.ngs-link:hover { color: var(--ng-green-bright); }

.ngs-eyebrow {
  margin: 0; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--ng-blue-bright);
}
.ngs-h1 {
  margin: .25rem 0; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.08;
  background: linear-gradient(92deg, var(--ng-green-bright), var(--ng-green), var(--ng-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ngs-lead { margin: .4rem 0; font-size: 1.02rem; line-height: 1.6; color: var(--ng-muted); max-width: 46rem; }
.ngs-pagehead { margin-bottom: 1.6rem; }
.ngs-center-text { text-align: center; }
.ngs-center-text .ngs-lead { margin-inline: auto; }

.ngs-chip {
  display: inline-block; padding: .18rem .6rem; border-radius: 999px;
  border: 1px solid var(--ng-line); color: var(--ng-green-bright);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}

/* Forms */
.ngs-form { display: flex; flex-direction: column; gap: 1rem; max-width: 30rem; }
.ngs-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--ng-muted); }
.ngs-form input, .ngs-form textarea {
  font: inherit; color: var(--ng-ink);
  background: var(--ng-surface-2); border: 1px solid var(--ng-line); border-radius: 10px;
  padding: .65rem .8rem;
}
.ngs-form input:focus, .ngs-form textarea:focus { outline: 2px solid var(--ng-green); outline-offset: 1px; border-color: transparent; }
.ngs-form-note { font-size: .76rem; color: var(--ng-muted); margin: 0; }

/* ========================================================================= */
/* 3. Header                                                                 */
/* ========================================================================= */
.ngs-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ng-line);
}
.ngs-header-inner {
  max-width: var(--ng-maxw); margin: 0 auto; min-height: var(--ng-header-h);
  padding: .5rem 1.25rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.ngs-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.ngs-brand img { height: 50px; width: auto; display: block; margin-right: .5rem; filter: drop-shadow(0 3px 12px rgba(59,111,224,0.18)); }

.ngs-nav { display: flex; align-items: center; gap: .35rem; flex: 1 1 auto; }
.ngs-nav a {
  color: var(--ng-ink); font-size: .9rem; font-weight: 600;
  padding: .5rem .7rem; border-radius: 8px;
}
.ngs-nav a:hover { background: var(--ng-line-2); color: var(--ng-green-bright); }
.ngs-nav a.is-active { color: var(--ng-green-bright); background: var(--ng-line-2); }

.ngs-actions { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.ngs-social { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.ngs-social a {
  display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  color: var(--ng-muted); border-radius: 8px;
}
.ngs-social a:hover { color: var(--ng-green-bright); background: var(--ng-line-2); }
.ngs-social svg { width: 18px; height: 18px; }

.ngs-acct {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--ng-ink); font-size: .86rem; font-weight: 600;
  padding: .45rem .7rem; border-radius: 8px; border: 1px solid var(--ng-line);
}
.ngs-acct:hover { color: var(--ng-green-bright); border-color: var(--ng-green); }
.ngs-acct svg { width: 18px; height: 18px; }
.ngs-acct-reg { border: none; padding-inline: .4rem; color: var(--ng-blue-bright); }
.ngs-acct-reg:hover { color: var(--ng-green-bright); border-color: transparent; }

.ngs-cartbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--ng-line); color: var(--ng-ink);
}
.ngs-cartbtn:hover { color: var(--ng-green-bright); border-color: var(--ng-green); }
.ngs-cartbtn svg { width: 20px; height: 20px; }
.ngs-cartbtn-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ng-green-bright); color: #FFFFFF; font-size: .68rem; font-weight: 800;
  border-radius: 999px; line-height: 1;
}

/* Mobile nav toggle (hidden on desktop) */
.ngs-navtoggle { display: none; }
.ngs-burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; }
.ngs-burger span { width: 22px; height: 2px; background: var(--ng-ink); border-radius: 2px; }

/* ========================================================================= */
/* 4. Floating left + right layout, cart docked right                        */
/* ========================================================================= */
.ngs-shell {
  flex: 1; width: 100%; max-width: var(--ng-maxw); margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid; gap: 1.6rem;
  grid-template-columns: 1fr;          /* default: content only */
  align-items: start;
}
.ngs-shell.has-left { grid-template-columns: 240px minmax(0, 1fr); }
.ngs-shell.has-cart { grid-template-columns: minmax(0, 1fr) 320px; }
.ngs-shell.has-left.has-cart { grid-template-columns: 240px minmax(0, 1fr) 320px; }

.ngs-left, .ngs-cart { position: sticky; top: calc(var(--ng-header-h) + 1rem); align-self: start; }
.ngs-center { min-width: 0; }

/* Left floating column (category nav / filters) */
.ngs-left-block {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius);
  padding: 1rem 1rem; margin-bottom: 1rem;
}
.ngs-left-block h4 { margin: 0 0 .6rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ng-green); }
.ngs-filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.ngs-filter-list a { display: block; padding: .4rem .55rem; border-radius: 8px; color: var(--ng-ink); font-size: .88rem; }
.ngs-filter-list a:hover { background: var(--ng-line-2); color: var(--ng-green-bright); }
.ngs-filter-list a.is-active { background: var(--ng-line-2); color: var(--ng-green-bright); font-weight: 700; }

/* Right-docked shopping cart panel (FRAME ONLY — logic is a later job) */
.ngs-cart {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius);
  overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - var(--ng-header-h) - 2rem);
}
.ngs-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; border-bottom: 1px solid var(--ng-line);
  background: var(--ng-surface-2);
}
.ngs-cart-title { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .92rem; }
.ngs-cart-title svg { width: 18px; height: 18px; color: var(--ng-green); }
.ngs-cart-pill {
  min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ng-green-bright); color: #FFFFFF; font-weight: 800; font-size: .72rem; border-radius: 999px;
}
.ngs-cart-body { padding: 1rem; overflow-y: auto; flex: 1; min-height: 80px; }
.ngs-cart-empty { margin: 0; color: var(--ng-muted); font-size: .86rem; line-height: 1.5; }
.ngs-cart-foot { padding: 1rem; border-top: 1px solid var(--ng-line); background: var(--ng-surface-2); }
.ngs-cart-sub { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .75rem; }
.ngs-cart-sub span { color: var(--ng-muted); font-size: .86rem; }
.ngs-cart-sub strong { font-size: 1.15rem; color: var(--ng-ink); }
.ngs-cart-note { margin: .6rem 0 0; font-size: .72rem; color: var(--ng-muted); text-align: center; }

/* ========================================================================= */
/* 5. Page components                                                        */
/* ========================================================================= */
.ngs-hero { padding: 1.5rem 0 2rem; }
.ngs-hero .ngs-lead { font-size: 1.1rem; }
.ngs-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

.ngs-grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ngs-grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.ngs-catalogue { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ngs-product {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: .9rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.ngs-product.is-placeholder { border-style: dashed; }
.ngs-product-media { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, var(--ng-surface-2), var(--ng-bg)); border: 1px solid var(--ng-line-2); }
.ngs-product-title { margin: 0; font-size: .95rem; }
.ngs-product-meta { margin: 0; font-size: .78rem; color: var(--ng-muted); }
.ngs-product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ngs-product-price { font-weight: 800; color: var(--ng-green-bright); }

.ngs-video {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: .8rem; overflow: hidden;
}
.ngs-video.is-placeholder { border-style: dashed; }
.ngs-video-thumb {
  aspect-ratio: 16 / 9; border-radius: 10px; margin-bottom: .6rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ng-surface-2), var(--ng-bg));
  border: 1px solid var(--ng-line-2); color: #FF0000;
}
.ngs-video-thumb svg { width: 46px; height: 46px; opacity: .8; }
.ngs-video h3 { margin: 0; font-size: .9rem; }

.ngs-faq { display: flex; flex-direction: column; gap: .6rem; max-width: 48rem; }
.ngs-faq-item {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: 12px; padding: .2rem .4rem;
}
.ngs-faq-item summary { cursor: pointer; padding: .85rem .7rem; font-weight: 600; list-style: none; }
.ngs-faq-item summary::-webkit-details-marker { display: none; }
.ngs-faq-item summary::before { content: '+'; color: var(--ng-green-bright); font-weight: 800; margin-right: .6rem; }
.ngs-faq-item[open] summary::before { content: '–'; }
.ngs-faq-body { padding: 0 .7rem .85rem; color: var(--ng-muted); font-size: .9rem; }

.ngs-authwrap { display: flex; justify-content: center; padding: 1rem 0; }
.ngs-authcard {
  width: 100%; max-width: 30rem;
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 2rem 1.75rem;
}
.ngs-authcard .ngs-form { max-width: none; }
.ngs-auth-alt { margin: 1.1rem 0 0; font-size: .86rem; color: var(--ng-muted); text-align: center; }

.ngs-cart-page {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 2rem; min-height: 120px;
}

/* ========================================================================= */
/* 6. Footer                                                                 */
/* ========================================================================= */
.ngs-footer { border-top: 1px solid var(--ng-navy); background: var(--ng-navy); margin-top: auto; }
.ngs-footer-inner {
  max-width: var(--ng-maxw); margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem;
  display: grid; gap: 1.75rem; grid-template-columns: 2fr 1fr 1fr 1fr;
}
.ngs-footer-brand img { height: 44px; width: auto; display: block; margin-bottom: .9rem; }
.ngs-footer-brand p { margin: 0 0 1rem; color: var(--ng-muted); font-size: .88rem; line-height: 1.55; max-width: 24rem; }
.ngs-social-foot a { width: 34px; height: 34px; border: 1px solid var(--ng-line); }
.ngs-footer-col { display: flex; flex-direction: column; gap: .5rem; }
.ngs-footer-col h4 { margin: 0 0 .4rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ng-blue-bright); }
.ngs-footer-col a { color: var(--ng-muted); font-size: .9rem; }
.ngs-footer-col a:hover { color: var(--ng-green-bright); }
.ngs-footer-bar {
  max-width: var(--ng-maxw); margin: 0 auto; padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--ng-line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--ng-muted); font-size: .8rem;
}
.ngs-footer-bar strong { color: var(--ng-ink); }

/* ========================================================================= */
/* 7. Responsive collapse                                                    */
/* ========================================================================= */
@media (max-width: 1080px) {
  /* Fold the floating columns below the content; cart stays reachable. */
  .ngs-shell.has-left,
  .ngs-shell.has-cart,
  .ngs-shell.has-left.has-cart { grid-template-columns: minmax(0, 1fr); }
  .ngs-left, .ngs-cart { position: static; max-height: none; }
  .ngs-left { order: 2; }
  .ngs-center { order: 1; }
  .ngs-cart { order: 3; }
}

@media (max-width: 860px) {
  .ngs-burger { display: flex; }
  .ngs-nav {
    position: fixed; inset: var(--ng-header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--ng-line);
    padding: .5rem 1rem 1rem; max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .ngs-navtoggle:checked ~ .ngs-nav { max-height: 70vh; }
  .ngs-nav a { padding: .8rem .6rem; border-bottom: 1px solid var(--ng-line-2); }
  .ngs-social { display: none; }        /* social kept in footer on mobile */
  .ngs-acct span { display: none; }
  .ngs-acct-reg { display: none; }
  .ngs-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .ngs-footer-inner { grid-template-columns: 1fr; }
  .ngs-header-inner { gap: .6rem; padding: .5rem .85rem; }
  .ngs-brand img { height: 42px; }
}

/* ========================================================================= */
/* 8. Home page (ngh-*) — additive; hero, spotlight, sections, media, CTA    */
/* ========================================================================= */
.ngh-h2 {
  margin: .2rem 0 .5rem; font-size: clamp(1.35rem, 2.6vw, 1.95rem); font-weight: 800; line-height: 1.12;
  color: var(--ng-ink);
}
.ngh-body { margin: .3rem 0 0; color: var(--ng-muted); font-size: 1rem; line-height: 1.6; max-width: 44rem; }

/* Hero */
.ngh-hero { padding-top: .5rem; }
.ngh-hero-lead { max-width: 42rem; }
.ngh-hero-stats {
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .8rem 2rem;
}
.ngh-hero-stats li { display: flex; flex-direction: column; gap: .1rem; }
.ngh-hero-stats strong { color: var(--ng-green-bright); font-size: 1.05rem; }
.ngh-hero-stats span { color: var(--ng-muted); font-size: .82rem; }

/* Section rhythm */
.ngh-section { margin-top: 3rem; }
.ngh-section-head { margin-bottom: 1.4rem; }
.ngh-grid-2 { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Featured product spotlight */
.ngh-spotlight {
  margin-top: 2.8rem;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 1.75rem;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(59,111,224,0.10), transparent 60%),
    linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius);
  padding: 1.5rem; align-items: center;
}
.ngh-spotlight-media {
  position: relative; border-radius: 12px; min-height: 240px; overflow: hidden;
  background: linear-gradient(135deg, var(--ng-surface-2), #E7EEF8);
  border: 1px solid var(--ng-line-2);
  display: flex; align-items: center; justify-content: center;
}
.ngh-spotlight-badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  background: var(--ng-green-bright); color: #FFFFFF; font-weight: 800; font-size: .7rem;
  letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px;
}
/* Stylised PCB motif (pure CSS, no asset needed). */
.ngh-board {
  width: 72%; height: 62%; border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(59,111,224,0.25) 49.5% 50.5%, transparent 51%) 0 0 / 28px 28px,
    linear-gradient(0deg, transparent 49%, rgba(59,111,224,0.18) 49.5% 50.5%, transparent 51%) 0 0 / 28px 28px,
    linear-gradient(135deg, #1E3A8A, #15285f);
  border: 1px solid rgba(59,111,224,0.4);
  box-shadow: inset 0 0 40px rgba(59,111,224,0.12), 0 10px 30px rgba(0,0,0,0.4);
  position: relative;
}
.ngh-board::after {
  content: ''; position: absolute; inset: 18% 12%;
  border: 1px dashed rgba(59,111,224,0.5); border-radius: 4px;
}
.ngh-spotlight-body .ngs-eyebrow { margin-bottom: .3rem; }
.ngh-ticklist { list-style: none; margin: 1rem 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ngh-ticklist li { position: relative; padding-left: 1.6rem; color: var(--ng-ink); font-size: .92rem; }
.ngh-ticklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--ng-green-bright); font-weight: 800;
}
.ngh-spotlight-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.ngh-price { font-weight: 800; color: var(--ng-green-bright); font-size: 1rem; }

/* How it works — numbered steps */
.ngh-steps {
  list-style: none; margin: 0 0 1.2rem; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: none;
}
.ngh-step {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1.3rem 1.2rem;
}
.ngh-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: .7rem;
  background: linear-gradient(92deg, var(--ng-green), var(--ng-green-deep)); color: #FFFFFF;
  font-weight: 800; font-size: 1rem;
}
.ngh-step h3 { margin: 0 0 .35rem; font-size: 1.02rem; color: var(--ng-ink); }
.ngh-step p { margin: 0; color: var(--ng-muted); font-size: .9rem; line-height: 1.55; }

/* Why recycled — eco band */
.ngh-eco {
  background:
    radial-gradient(500px 280px at 85% 10%, rgba(30,58,138,0.14), transparent 60%),
    linear-gradient(180deg, var(--ng-surface-2), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1.8rem 1.5rem;
}
.ngh-eco-grid { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.ngh-eco-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ngh-eco-points li {
  border-left: 3px solid var(--ng-green); padding: .3rem 0 .3rem 1rem;
}
.ngh-eco-points h3 { margin: 0 0 .2rem; font-size: .98rem; color: var(--ng-green-bright); }
.ngh-eco-points p { margin: 0; color: var(--ng-muted); font-size: .9rem; line-height: 1.5; }

/* Kit-sets vs components */
.ngh-choice {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1.4rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
}
.ngh-choice-feature { border-color: var(--ng-green); box-shadow: 0 10px 30px rgba(59,111,224,0.08); }
.ngh-choice h3 { margin: .2rem 0 0; font-size: 1.1rem; color: var(--ng-ink); }
.ngh-choice p { margin: 0; color: var(--ng-muted); font-size: .92rem; line-height: 1.55; flex: 1; }

/* Media / social */
.ngh-media-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.ngh-embed-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--ng-radius); overflow: hidden;
  border: 1px solid var(--ng-line); background: #000;
}
.ngh-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ngh-video-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  aspect-ratio: 16 / 9; border-radius: var(--ng-radius);
  background: linear-gradient(135deg, var(--ng-surface-2), var(--ng-bg)); border: 1px solid var(--ng-line);
  color: var(--ng-ink);
}
.ngh-video-play { color: #FF0000; } .ngh-video-play svg { width: 60px; height: 60px; }
.ngh-video-link-label { font-weight: 700; }
.ngh-media-side h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--ng-ink); }
.ngh-media-side p { margin: 0 0 1rem; color: var(--ng-muted); font-size: .92rem; line-height: 1.55; }
.ngh-social-row { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; gap: .4rem; }
.ngh-social-row a {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  color: var(--ng-muted); border-radius: 10px; border: 1px solid var(--ng-line);
}
.ngh-social-row a:hover { color: var(--ng-green-bright); border-color: var(--ng-green); }
.ngh-social-row svg { width: 19px; height: 19px; }

/* Closing CTA band */
.ngh-ctaband {
  margin-top: 3rem; text-align: center; padding: 2.4rem 1.5rem;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(59,111,224,0.12), transparent 65%),
    linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius);
}
.ngh-ctaband .ngh-body { margin-inline: auto; }
.ngh-ctaband-row { justify-content: center; margin-top: 1.4rem; }

/* Home responsive */
@media (max-width: 900px) {
  .ngh-spotlight { grid-template-columns: 1fr; }
  .ngh-eco-grid { grid-template-columns: 1fr; }
  .ngh-media-grid { grid-template-columns: 1fr; }
  .ngh-spotlight-media { min-height: 180px; }
}

/* ========================================================================= */
/* 9. Shop catalogue + product detail (ngs-shop / ngs-pd) — additive          */
/* ========================================================================= */

/* Search + sort toolbar */
.ngs-shopbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; margin: 0 0 1.2rem;
}
.ngs-search { display: flex; gap: .5rem; flex: 1; min-width: 200px; max-width: 30rem; }
.ngs-search input {
  flex: 1; font: inherit; color: var(--ng-ink);
  background: var(--ng-surface-2); border: 1px solid var(--ng-line); border-radius: 10px;
  padding: .55rem .75rem;
}
.ngs-search input:focus { outline: 2px solid var(--ng-green); outline-offset: 1px; border-color: transparent; }
.ngs-sort { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ng-muted); font-weight: 600; }
.ngs-sort select, .ngs-radio-row select, .ngs-interest-form select {
  font: inherit; color: var(--ng-ink); background: var(--ng-surface-2);
  border: 1px solid var(--ng-line); border-radius: 10px; padding: .5rem .7rem;
}
.ngs-result-count { margin: 0 0 .9rem; font-size: .82rem; color: var(--ng-muted); }

/* Left-column filter extras */
.ngs-count {
  float: right; font-size: .74rem; color: var(--ng-muted);
  background: var(--ng-line-2); border-radius: 999px; padding: 0 .45rem; min-width: 1.4rem; text-align: center;
}
.ngs-filter-list a.is-active .ngs-count { color: var(--ng-green-bright); }
.ngs-left-empty { margin: 0; font-size: .82rem; color: var(--ng-muted); line-height: 1.5; }

/* Product cards: tags + stock + image + kit distinction */
.ngs-product.is-kit { border-color: var(--ng-green); box-shadow: 0 8px 26px rgba(59,111,224,0.07); }
.ngs-product-media { overflow: hidden; display: block; }
.ngs-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ngs-product-title a { color: var(--ng-ink); }
.ngs-product-title a:hover { color: var(--ng-green-bright); }
.ngs-product-tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ngs-tag {
  font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 999px; border: 1px solid var(--ng-line);
}
.ngs-tag-kit { color: #FFFFFF; background: var(--ng-green-bright); border-color: transparent; }
.ngs-tag-cmp { color: var(--ng-muted); background: var(--ng-line-2); }
.ngs-stock { font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.ngs-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ngs-stock.is-ok  { color: #1F9D57; }
.ngs-stock.is-low { color: #FFC24B; }
.ngs-stock.is-out { color: #FF6B5E; }
.ngs-kit-note { color: var(--ng-green); font-size: .74rem; }

/* Empty state */
.ngs-empty {
  text-align: center; padding: 3rem 1.5rem;
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px dashed var(--ng-line); border-radius: var(--ng-radius);
}
.ngs-empty h3 { margin: 0 0 .5rem; color: var(--ng-green); }
.ngs-empty p { margin: 0; color: var(--ng-muted); }

/* Breadcrumbs */
.ngs-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--ng-muted); margin-bottom: 1rem; }
.ngs-crumbs a { color: var(--ng-muted); }
.ngs-crumbs a:hover { color: var(--ng-green-bright); }
.ngs-crumbs-here { color: var(--ng-ink); }

/* Product detail layout */
.ngs-pd { display: grid; gap: 1.8rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.ngs-pd-gallery { display: flex; flex-direction: column; gap: .7rem; }
.ngs-pd-main {
  aspect-ratio: 4 / 3; border-radius: var(--ng-radius); overflow: hidden;
  border: 1px solid var(--ng-line); background: linear-gradient(135deg, var(--ng-surface-2), var(--ng-bg));
  display: flex; align-items: center; justify-content: center;
}
.ngs-pd-main img { width: 100%; height: 100%; object-fit: cover; }
.ngs-pd-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ngs-pd-noimg .ngh-board { width: 70%; height: 66%; }
.ngs-pd-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.ngs-pd-thumb {
  width: 68px; height: 56px; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer;
  border: 1px solid var(--ng-line); background: var(--ng-surface-2);
}
.ngs-pd-thumb.is-active { border-color: var(--ng-green); outline: 1px solid var(--ng-green); }
.ngs-pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ngs-pd-title { margin: .5rem 0 .2rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.ngs-pd-sku { margin: 0 0 .6rem; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ng-muted); }
.ngs-pd-short { font-size: 1rem; }
.ngs-pd-price { font-size: 1.7rem; font-weight: 800; color: var(--ng-green-bright); margin: .8rem 0 .4rem; }
.ngs-pd-cur { font-size: .9rem; font-weight: 600; color: var(--ng-muted); }
.ngs-pd-kitnote, .ngs-pd-lowhint { font-size: .84rem; color: var(--ng-muted); line-height: 1.5; margin: .2rem 0 .6rem; }
.ngs-pd-lowhint a { color: var(--ng-green-bright); }
.ngs-pd-buy { display: flex; align-items: flex-end; gap: .8rem; margin: 1rem 0 .4rem; flex-wrap: wrap; }
.ngs-qty { display: flex; flex-direction: column; gap: .3rem; font-size: .78rem; font-weight: 600; color: var(--ng-muted); }
.ngs-qty input {
  width: 5rem; font: inherit; color: var(--ng-ink); background: var(--ng-surface-2);
  border: 1px solid var(--ng-line); border-radius: 10px; padding: .6rem .7rem;
}
.ngs-pd-add { padding: .7rem 1.6rem; }

/* Product detail content sections */
.ngs-pd-section { margin-top: 2.4rem; }
.ngs-pd-section .ngh-h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.ngs-pd-sectlead { margin: .2rem 0 1rem; color: var(--ng-muted); font-size: .92rem; }
.ngs-pd-desc { color: var(--ng-ink); font-size: .95rem; line-height: 1.65; max-width: 48rem; }

/* Specs table */
.ngs-specs { width: 100%; max-width: 48rem; border-collapse: collapse; font-size: .9rem; }
.ngs-specs th, .ngs-specs td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--ng-line-2); vertical-align: top; }
.ngs-specs th { color: var(--ng-green); font-weight: 700; width: 38%; }
.ngs-specs td { color: var(--ng-ink); }

/* Kit component list (bundle -> components) */
.ngs-kit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; max-width: 52rem; }
.ngs-kit-item {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: 12px; padding: .7rem .9rem;
}
.ngs-kit-qty { font-weight: 800; color: var(--ng-green-bright); min-width: 2rem; }
.ngs-kit-name { color: var(--ng-ink); font-weight: 600; flex: 1; min-width: 10rem; }
.ngs-kit-name:hover { color: var(--ng-green-bright); }
.ngs-kit-sku { font-size: .74rem; color: var(--ng-muted); }
.ngs-kit-stock { margin-left: auto; }

/* Register-interest / pre-order */
.ngs-interest { max-width: 52rem; }
.ngs-interest-form { max-width: none; }
.ngs-form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.ngs-form-row > label { flex: 1; min-width: 12rem; }
.ngs-radio-row { flex-direction: row !important; align-items: center; gap: .6rem; }
.ngs-radio-row span { color: var(--ng-muted); }
.ngs-note { border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; margin: 0 0 1rem; border: 1px solid var(--ng-line); }
.ngs-note-ok  { background: rgba(59,111,224,0.10); border-color: var(--ng-green); color: var(--ng-ink); }
.ngs-note-err { background: rgba(255,107,94,0.10); border-color: #FF6B5E; color: #FFD7D2; }

/* Related / cross-sell reuse the catalogue grid */
.ngs-related { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Add-to-cart confirmation toast */
.ng-toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 1rem);
  z-index: 60; background: linear-gradient(92deg, var(--ng-green), var(--ng-green-deep));
  color: #FFFFFF; font-weight: 700; font-size: .9rem; padding: .7rem 1.2rem; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4); opacity: 0; transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.ng-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Client-side mini-cart line items (right-docked dock + /cart page) */
.ng-cart-line { padding: .7rem 0; border-bottom: 1px solid var(--ng-line-2); }
.ng-cart-line:last-child { border-bottom: 0; }
.ng-cart-line-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.ng-cart-line-name { color: var(--ng-ink); font-size: .88rem; font-weight: 600; flex: 1; min-width: 8rem; }
.ng-cart-line-name:hover { color: var(--ng-green-bright); }
.ng-cart-line-tag { font-size: .62rem; font-weight: 800; text-transform: uppercase; color: #FFFFFF; background: var(--ng-green-bright); padding: .1rem .4rem; border-radius: 999px; }
.ng-cart-line-price { color: var(--ng-green-bright); font-weight: 700; font-size: .86rem; }
.ng-cart-line-qty { display: flex; align-items: center; gap: .4rem; margin-top: .45rem; }
.ng-qbtn {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--ng-line);
  background: var(--ng-surface-2); color: var(--ng-ink); cursor: pointer; font-size: 1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.ng-qbtn:hover { border-color: var(--ng-green); color: var(--ng-green-bright); }
.ng-cart-rm { margin-left: auto; background: none; border: 0; color: var(--ng-muted); font-size: .76rem; cursor: pointer; }
.ng-cart-rm:hover { color: #FF6B5E; }
[data-ng-cart-count].is-empty { opacity: .6; }

/* Shop responsive */
@media (max-width: 900px) {
  .ngs-pd { grid-template-columns: 1fr; }
  .ngs-shopbar { flex-direction: column; align-items: stretch; }
  .ngs-search { max-width: none; }
}

/* ========================================================================= */
/* 8. Cart — mini-cart (docked/drawer), full cart page, feedback             */
/*    Built by the cart job (2978). Supersedes the frame-only placeholder.   */
/* ========================================================================= */

/* --- Mini-cart line (thumbnail + info + stepper) ------------------------- */
.ng-cart-group + .ng-cart-group { margin-top: .25rem; }
.ng-cart-group-head {
  margin: .5rem 0 .3rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ng-green); font-weight: 800;
}
.ng-cart-line {
  display: grid; grid-template-columns: 54px 1fr; gap: .7rem;
  padding: .75rem 0; border-bottom: 1px solid var(--ng-line-2);
  animation: ngLineIn .25s ease both;
}
.ng-cart-line:last-child { border-bottom: 0; }
@keyframes ngLineIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.ng-cart-thumb {
  width: 54px; height: 54px; border-radius: 10px; overflow: hidden; display: block;
  border: 1px solid var(--ng-line-2); background: linear-gradient(135deg, var(--ng-surface-2), var(--ng-bg));
  flex: none;
}
.ng-cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ng-cart-thumb-ph { display: flex; align-items: center; justify-content: center; }
.ng-cart-thumb-ph .ngh-board { width: 70%; height: 60%; display: block; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(59,111,224,.25) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, var(--ng-green-deep), var(--ng-navy-logo));
  opacity: .8; }

.ng-cart-line-info { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.ng-cart-line-name { color: var(--ng-ink); font-size: .86rem; font-weight: 600; line-height: 1.3; }
.ng-cart-line-name:hover { color: var(--ng-green-bright); }
.ng-cart-line-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.ng-cart-line-cat { font-size: .68rem; color: var(--ng-muted); }
.ng-cart-line-tag { font-size: .58rem; font-weight: 800; text-transform: uppercase; color: #FFFFFF;
  background: var(--ng-green-bright); padding: .08rem .38rem; border-radius: 999px; }
.ng-cart-line-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .1rem; }
.ng-cart-line-price { color: var(--ng-green-bright); font-weight: 800; font-size: .9rem; white-space: nowrap; }
.ng-cart-rm { align-self: flex-start; background: none; border: 0; color: var(--ng-muted); font-size: .74rem; cursor: pointer; padding: 0; }
.ng-cart-rm:hover { color: #FF6B5E; text-decoration: underline; }

/* Qty stepper (shared mini + full) */
.ng-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--ng-line);
  border-radius: 8px; overflow: hidden; background: var(--ng-surface-2); }
.ng-qbtn {
  width: 28px; height: 28px; border: 0; background: transparent; color: var(--ng-ink);
  cursor: pointer; font-size: 1.05rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.ng-qbtn:hover { background: var(--ng-line-2); color: var(--ng-green-bright); }
.ng-qty-input {
  width: 34px; height: 28px; border: 0; border-left: 1px solid var(--ng-line); border-right: 1px solid var(--ng-line);
  background: transparent; color: var(--ng-ink); text-align: center; font: inherit; font-size: .84rem; -moz-appearance: textfield;
}
.ng-qty-input:focus { outline: 2px solid var(--ng-green); outline-offset: -2px; }

/* Kit component disclosure */
.ng-cart-kit { font-size: .74rem; }
.ng-cart-kit summary { cursor: pointer; color: var(--ng-green); list-style: none; font-weight: 600; }
.ng-cart-kit summary::-webkit-details-marker { display: none; }
.ng-cart-kit summary::before { content: '▸ '; color: var(--ng-green-bright); }
.ng-cart-kit[open] summary::before { content: '▾ '; }
.ng-cart-kit ul { margin: .35rem 0 0; padding: 0 0 0 .9rem; list-style: none; display: flex; flex-direction: column; gap: .2rem; color: var(--ng-muted); }
.ng-cart-kit-qty { color: var(--ng-green-bright); font-weight: 700; }
.ng-cart-kit-sku { color: var(--ng-muted); opacity: .7; font-size: .68rem; }

/* Stock warning on a line */
.ng-cart-warn { margin: 0; font-size: .72rem; color: #FFC46B; }
.ng-cart-warn::before { content: '⚠ '; }

/* Mini-cart footer additions */
.ngs-cart-foot-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .55rem; }
.ngs-cart-foot-row .ngs-cart-note { margin: 0; text-align: right; }
.ng-cart-clear { background: none; border: 0; color: var(--ng-muted); font-size: .76rem; cursor: pointer; padding: 0; text-decoration: underline; }
.ng-cart-clear:hover { color: #FF6B5E; }
.ngs-btn.is-disabled { opacity: .5; pointer-events: none; }
.ngs-cart-empty-wrap { min-height: 70px; display: flex; align-items: center; }
.ngs-cart-close { display: none; background: none; border: 0; color: var(--ng-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.ngs-cart-close:hover { color: var(--ng-ink); }

/* --- Full cart page ------------------------------------------------------ */
.ngs-cartpage-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.ngs-cartpage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.ngs-cartpage-count { color: var(--ng-muted); font-size: .88rem; }
.ngs-cartpage-group + .ngs-cartpage-group { margin-top: 1rem; }
.ngs-cartpage-grouphead { margin: 1.1rem 0 .4rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ng-green); }

.ngs-cartrow {
  display: grid; grid-template-columns: 90px minmax(0,1fr) auto auto; gap: 1rem; align-items: start;
  padding: 1.1rem 0; border-bottom: 1px solid var(--ng-line-2);
  animation: ngLineIn .25s ease both;
}
.ngs-cartrow:last-child { border-bottom: 0; }
.ngs-cartrow-media { width: 90px; height: 90px; border-radius: 10px; overflow: hidden; display: block;
  border: 1px solid var(--ng-line-2); background: linear-gradient(135deg, var(--ng-surface-2), var(--ng-bg)); flex: none; }
.ngs-cartrow-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ngs-cartrow-media.ng-cart-thumb-ph { display: flex; align-items: center; justify-content: center; }
.ngs-cartrow-main { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.ngs-cartrow-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ngs-cartrow-cat { font-size: .72rem; color: var(--ng-muted); }
.ngs-cartrow-name { color: var(--ng-ink); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.ngs-cartrow-name:hover { color: var(--ng-green-bright); }
.ngs-cartrow-sku { margin: 0; font-size: .74rem; color: var(--ng-muted); letter-spacing: .04em; }
.ngs-cartrow-qty { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.ngs-cartrow-unit { font-size: .72rem; color: var(--ng-muted); }
.ngs-cartrow-line { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; min-width: 5rem; }
.ngs-cartrow-total { font-weight: 800; color: var(--ng-green-bright); font-size: 1rem; }

/* Order summary */
.ngs-ordersummary {
  position: sticky; top: calc(var(--ng-header-h) + 1rem);
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1.3rem;
}
.ngs-ordersummary h3 { margin: 0 0 .9rem; font-size: 1rem; color: var(--ng-green); }
.ngs-ordersummary-lines { margin: 0 0 .8rem; display: flex; flex-direction: column; gap: .55rem; }
.ngs-ordersummary-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ngs-ordersummary-lines dt { color: var(--ng-muted); font-size: .88rem; margin: 0; }
.ngs-ordersummary-lines dd { margin: 0; color: var(--ng-ink); font-size: .9rem; text-align: right; }
.ngs-ordersummary-total { display: flex; align-items: baseline; justify-content: space-between;
  padding-top: .8rem; margin-bottom: 1rem; border-top: 1px solid var(--ng-line); }
.ngs-ordersummary-total span { color: var(--ng-muted); font-weight: 600; }
.ngs-ordersummary-total strong { font-size: 1.4rem; color: var(--ng-ink); }
.ngs-ordersummary-warn { margin: 0 0 .8rem; }
.ngs-cartpage-continue { display: block; text-align: center; margin-top: .7rem; font-size: .84rem; color: var(--ng-muted); }
.ngs-cartpage-continue:hover { color: var(--ng-green-bright); }
.ngs-ordersummary-note { margin: .9rem 0 0; font-size: .72rem; color: var(--ng-muted); text-align: center; }

/* Empty full-page cart */
.ngs-cart-empty-full {
  text-align: center; padding: 3rem 1.5rem; max-width: 34rem; margin: 0 auto;
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius);
}
.ngs-cart-empty-art { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--ng-green); opacity: .7; }
.ngs-cart-empty-art svg { width: 100%; height: 100%; }
.ngs-cart-empty-full h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.ngs-cart-empty-full p { margin: 0 0 1.3rem; color: var(--ng-muted); }
.ngs-cart-empty-full .ngs-cta-row { justify-content: center; }

/* --- Add-to-cart feedback: button bump + fly dot ------------------------- */
.ngs-cartbtn { position: relative; transition: transform .15s ease; }
.ngs-cartbtn.is-bump { animation: ngBump .5s ease; }
@keyframes ngBump { 0%,100% { transform: none; } 30% { transform: scale(1.22); } 55% { transform: scale(.94); } }
[data-ng-add-to-cart].is-loading { opacity: .6; pointer-events: none; }
.ng-fly {
  position: fixed; z-index: 90; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ng-green-bright); box-shadow: 0 0 14px rgba(59,111,224,.7); pointer-events: none;
  transition: transform .7s cubic-bezier(.5,-0.3,.4,1), opacity .7s ease;
}
.ng-toast-warn { background: linear-gradient(92deg, #E6A23C, #C77D1A); color: #1a0f00; }

/* --- Drawer (off-canvas) on narrow viewports ----------------------------- */
.ngs-cart-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(11,16,32,.5);
  opacity: 0; transition: opacity .3s ease;
}
body.ng-cart-open .ngs-cart-backdrop { opacity: 1; }

@media (max-width: 1080px) {
  /* The dock becomes a right slide-in drawer toggled by the header cart button. */
  .ngs-shell.has-cart,
  .ngs-shell.has-left.has-cart { grid-template-columns: minmax(0, 1fr); }
  .ngs-shell.has-left { grid-template-columns: minmax(0, 1fr); }

  .ngs-cart {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
    width: min(380px, 88vw); max-height: 100vh; border-radius: 0;
    border-left: 1px solid var(--ng-line); box-shadow: -20px 0 50px rgba(0,0,0,.5);
    transform: translateX(104%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  body.ng-cart-open .ngs-cart { transform: none; }
  .ngs-cart-close { display: inline-flex; align-items: center; }
  .ngs-left { position: static; max-height: none; order: 2; }
  .ngs-center { order: 1; }
}

@media (max-width: 760px) {
  .ngs-cartpage-grid { grid-template-columns: 1fr; }
  .ngs-ordersummary { position: static; }
  .ngs-cartrow { grid-template-columns: 64px minmax(0,1fr); grid-auto-rows: auto; row-gap: .6rem; }
  .ngs-cartrow-media { width: 64px; height: 64px; }
  .ngs-cartrow-qty { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: .8rem; }
  .ngs-cartrow-line { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
}

/* ==========================================================================
 * CHECKOUT (multi-step) + order confirmation — added by the checkout job.
 * ======================================================================== */
.ngc-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2rem;
  align-items: start;
}
.ngc-main { min-width: 0; }

/* Progress indicator */
.ngc-steps {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 0 0 1.6rem; padding: 0;
  counter-reset: ngc;
}
.ngc-steps li {
  flex: 1; min-width: 5.5rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  color: var(--ng-muted);
  padding: .55rem .4rem .55rem .4rem;
  border-top: 2px solid var(--ng-line);
  text-align: center;
  transition: color .2s, border-color .2s;
}
.ngc-steps li.is-active { color: var(--ng-green-bright); border-top-color: var(--ng-green); }
.ngc-steps li.is-done { color: var(--ng-ink); border-top-color: var(--ng-green-deep); }

/* A step panel */
.ngc-step {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line);
  border-radius: var(--ng-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}
.ngc-step-title { margin: 0 0 1.1rem; font-size: 1.15rem; color: var(--ng-green); }
.ngc-sub { margin: 1.1rem 0 .7rem; font-size: .95rem; color: var(--ng-ink); }
.ngc-step .ngs-form { max-width: none; }
.ngc-step-nav { display: flex; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.ngc-step-nav .ngs-btn { flex: 0 0 auto; }

/* Review list */
.ngc-review { display: flex; flex-direction: column; gap: .2rem; }
.ngc-review-row {
  display: grid; grid-template-columns: 2.4rem minmax(0,1fr) auto;
  gap: .7rem; align-items: baseline;
  padding: .5rem 0; border-bottom: 1px solid var(--ng-line-2);
}
.ngc-review-qty { color: var(--ng-muted); font-weight: 700; font-size: .85rem; }
.ngc-review-name { color: var(--ng-ink); font-size: .92rem; }
.ngc-review-name .ngs-tag { margin-left: .4rem; font-size: .62rem; vertical-align: middle; }
.ngc-review-sku { display: block; color: var(--ng-muted); font-size: .72rem; margin-top: .15rem; }
.ngc-review-price { color: var(--ng-ink); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.ngc-review-edit { margin: .9rem 0 0; font-size: .82rem; }

/* Radio option cards (delivery, payment mode, plans) */
.ngc-options { display: flex; flex-direction: column; gap: .7rem; }
.ngc-option {
  display: flex; align-items: center; gap: .9rem;
  border: 1px solid var(--ng-line); border-radius: 12px;
  padding: .85rem 1rem; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ngc-option:hover { border-color: var(--ng-green); }
.ngc-option input { accent-color: var(--ng-green); width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.ngc-option:has(input:checked) { border-color: var(--ng-green); background: rgba(59,111,224,0.06); }
.ngc-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ngc-option-title { font-weight: 700; color: var(--ng-ink); font-size: .92rem; }
.ngc-option-desc { color: var(--ng-muted); font-size: .8rem; line-height: 1.45; }
.ngc-option-price { font-weight: 700; color: var(--ng-green-bright); font-size: .9rem; white-space: nowrap; }
.ngc-option.is-disabled { opacity: .5; cursor: not-allowed; }
.ngc-option.is-disabled:hover { border-color: var(--ng-line); }

.ngc-plans { margin-top: 1.1rem; }
.ngc-plans .ngc-option { margin-bottom: .6rem; }

/* Placeholder (test) payment provider */
.ngc-payprovider { margin-top: 1.3rem; }
.ngc-testpay {
  border: 1px dashed var(--ng-line); border-radius: 12px;
  padding: 1rem 1.1rem; background: var(--ng-surface-2);
}
.ngc-testpay .ngs-chip { margin-bottom: .5rem; }
.ngc-testpay p { margin: 0; color: var(--ng-muted); font-size: .84rem; line-height: 1.5; }

.ngc-check { display: flex; align-items: center; gap: .6rem; margin: 1rem 0; font-size: .86rem; color: var(--ng-ink); cursor: pointer; }
.ngc-check input { accent-color: var(--ng-green); width: 1.05rem; height: 1.05rem; }
.ngc-note-field { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--ng-muted); margin-top: 1.2rem; }
.ngc-note-field textarea {
  background: var(--ng-bg); border: 1px solid var(--ng-line); color: var(--ng-ink);
  border-radius: 10px; padding: .6rem .7rem; font: inherit; resize: vertical;
}
.ngc-note-field textarea:focus { outline: 2px solid var(--ng-green); outline-offset: 1px; border-color: transparent; }

.ngc-place-msg { margin: .8rem 0 0; font-size: .86rem; }
.ngc-place-msg.is-err { color: #FFD7D2; }

/* Inline sign-in */
.ngc-signin { margin-bottom: 1rem; border: 1px solid var(--ng-line); border-radius: 10px; padding: .4rem .9rem; }
.ngc-signin summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--ng-green); padding: .4rem 0; }
.ngc-signin-body { padding: .6rem 0 .8rem; }
.ngc-signin-body .ngs-form-row { margin-bottom: .7rem; }
.ngc-signin-msg { display: inline-block; margin-left: .7rem; font-size: .8rem; color: #FFD7D2; }

/* Pre-order / register-interest block */
.ngc-preorder-block { margin-bottom: 1.8rem; }
.ngc-preorder-item {
  border: 1px solid var(--ng-line); border-radius: 12px;
  padding: 1rem 1.1rem; margin-top: .8rem; background: var(--ng-surface);
}
.ngc-preorder-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.ngc-preorder-form { max-width: none; }

/* Summary sticky + plan box */
.ngc-summary { position: sticky; top: calc(var(--ng-header-h) + 1rem); }
.ngc-summary-plan { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--ng-line); }
.ngc-summary-plan-line { margin: 0 0 .25rem; font-size: .92rem; color: var(--ng-ink); }
.ngc-summary-plan-line strong { color: var(--ng-green-bright); }
.ngc-summary-plan-sub { margin: 0; font-size: .78rem; color: var(--ng-muted); }

/* Confirmation page */
.ngc-confirm { max-width: 60rem; margin: 0 auto; }
.ngc-confirm-head { text-align: center; margin-bottom: 2rem; }
.ngc-confirm-head .ngs-lead { margin-inline: auto; }
.ngc-confirm-tick {
  width: 68px; height: 68px; margin: 0 auto 1rem;
  border-radius: 50%; display: grid; place-items: center;
  color: #FFFFFF; background: linear-gradient(180deg, var(--ng-green-bright), var(--ng-green-deep));
}
.ngc-confirm-tick svg { width: 34px; height: 34px; }
.ngc-confirm-status { margin: .6rem 0 0; font-size: .85rem; color: var(--ng-muted); }
.ngc-confirm-grid { display: grid; grid-template-columns: minmax(0,1fr) 20rem; gap: 1.6rem; align-items: start; }
.ngc-confirm-items {
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius); padding: 1.4rem;
}
.ngc-confirm-items .ngh-h2 { margin-top: 0; }
.ngc-confirm-totals { margin-top: 1rem; }
.ngc-confirm-side { display: flex; flex-direction: column; gap: 1rem; }
.ngc-confirm-box {
  background: var(--ng-surface-2); border: 1px solid var(--ng-line);
  border-radius: 12px; padding: 1.1rem 1.2rem;
}
.ngc-confirm-box h3 { margin: 0 0 .7rem; font-size: .95rem; color: var(--ng-green); }
.ngc-addr { margin: 0; font-size: .85rem; line-height: 1.6; color: var(--ng-ink); }
.ngc-plan-summary { margin: 0 0 .7rem; font-size: .84rem; color: var(--ng-muted); }
.ngc-txn { margin: 0 0 .4rem; font-size: .82rem; color: var(--ng-ink); }
.ngc-txn-ref { color: var(--ng-muted); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .76rem; }

/* Instalment schedule table */
.ngc-schedule { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ngc-schedule th, .ngc-schedule td { text-align: left; padding: .4rem .35rem; border-bottom: 1px solid var(--ng-line-2); }
.ngc-schedule th { color: var(--ng-muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.ngc-schedule td { color: var(--ng-ink); }
.ngc-confirm-cta { justify-content: center; margin-top: 2rem; }

@media (max-width: 880px) {
  .ngc-wrap { grid-template-columns: 1fr; }
  .ngc-summary { position: static; order: -1; }
  .ngc-confirm-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
 * SUPPORT PAGES — FAQ (grouped + search), Knowledge base / how-to, Contact.
 * Dark-eco palette; reuses .ngs-card / .ngs-faq / .ngs-form primitives.
 * ======================================================================== */

/* --- FAQ: search + grouped accordion ------------------------------------ */
.ngs-faqsearch { max-width: 48rem; margin-bottom: 1.4rem; }
.ngf-search { max-width: none; }
.ngf-search input { width: 100%; }
.ngf-noresults { margin: .7rem 0 0; font-size: .9rem; color: var(--ng-muted); }
.ngf-wrap { display: flex; flex-direction: column; gap: 1.6rem; }
.ngf-cat { max-width: 48rem; }
.ngf-cat-head {
  margin: 0 0 .7rem; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ng-green-bright); font-weight: 800;
}
.ngf-stillstuck {
  margin-top: 1.8rem; max-width: 48rem; padding: 1rem 1.1rem; border-radius: var(--ng-radius);
  background: var(--ng-surface-2); border: 1px solid var(--ng-line); font-size: .9rem; color: var(--ng-muted);
}
.ngf-stillstuck p { margin: 0; }

/* --- Knowledge base: listing -------------------------------------------- */
.ngk-cat { margin-bottom: 2rem; scroll-margin-top: calc(var(--ng-header-h) + 1rem); }
.ngk-cat-head {
  margin: 0 0 .9rem; font-size: 1.15rem; color: var(--ng-ink);
  padding-bottom: .5rem; border-bottom: 1px solid var(--ng-line);
}
.ngk-card h3 { margin: 0 0 .4rem; }
.ngk-card h3 a { color: var(--ng-green); }
.ngk-card h3 a:hover { color: var(--ng-green-bright); }
.ngk-readmore { font-size: .82rem; font-weight: 700; }

/* --- Knowledge base: article detail ------------------------------------- */
.ngk-crumb { font-size: .8rem; color: var(--ng-muted); margin-bottom: 1rem; }
.ngk-crumb a { color: var(--ng-green); }
.ngk-crumb span { color: var(--ng-muted); }
.ngk-article { max-width: 52rem; }
.ngk-body { font-size: 1rem; line-height: 1.7; color: var(--ng-ink); }
.ngk-body h2 { margin: 1.8rem 0 .6rem; font-size: 1.25rem; color: var(--ng-green); }
.ngk-body h3 { margin: 1.4rem 0 .5rem; font-size: 1.05rem; color: var(--ng-ink); }
.ngk-body p  { margin: 0 0 1rem; color: var(--ng-muted); }
.ngk-body ul, .ngk-body ol { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--ng-muted); line-height: 1.7; }
.ngk-body li { margin-bottom: .35rem; }
.ngk-body strong { color: var(--ng-ink); }
.ngk-body a { color: var(--ng-green); text-decoration: underline; }
.ngk-body img { max-width: 100%; height: auto; border-radius: var(--ng-radius); border: 1px solid var(--ng-line); margin: .5rem 0 1.2rem; }
.ngk-body figure { margin: 0 0 1.4rem; }
.ngk-body figcaption { font-size: .8rem; color: var(--ng-muted); margin-top: .4rem; text-align: center; }
.ngk-callout {
  margin: 0 0 1.3rem; padding: .9rem 1.1rem; border-radius: var(--ng-radius);
  background: var(--ng-surface-2); border: 1px solid var(--ng-line);
  border-left: 3px solid var(--ng-green-bright); color: var(--ng-muted);
}
.ngk-callout strong { color: var(--ng-green-bright); }
/* Responsive 16:9 YouTube embed wrapper (used inside article bodies). */
.ngk-embed { position: relative; width: 100%; padding-top: 56.25%; margin: 0 0 1.4rem; border-radius: var(--ng-radius); overflow: hidden; border: 1px solid var(--ng-line); background: #000; }
.ngk-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ngk-article-foot { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--ng-line); }

/* --- Contact ------------------------------------------------------------- */
.ngs-contact { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.ngs-contact-form { min-width: 0; }
.ngs-contact-fields { max-width: none; }
.ngs-contact-fields textarea { resize: vertical; }
.ngs-field-opt { font-weight: 400; color: var(--ng-muted); opacity: .8; }
.ngs-field-err { display: block; margin-top: .3rem; font-size: .76rem; font-weight: 600; color: #ff8a73; }
.ngs-form label.has-err input, .ngs-form label.has-err textarea { outline: 2px solid #ff8a73; outline-offset: 1px; }
.ngs-alert { border-radius: var(--ng-radius); padding: 1rem 1.2rem; margin-bottom: 1.3rem; border: 1px solid var(--ng-line); }
.ngs-alert h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.ngs-alert p  { margin: 0 0 .5rem; color: var(--ng-muted); line-height: 1.6; }
.ngs-alert p:last-child { margin-bottom: 0; }
.ngs-alert-ok { background: rgba(59, 111, 224, 0.08); border-color: var(--ng-green); }
.ngs-alert-ok h2 { color: var(--ng-green-bright); }
.ngs-alert-ok .ngs-btn { margin-top: .4rem; }
.ngs-alert-err { background: rgba(255, 138, 115, 0.08); border-color: #ff8a73; }
.ngs-alert-err p { color: #ffb6a6; margin: 0; }
.ngs-contact-details {
  padding: 1.3rem 1.3rem; border-radius: var(--ng-radius);
  background: var(--ng-surface); border: 1px solid var(--ng-line);
}
.ngs-contact-details h2 { margin: 0 0 .9rem; font-size: 1rem; color: var(--ng-green); }
.ngs-contact-details h3 { margin: 1.3rem 0 .6rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ng-muted); }
.ngs-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.ngs-contact-list li { display: flex; flex-direction: column; gap: .1rem; font-size: .9rem; color: var(--ng-ink); }
.ngs-contact-k { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ng-muted); }
.ngs-contact-social { margin: 0; }
.ngs-contact-note { margin: 1.2rem 0 0; font-size: .82rem; color: var(--ng-muted); }

@media (max-width: 760px) {
  .ngs-contact { grid-template-columns: 1fr; }
}

/* ========================================================================== *
 * Media & videos page (/media): featured video + categorised YouTube gallery
 * + social integration (follow + share + feed placeholder). Dark eco theme.
 * ========================================================================== */
.ngm-featured {
  display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start; margin-bottom: 2rem;
}
.ngm-featured-side { display: flex; flex-direction: column; gap: .55rem; }
.ngm-featured-side .ngh-h2 { margin: .2rem 0; }
.ngm-featured-side > p { color: var(--ng-muted); font-size: .95rem; line-height: 1.6; margin: 0 0 .3rem; }
.ngm-featured-side .ngs-cta-row { margin-top: .2rem; }

.ngm-social-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  justify-content: space-between; margin: 0 0 2.4rem; padding: 1.3rem 1.5rem;
  border-radius: var(--ng-radius); border: 1px solid var(--ng-line);
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(30, 58, 138, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
}
.ngm-social-cta-text { flex: 1 1 320px; }
.ngm-social-cta-text .ngh-h2 { margin: .1rem 0 .3rem; }
.ngm-social-cta-text p { margin: 0; color: var(--ng-muted); font-size: .92rem; line-height: 1.55; }
.ngm-social-cta-row { margin: 0; }

.ngm-cat { margin-bottom: 2.4rem; scroll-margin-top: calc(var(--ng-header-h) + 1rem); }
.ngm-cat-head {
  font-size: 1.15rem; color: var(--ng-green-bright); margin: 0 0 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--ng-line);
}
.ngm-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ngm-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--ng-surface), var(--ng-bg-2));
  border: 1px solid var(--ng-line); border-radius: var(--ng-radius);
}
.ngm-card-media { background: #000; }
.ngm-card-media .ngh-embed-frame { border: 0; border-radius: 0; }
.ngm-card-media .ngh-video-link { border: 0; border-radius: 0; }
.ngm-card-media .ngs-video-thumb { margin: 0; border: 0; border-radius: 0; }
.ngm-card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ngm-card-body h3 { margin: 0; font-size: 1rem; color: var(--ng-ink); line-height: 1.35; }
.ngm-card-desc { margin: 0; font-size: .86rem; color: var(--ng-muted); line-height: 1.55; }

/* Share row (page + per-video) */
.ngm-share { display: flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .3rem; flex-wrap: wrap; }
.ngm-share-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ng-muted); margin-right: .1rem;
}
.ngm-share-btn {
  display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  color: var(--ng-muted); border-radius: 9px; border: 1px solid var(--ng-line);
  background: var(--ng-surface-2); cursor: pointer; padding: 0;
}
.ngm-share-btn:hover { color: var(--ng-green-bright); border-color: var(--ng-green); }
.ngm-share-btn svg { width: 16px; height: 16px; }
.ngm-copy.is-copied { color: var(--ng-green-bright); border-color: var(--ng-green); }

/* Social feed placeholder */
.ngm-feed { margin-bottom: 2.4rem; }
.ngm-feed-ph {
  border: 1px dashed var(--ng-line); border-radius: var(--ng-radius);
  padding: 1.6rem 1.5rem; text-align: center;
  background: linear-gradient(180deg, var(--ng-surface-2), var(--ng-bg));
}
.ngm-feed-ph p { color: var(--ng-muted); font-size: .92rem; line-height: 1.6; max-width: 40rem; margin: 0 auto .6rem; }
.ngm-feed-ph .ngh-social-row { justify-content: center; }

.ngm-crosslink { margin-top: 1rem; }

@media (max-width: 900px) {
  .ngm-featured { grid-template-columns: 1fr; }
}

/* ========================================================================== *
 * 10. LIGHT REVERSAL — global white header + footer (blue branding, bigger
 *     logo) + the WHOLE public site flipped to a light/white scheme with blue +
 *     green accents. Additive, high-specificity overrides layered over the dark
 *     theme above. Scoped to header/footer (global) + every public document
 *     (plain `body`, which beats the earlier base `body` by cascade order).
 *     The dark eco tokens stay defined above; this block re-points them light
 *     so every ngs-/ngh-/ngc-/ngk-/ngm- component recolours automatically.
 *     Admin is unaffected (admin.php loads admin.css, never theme.css).
 * ========================================================================== */

/* Taller header bar to carry the enlarged brand logo. */
:root { --ng-header-h: 104px; }

/* --- Header: white background, blue-on-white branding -------------------- */
.ngs-header {
  background: #ffffff;
  border-bottom: 1px solid #d7e1ee;
  backdrop-filter: none;
  box-shadow: 0 1px 10px rgba(30, 58, 138, 0.05);
}
/* Much bigger, clean brand logo (no green glow on white). */
.ngs-brand img { height: 72px; filter: none; margin-right: .6rem; }

.ngs-nav a { color: var(--ng-navy); }
.ngs-nav a:hover { color: var(--ng-blue-bright); background: rgba(59, 111, 224, 0.08); }
.ngs-nav a.is-active { color: var(--ng-blue-bright); background: rgba(59, 111, 224, 0.10); }

.ngs-social a { color: #5B6473; }
.ngs-social a:hover { color: var(--ng-blue-bright); background: rgba(59, 111, 224, 0.08); }

.ngs-acct { color: var(--ng-navy); border-color: #cdd9e8; }
.ngs-acct:hover { color: var(--ng-blue-bright); border-color: var(--ng-blue-bright); }
.ngs-acct-reg { color: var(--ng-blue-bright); border-color: transparent; }
.ngs-acct-reg:hover { color: var(--ng-navy); border-color: transparent; }

.ngs-cartbtn { color: var(--ng-navy); border-color: #cdd9e8; }
.ngs-cartbtn:hover { color: var(--ng-blue-bright); border-color: var(--ng-blue-bright); }
.ngs-cartbtn-count { background: var(--ng-blue-bright); color: #ffffff; }

.ngs-burger span { background: var(--ng-navy); }

/* Mobile nav dropdown: match the white header. */
@media (max-width: 860px) {
  .ngs-nav { background: #ffffff; border-bottom: 1px solid #d7e1ee; }
  .ngs-nav a { border-bottom: 1px solid #eef3f8; }
  .ngs-brand img { height: 58px; }
}

/* --- Footer: navy background, white text, bigger logo (matches landing) -- */
.ngs-footer {
  background: var(--ng-navy);
  border-top: 1px solid var(--ng-navy);
}
.ngs-footer-brand img { height: 92px; }
.ngs-footer-brand p { color: rgba(255, 255, 255, 0.78); }
.ngs-footer-col h4 { color: #FFFFFF; }
.ngs-footer-col a { color: rgba(255, 255, 255, 0.75); }
.ngs-footer-col a:hover { color: #FFFFFF; }
.ngs-social-foot a { color: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.25); }
.ngs-social-foot a:hover { color: #FFFFFF; border-color: #FFFFFF; }
.ngs-footer-bar { color: rgba(255, 255, 255, 0.65); border-top-color: rgba(255, 255, 255, 0.14); }
.ngs-footer-bar strong { color: #FFFFFF; }
.ngs-footer .ngs-chip { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.3); }

/* --- HOME page: flip the dark eco theme to light/white ------------------- *
 * Re-point the palette tokens to light values for the home document only, so
 * the existing home (ngh- / ngs-) components recolour automatically; accents stay
 * brand blue + green, nudged darker for legible contrast on white.          */
body {
  --ng-bg:        #F6F8FD;
  --ng-bg-2:      #ffffff;
  --ng-surface:   #ffffff;
  --ng-surface-2: #F6F8FD;
  --ng-ink:       #0B1020;
  --ng-muted:     #5B6473;
  --ng-line:      rgba(30, 58, 138, 0.14);
  --ng-line-2:    rgba(30, 58, 138, 0.08);
  --ng-blue-bright:  #3B6FE0;
  --ng-green-bright: #3B6FE0;
  color: var(--ng-ink);
  background:
    radial-gradient(1100px 600px at 50% -12%, rgba(59, 111, 224, 0.06), transparent 60%),
    radial-gradient(900px 540px at 88% 6%, rgba(30, 58, 138, 0.05), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #F6F8FD 62%, #EEF3FB 100%);
}
/* Keep headline gradients readable on white across every page: deeper stops. */
body .ngs-h1 {
  background: linear-gradient(92deg, var(--ng-green-deep), var(--ng-green-bright), var(--ng-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- Readability fixes for status/error/warn text on white -------------- *
 * A handful of component colours were tuned as light-on-dark (pale pink/amber
 * error + warn text, bright-green accents). On the light scheme they wash out,
 * so re-point them to darker, WCAG-legible tones. Scoped to the public shell
 * classes only (these never appear in the admin area).                      */
.ngs-note-err,
.ngc-place-msg.is-err,
.ngc-signin-msg { color: #B3261E; }
.ngs-field-err { color: #C0392B; }
.ngs-note-err { background: rgba(179, 38, 30, 0.07); border-color: #E09B95; }
.ngs-alert-err { background: rgba(179, 38, 30, 0.06); border-color: #E09B95; }
.ngs-stock.is-low,
.ng-cart-warn { color: #B26A00; }
.ngs-stock.is-out,
.ng-cart-rm:hover,
.ng-cart-clear:hover { color: #C0392B; }
/* Dark PCB/video placeholders read fine on white; keep the solid #000 media
 * frames (they back real video/thumbnails) but soften the CSS board motif's
 * drop shadow so it doesn't look like a dark hole on the light hero. */
.ngh-board { box-shadow: inset 0 0 40px rgba(59,111,224,0.18), 0 8px 22px rgba(30,58,138,0.16); }

/* Small-screen logo scaling. */
@media (max-width: 520px) {
  :root { --ng-header-h: 84px; }
  .ngs-brand img { height: 52px; }
  .ngs-footer-brand img { height: 72px; }
}
