/* VENTRA — DEV панель (правый нижний угол, временно до релиза) */
.nv-settings-lab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2147483000;
  pointer-events: none;
}
.nv-settings-lab * { pointer-events: auto; }
.nv-settings-lab__fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #e8c547;
  background: linear-gradient(145deg, #2a2410, #0a0a0a);
  color: #e8c547;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(232, 197, 71, 0.15), 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s, box-shadow 0.2s;
  animation: nv-fab-pulse 2.5s ease-in-out infinite;
}
@keyframes nv-fab-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232, 197, 71, 0.12), 0 8px 32px rgba(0,0,0,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(232, 197, 71, 0.22), 0 8px 32px rgba(0,0,0,0.6); }
}
.nv-settings-lab__fab:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 36px rgba(232, 197, 71, 0.25);
}
.nv-settings-lab.is-open .nv-settings-lab__fab {
  background: linear-gradient(135deg, #f0d060, #e8c547 40%, #c9a020);
  color: #1a1200;
  border-color: transparent;
}
.nv-settings-lab__icon { line-height: 1; font-size: 1.15rem; }
.nv-settings-lab__label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.nv-settings-lab--dev::before {
  content: "DEV";
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 5px;
  border-radius: 4px;
  background: #e8c547;
  color: #1a1200;
  pointer-events: none;
}
.nv-set-panel {
  display: block;
  position: absolute;
  bottom: 68px;
  right: 0;
  width: min(320px, calc(100vw - 40px));
  max-height: min(72vh, 520px);
  overflow-y: auto;
  background: #161616;
  color: #ece8e0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.nv-set-panel label,
.nv-set-panel__sub,
.nv-set-group small { color: #9a968f; }
.nv-set-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #222;
  color: #ece8e0;
  font-size: 0.78rem;
  cursor: pointer;
}
.nv-set-btn.is-active {
  border-color: #e8c547;
  color: #e8c547;
  box-shadow: 0 0 0 1px rgba(232,197,71,0.3);
}
.nv-set-btn.nv-set-swatch {
  min-width: 54px;
  font-weight: 600;
  text-transform: capitalize;
}
.nv-set-swatch--dark { background: linear-gradient(145deg,#2a2a2a,#000) !important; color: #ddd !important; border-color: #444 !important; }
.nv-set-swatch--light { background: #fff !important; color: #222 !important; border-color: #ccc !important; }
.nv-set-swatch--beige { background: #fdfbf6 !important; color: #8b6914 !important; border-color: #e8dcc4 !important; }
.nv-set-swatch--gray { background: #c8d1dc !important; color: #1e293b !important; border-color: #64748b !important; }
.nv-set-swatch--sky { background: #b8d0e8 !important; color: #1e3a8a !important; border-color: #3b82f6 !important; }
.nv-set-swatch.is-active { outline: 2px solid #e8c547; outline-offset: 2px; }
.nv-set-panel[hidden] { display: none !important; }
.nv-set-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.nv-set-panel__head strong { font-family: var(--font-display); font-size: 1rem; color: #fff; }
.nv-set-panel__head button, .nv-set-panel__head a { background: none; border: none; color: #9a968f; cursor: pointer; text-decoration: none; font-size: 1.1rem; }
.nv-set-panel__sub { margin: 0 0 14px; font-size: 0.75rem; }
.nv-set-group { margin-bottom: 14px; }
.nv-set-group label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.nv-set-group small { display: block; margin-top: 6px; font-size: 0.68rem; }
.nv-set-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
}
html[data-nova-theme="light"] .nv-set-input,
html[data-nova-theme="beige"] .nv-set-input,
html[data-nova-theme="gray"] .nv-set-input,
html[data-nova-theme="sky"] .nv-set-input {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
}
.nv-set-row { display: flex; gap: 6px; flex-wrap: wrap; }
.nv-set-fold { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; }
.nv-set-fold summary { cursor: pointer; font-size: 0.82rem; color: #9a968f; margin-bottom: 8px; }
.nv-set-fold__body { padding-top: 4px; }

/* Layout options — только каталог, не ломать главную */
html[data-nv-cards="2"] [data-nv-listings].nv-grid,
html[data-nv-cards="2"] [data-nv-fav-list].nv-grid {
  grid-template-columns: repeat(2, 1fr);
}
html[data-nv-cards="4"] [data-nv-listings].nv-grid,
html[data-nv-cards="4"] [data-nv-fav-list].nv-grid {
  grid-template-columns: repeat(4, 1fr);
}
html[data-nv-headernav="compact"] .nv-nav--center a:nth-child(n+3),
html[data-nv-headernav="compact"] .nv-nav .nv-nav__link--hide-compact { display: none; }
html[data-nv-catmenu="pills"] .nv-catnav a { border-radius: 999px; background: var(--card); }
html[data-nv-catmenu="tabs"] .nv-catnav__inner { gap: 0; border-bottom: 1px solid var(--line); }
html[data-nv-catmenu="tabs"] .nv-catnav a { border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; }
html[data-nv-catmenu="tabs"] .nv-catnav a.is-active { border-bottom-color: var(--gold, var(--accent)); }
html[data-nv-catmenu="compact"] .nv-catnav a { font-size: 0.72rem; padding: 6px 10px; }
html[data-nv-phone-preview="1"] body {
  max-width: 390px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--line);
  min-height: 100vh;
}

@media (max-width: 640px) {
  .nv-settings-lab { bottom: 16px; right: 16px; }
  .nv-settings-lab__fab { width: 54px; height: 54px; }
}
