/* Nino Works — dark/light theme overlay.
   Additive only. Does not edit style.css or card-hover.css.
   Light appearance is the live shop; this file styles the header
   toggle and, when html[data-theme="dark"], a full-black glass skin. */

/* ---------- header toggle (both themes) ---------- */
.nw-theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:none;
  height:40px;
  padding:0 12px 0 5px;
  border-radius:999px;
  border:1px solid rgba(30,36,80,.14);
  background:rgba(255,255,255,.7);
  box-shadow:0 4px 14px -8px rgba(38,44,96,.3),inset 0 1px 0 #fff;
  color:var(--text);
  font-family:var(--font);
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.01em;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  transition:background .25s,border-color .25s,box-shadow .25s,color .25s;
}
.nw-theme-toggle:hover{
  background:#fff;
}
.nw-theme-toggle:focus-visible{
  outline:2px solid var(--ink-violet);
  outline-offset:2px;
}
.nw-theme-toggle-glyph{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(135deg,#6a48ff,#4f6bff 60%,#2a8fd8);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 4px 10px -4px rgba(90,59,224,.55);
}
.nw-theme-toggle-glyph svg{
  display:block;
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.nw-theme-toggle .nw-icon-moon{display:none}
html[data-theme="dark"] .nw-theme-toggle .nw-icon-sun{display:none}
html[data-theme="dark"] .nw-theme-toggle .nw-icon-moon{display:block}

@media (max-width:760px){
  .nw-theme-toggle{margin-left:auto;padding:0 10px 0 5px}
  .nw-theme-toggle-label{font-size:.75rem}
  header.nav .cart-btn{margin-left:0}
}

/* ---------- full-black dark theme ---------- */
html[data-theme="dark"]{
  --bg:#000000;
  --bg2:#0a0a0a;
  --text:#f5f5f5;
  --muted:#c8c8c8;
  --dim:#a3a3a3;
  --glass:rgba(0,0,0,.55);
  --glass-2:rgba(12,12,12,.78);
  --stroke:rgba(255,255,255,.12);
  --stroke-hi:rgba(255,255,255,.2);
  --shadow:0 18px 44px -20px rgba(0,0,0,.8),0 2px 6px -2px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.1);
  --ink-cyan:#e8e8e8;
  --ink-violet:#ffffff;
  --blur:14px;
  color-scheme:dark;
}
html[data-theme="dark"],
html[data-theme="dark"] body{
  background:#000;
  color:var(--text);
  color-scheme:dark;
}

/* Full black field. No indigo, violet, cyan, or magenta night-sky glow. */
html[data-theme="dark"] .bg{
  background:#000;
}
html[data-theme="dark"] .blob{opacity:0;visibility:hidden}
html[data-theme="dark"] .grain{opacity:.035}

/* Frosted black / charcoal glass — translucent, hairline, slight blur */
html[data-theme="dark"] .glass{
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(0,0,0,.62));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow),0 0 0 1px rgba(0,0,0,.4);
  -webkit-backdrop-filter:blur(var(--blur)) saturate(120%);
  backdrop-filter:blur(var(--blur)) saturate(120%);
}
html[data-theme="dark"] .glass::before{
  background:linear-gradient(140deg,rgba(255,255,255,.4),rgba(255,255,255,0) 38%,rgba(255,255,255,0) 70%,rgba(255,255,255,.12));
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html[data-theme="dark"] .glass{background:rgba(12,12,12,.94)}
}

html[data-theme="dark"] .grad{
  background:none;
  -webkit-background-clip:unset;
  background-clip:unset;
  color:#f5f5f5;
}

html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active{
  background:rgba(255,255,255,.08);
}
html[data-theme="dark"] .cart-btn,
html[data-theme="dark"] .nw-theme-toggle{
  background:rgba(20,20,20,.72);
  border-color:rgba(255,255,255,.14);
  box-shadow:0 4px 14px -8px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.12);
  color:var(--text);
}
html[data-theme="dark"] .cart-btn:hover,
html[data-theme="dark"] .nw-theme-toggle:hover{
  background:rgba(36,36,36,.88);
}
html[data-theme="dark"] .btn-ghost{
  color:var(--text);
  background:rgba(20,20,20,.72);
  border-color:rgba(255,255,255,.14);
  box-shadow:0 4px 14px -8px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.1);
}
html[data-theme="dark"] .btn-ghost:hover{
  background:rgba(36,36,36,.88);
  box-shadow:0 4px 14px -8px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.1);
}
html[data-theme="dark"] .eyebrow{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
  color:var(--muted);
}
html[data-theme="dark"] .count{
  background:rgba(255,255,255,.06);
}

html[data-theme="dark"] .chip:hover{background:rgba(255,255,255,.08)}
html[data-theme="dark"] .search{
  background:rgba(20,20,20,.72);
  border-color:rgba(255,255,255,.14);
  color:var(--muted);
}
html[data-theme="dark"] .search input::placeholder{color:#8a8a8a}
html[data-theme="dark"] .shop-toolbar .shop-cats{border-top-color:rgba(255,255,255,.1)}

html[data-theme="dark"] .scard{
  background:linear-gradient(160deg,rgba(255,255,255,.07),rgba(0,0,0,.7));
}
html[data-theme="dark"] .scard:hover{
  border-color:rgba(255,255,255,.28);
  box-shadow:0 28px 60px -26px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.14);
}
html[data-theme="dark"] .scard .stage,
html[data-theme="dark"] .pdp-stage{
  background:radial-gradient(110% 85% at 50% 18%,#1a1a1a 0,#0a0a0a 55%,#000 100%);
  border-color:rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -18px 30px -18px rgba(0,0,0,.65);
}
html[data-theme="dark"] .scard .stage img,
html[data-theme="dark"] .pdp-stage img{
  filter:drop-shadow(0 14px 14px rgba(0,0,0,.55)) drop-shadow(0 2px 3px rgba(0,0,0,.4)) contrast(1.04);
}
html[data-theme="dark"] .scard .floor{
  background:radial-gradient(closest-side,rgba(0,0,0,.7),transparent);
}
html[data-theme="dark"] .s-foot{border-top-color:rgba(255,255,255,.1)}
html[data-theme="dark"] .p-now{color:var(--text)}
html[data-theme="dark"] .p-free{color:#9eecc8}
html[data-theme="dark"] .shop-ph{color:#a3a3a3}

html[data-theme="dark"] .shop-grid .glass,
html[data-theme="dark"] .hero-stats,
html[data-theme="dark"] .pdp-media,
html[data-theme="dark"] .pdp-info,
html[data-theme="dark"] .prose,
html[data-theme="dark"] .section .toolbar.glass{
  -webkit-backdrop-filter:blur(14px) saturate(120%);
  backdrop-filter:blur(14px) saturate(120%);
}
html[data-theme="dark"] .section .toolbar.glass{
  background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(0,0,0,.62));
}

html[data-theme="dark"] .note{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.14);
}
html[data-theme="dark"] .prose p,
html[data-theme="dark"] .prose ul{color:var(--muted)}
html[data-theme="dark"] .pdp-thumbs button{background:#111}
html[data-theme="dark"] .pdp-facts li::before{
  background:rgba(158,236,200,.12);
  color:#9eecc8;
  border-color:rgba(158,236,200,.35);
}

html[data-theme="dark"] .drawer-backdrop{background:rgba(0,0,0,.7)}
html[data-theme="dark"] .drawer{
  background:linear-gradient(180deg,#0a0a0a,#000);
  border-left-color:var(--stroke);
  box-shadow:-30px 0 60px -30px rgba(0,0,0,.85);
  color:var(--text);
}
html[data-theme="dark"] .drawer-close,
html[data-theme="dark"] .drawer-line{
  background:rgba(20,20,20,.85);
  border-color:var(--stroke);
}
html[data-theme="dark"] .drawer-line img,
html[data-theme="dark"] .drawer-ph{background:#111}

html[data-theme="dark"] .nw-sound-ctrl{
  border-color:rgba(255,255,255,.14);
  background:rgba(0,0,0,.88);
  box-shadow:0 6px 18px -12px rgba(0,0,0,.8);
  color:#f5f5f5;
}
html[data-theme="dark"] .nw-sound-ctrl:hover{
  border-color:rgba(255,255,255,.28);
}

@media (max-width:760px){
  html[data-theme="dark"] .nav-links{
    background:linear-gradient(180deg,rgba(12,12,12,.96),rgba(0,0,0,.98));
    border-color:var(--stroke);
    box-shadow:0 20px 40px -20px rgba(0,0,0,.85);
  }
  html[data-theme="dark"] .hero-card{
    background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(0,0,0,.75));
  }
}
@media (max-width:1100px),(hover:none){
  html[data-theme="dark"] .hero-card,
  html[data-theme="dark"] .toolbar.glass,
  html[data-theme="dark"] .section .toolbar.glass{
    background:linear-gradient(135deg,rgba(18,18,18,.94),rgba(0,0,0,.92));
  }
  html[data-theme="dark"] .btn-ghost{background:rgba(20,20,20,.88)}
  html[data-theme="dark"] .shop-grid .glass,
  html[data-theme="dark"] .glass:not(.nav):not(.nw-theme-toggle){
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  html[data-theme="dark"] .nav.glass{
    -webkit-backdrop-filter:blur(14px) saturate(120%);
    backdrop-filter:blur(14px) saturate(120%);
  }
}
