/* NYXLABS Model Library — 3D Vault layout, NYX colour swatch */
:root {
  --v-bg: #faf6f0;
  --v-bg-soft: #f7f1e8;
  --v-surface: #ffffff;
  --v-card: #fffefb;
  --v-border: #ebe3d6;
  --v-border-soft: #f0e8dc;
  --v-text: #1c1917;
  --v-muted: #8a8278;
  --v-muted-2: #a39b90;
  --v-peach: #f6e2cf;
  --v-peach-hot: #f0d0b0;
  --v-orange: #e56b1f;
  --v-orange-deep: #c25712;
  --v-orange-soft: #fff1e6;
  --v-green: #dcfce7;
  --v-green-t: #166534;
  --v-purple: #f3e8ff;
  --v-purple-t: #6b21a8;
  --v-blue: #e0f2fe;
  --v-blue-t: #0369a1;
  --v-amber: #ffedd5;
  --v-amber-t: #9a3412;
  --v-side-w: 248px;
  --v-radius: 14px;
  --v-radius-sm: 10px;
  --v-shadow: 0 1px 2px rgba(60, 40, 20, 0.04), 0 8px 24px rgba(60, 40, 20, 0.05);
  --v-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body.vault-body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--v-bg);
  color: var(--v-text);
  font-family: var(--v-font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.vault-body a { color: inherit; }

/* Layout shell — full viewport like mock */
.vault {
  display: grid;
  grid-template-columns: var(--v-side-w) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--v-bg);
}

/* ---------- Sidebar ---------- */
.vside {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 1.15rem 1rem 1.25rem;
  background: var(--v-bg);
  border-right: 1px solid var(--v-border-soft);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.vlogo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  padding: 0.2rem 0.35rem 1rem;
  color: var(--v-text) !important;
}
.vlogo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f0a35a, var(--v-orange));
  color: #fff;
  box-shadow: 0 6px 14px rgba(229, 107, 31, 0.28);
  flex: 0 0 auto;
}
.vlogo-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.vupload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  background: var(--v-peach);
  color: var(--v-orange-deep) !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.12s ease;
}
.vupload:hover {
  background: var(--v-peach-hot);
  transform: translateY(-1px);
}
.vupload-plus {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
}

.vnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1.25rem;
}
.vnav-item {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.58rem 0.7rem;
  border-radius: 10px;
  color: #5c564e;
  font: inherit;
  font-weight: 550;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.12s ease, color 0.12s ease;
}
.vnav-item:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--v-text);
}
.vnav-item.is-active {
  background: var(--v-peach);
  color: var(--v-orange-deep);
  font-weight: 700;
}
.vnav-ico {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  opacity: 0.9;
  flex: 0 0 auto;
}
.vnav-item.is-active .vnav-ico { opacity: 1; }

.vsection-label {
  margin: 0 0 0.45rem;
  padding: 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v-muted-2);
}

.vcats {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 0.5rem;
}
.vcat,
#shop-filters .shop-chip,
#shop-filters .vault-cat {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.65rem;
  text-align: left;
  padding: 0.48rem 0.65rem;
  border-radius: 10px;
  color: #5c564e;
  font: inherit;
  font-weight: 550;
  font-size: 0.86rem;
  cursor: pointer;
}
.vcat:hover,
#shop-filters .shop-chip:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--v-text);
}
.vcat.is-active,
#shop-filters .shop-chip.is-active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--v-text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--v-border-soft);
}
.vcat-left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.vcat-ico {
  width: 1.1rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.78rem;
}
.vcat-count {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--v-muted-2);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--v-border-soft);
  border-radius: 999px;
  min-width: 1.7rem;
  text-align: center;
  padding: 0.05rem 0.4rem;
}

.vstorage {
  margin-top: auto;
  padding-top: 1rem;
}
.vstorage-bar {
  height: 6px;
  border-radius: 999px;
  background: #ebe4d8;
  overflow: hidden;
  margin: 0 0.35rem 0.55rem;
}
.vstorage-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--v-orange);
}
.vstorage-text {
  margin: 0 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: var(--v-muted);
  line-height: 1.35;
}
.vstorage-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.15rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--v-border);
  background: var(--v-surface);
  color: var(--v-text) !important;
  font-weight: 650;
  font-size: 0.84rem;
  text-decoration: none !important;
}
.vstorage-btn:hover {
  border-color: var(--v-orange);
  color: var(--v-orange-deep) !important;
}

/* ---------- Main ---------- */
.vmain {
  min-width: 0;
  padding: 1.35rem 1.75rem 2.5rem;
  background: var(--v-bg);
}

.vtop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
  margin-bottom: 1.35rem;
}
.vtitles {
  width: 100%;
  max-width: 40rem;
}
.vtitles h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--v-text);
  line-height: 1.15;
}
.vtitles p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--v-muted);
  line-height: 1.45;
}

/* ---- Centered cool search dock (MakerWorld & others) ---- */
.vsearch-hero {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.vsearch-row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
}
.vsearch-dock {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.vsearch-dock-glow {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(229,107,31,0.55), rgba(240,163,90,0.35), rgba(229,107,31,0.15), rgba(246,226,207,0.6));
  background-size: 200% 200%;
  filter: blur(0.5px);
  z-index: 0;
  opacity: 0.85;
  animation: vsearch-shift 8s ease infinite;
  pointer-events: none;
}
@keyframes vsearch-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.vsearch-dock-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 3.35rem;
  height: 3.35rem;
  padding: 0 0 0 1.05rem;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.96);
  border: 1.5px solid rgba(232, 201, 168, 0.95);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 10px 30px rgba(60, 40, 20, 0.08),
    0 2px 8px rgba(229, 107, 31, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  overflow: hidden;
}
.vsearch-dock-inner:focus-within {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 14px 36px rgba(60, 40, 20, 0.1),
    0 0 0 4px rgba(229, 107, 31, 0.14);
  transform: translateY(-1px);
}
.vsearch-dock-ico {
  display: grid;
  place-items: center;
  color: var(--v-orange);
  flex: 0 0 auto;
  opacity: 0.9;
  align-self: center;
  margin-right: 0.15rem;
}
.vsearch-dock-inner input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font: inherit;
  font-size: 1rem;
  font-weight: 550;
  color: var(--v-text) !important;
  padding: 0 0.75rem 0 0.5rem !important;
  width: auto !important;
  border-radius: 0 !important;
  height: 100%;
  align-self: stretch;
}
.vsearch-dock-inner input::placeholder {
  color: var(--v-muted-2);
  font-weight: 500;
}
.vsearch-dock-inner input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.vsearch-go {
  appearance: none;
  border: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0 1.35rem;
  /* match outer pill — flush right end of same shape */
  border-radius: 0;
  background: linear-gradient(145deg, #f0a35a 0%, var(--v-orange) 55%, var(--v-orange-deep) 100%);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
  transition: filter 0.12s ease, background 0.12s ease;
}
.vsearch-go:hover {
  filter: brightness(1.05);
}
.vsearch-go:active {
  filter: brightness(0.97);
}
.vsearch-go svg { flex: 0 0 auto; }

.vsearch-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 42rem;
}
.vsearch-chip {
  appearance: none;
  border: 1px solid var(--v-border);
  background: rgba(255, 255, 255, 0.75);
  color: #5c564e;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.vsearch-chip:hover {
  background: #fff;
  border-color: #e8c9a8;
  color: var(--v-orange-deep);
  transform: translateY(-1px);
}
.vsearch-chip.is-active {
  background: var(--v-peach);
  border-color: transparent;
  color: var(--v-orange-deep);
  box-shadow: 0 4px 12px rgba(229, 107, 31, 0.12);
}

.vsearch-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.1rem;
}
.vsearch-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--v-border-soft);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--v-muted);
}
.vsearch-source-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.vsort-dock {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 3.35rem;
  min-height: 3.35rem;
  padding: 0 1.05rem 0 1.15rem;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.96);
  border: 1.5px solid rgba(232, 201, 168, 0.95);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 10px 30px rgba(60, 40, 20, 0.08),
    0 2px 8px rgba(229, 107, 31, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  white-space: nowrap;
}
.vsort-dock .vsort-label,
.vsort-dock > span:first-child {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--v-muted);
}
.vsort-dock select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c564e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center;
  padding-right: 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--v-text);
  cursor: pointer;
  outline: none;
  min-width: 5.5rem;
}
.vsort-dock:hover {
  border-color: #e8c9a8;
}
.vsort-dock:focus-within {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 0 0 3px rgba(229, 107, 31, 0.14),
    0 10px 30px rgba(60, 40, 20, 0.08);
}

/* legacy tools (unused) */
.vtools { display: none; }
.vsearch { position: relative; display: flex; align-items: center; }
.vicon-btn { display: none; }

.vtoolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.15rem;
}
.vall-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.vall-row h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--v-text);
}
.vcount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #f3ebe0;
  border: 1px solid var(--v-border-soft);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--v-muted);
}
.vsort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--v-muted);
  font-weight: 550;
}
.vsort select {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--v-text);
  cursor: pointer;
  padding-right: 0.15rem;
}

/* ---------- Cards grid (exact mock) ---------- */
.vgrid,
.shop-grid.vgrid {
  display: grid !important;
  /* ~70% smaller than original 4-col cards → denser mini cards */
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 0.95rem;
}

.vcard {
  position: relative;
  background: var(--v-card);
  border: 1px solid var(--v-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.04), 0 5px 14px rgba(60, 40, 20, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}
.vcard:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(60, 40, 20, 0.06), 0 8px 18px rgba(60, 40, 20, 0.07);
  border-color: #e2d6c6;
}

.vcard-preview {
  position: relative;
  aspect-ratio: 5 / 4; /* 20% shorter than square */
  background: linear-gradient(180deg, #f6efe6 0%, #f0e6d8 100%);
  overflow: hidden;
}
.vcard-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vcard-fmt {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  border: 1px solid transparent;
}
.fmt-obj  { background: var(--v-green);  color: var(--v-green-t);  border-color: #bbf7d0; }
.fmt-stl  { background: var(--v-purple); color: var(--v-purple-t); border-color: #e9d5ff; }
.fmt-blend{ background: var(--v-amber);  color: var(--v-amber-t);  border-color: #fed7aa; }
.fmt-fbx  { background: var(--v-blue);   color: var(--v-blue-t);   border-color: #bae6fd; }
.fmt-free { background: var(--v-green);  color: var(--v-green-t);  border-color: #bbf7d0; }
.fmt-ready{ background: var(--v-amber);  color: var(--v-amber-t);  border-color: #fed7aa; }

.vcard-more {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: #6b6560;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.vcard:hover .vcard-more { opacity: 1; }
.vcard-more:hover { background: #fff; color: var(--v-text); }

.vcard-body {
  padding: 0.5rem 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex: 1;
}
.vcard-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}
.vcard-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--v-text);
  line-height: 1.3;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcard-star {
  appearance: none;
  border: 0;
  background: transparent;
  color: #c4b9aa;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 1.15rem;
  flex: 0 0 auto;
  margin-top: 0;
}
.vcard-star.is-on { color: #eab308; }
.vcard-star:hover { color: #ca8a04; }

.vcard-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--v-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcard-cat {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.28rem;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  background: #f5efe6;
  color: #6b6560;
  font-size: 0.85rem;
  font-weight: 650;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vempty {
  grid-column: 1 / -1;
  margin: 2rem auto;
  max-width: 28rem;
  text-align: center;
  color: var(--v-muted);
  font-size: 0.95rem;
}

/* selected banner if library.js injects it */
.lib-selected {
  grid-column: 1 / -1;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--v-peach);
  border: 1px solid #efd2b4;
  font-size: 0.9rem;
}

/* lightbox from library.js */
.lib-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lib-lightbox[hidden] { display: none !important; }
.lib-lightbox-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 25, 23, 0.55);
  cursor: pointer;
}
.lib-lightbox-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  max-width: min(720px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 1rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.lib-lightbox-img {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 10px;
  background: #f3ebe0;
}
.lib-lightbox-x {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border: 0;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.lib-lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.lib-lightbox-bar .btn,
.vcard .btn,
.lib-lightbox-print {
  appearance: none;
  border: 0;
  background: var(--v-orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.lib-lightbox-bar .btn:hover,
.lib-lightbox-print:hover { background: var(--v-orange-deep); }

.vmobile-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .vgrid, .shop-grid.vgrid {
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  }
}
@media (max-width: 900px) {
  .vault {
    grid-template-columns: 1fr;
  }
  .vside {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: min(280px, 88vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 16px 0 40px rgba(40, 20, 10, 0.12);
    background: var(--v-bg);
  }
  body.vault-side-open .vside {
    transform: translateX(0);
  }
  body.vault-side-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, 0.3);
    z-index: 95;
  }
  .vmain {
    padding: 1rem 1rem 5rem;
  }
  .vgrid, .shop-grid.vgrid {
    grid-template-columns: repeat(auto-fill, minmax(191px, 1fr));
    gap: 0.5rem;
  }
  .vmobile-toggle {
    display: inline-flex;
    position: fixed;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.35rem;
    background: var(--v-orange);
    color: #fff;
    font: inherit;
    font-weight: 750;
    box-shadow: 0 10px 28px rgba(229, 107, 31, 0.35);
    cursor: pointer;
  }
  .vcard-more { opacity: 1; }
}
@media (max-width: 480px) {
  .vgrid, .shop-grid.vgrid {
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 0.75rem;
  }
  .vtitles h1 { font-size: 1.45rem; }
  .vsearch input { width: min(100%, 200px); }
}

.vnav-item.is-disabled,
.vnav-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* Site top nav restored — vault sits under sticky header */
body.vault-body.theme-light-print {
  background: var(--v-bg);
}
body.vault-body .shell.vault-shell {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
body.vault-body .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}
body.vault-body .vault {
  min-height: calc(100vh - 4.25rem);
}
body.vault-body .vside {
  top: 4.25rem;
  height: calc(100vh - 4.25rem);
  max-height: calc(100vh - 4.25rem);
}
/* avoid double brand clutter: keep side logo but slightly compact */
body.vault-body .vlogo {
  padding-top: 0.15rem;
}
@media (max-width: 900px) {
  body.vault-body .vside {
    top: 0;
    height: 100vh;
    max-height: none;
  }
}


@media (max-width: 720px) {
  .vsearch-row {
    flex-wrap: wrap;
  }
  .vsearch-dock {
    flex: 1 1 100%;
  }
  .vsort-dock {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .vsearch-dock-inner {
    min-height: 3.1rem;
    padding-left: 0.85rem;
  }
  .vsearch-dock-inner input {
    font-size: 0.92rem !important;
  }
  .vsearch-go {
    padding: 0.65rem 0.9rem;
  }
  .vsearch-go span {
    /* keep Search text for clarity */
  }
  .vsearch-hero {
    max-width: 100%;
  }
}


/* Library photo background — existing studio image + soft wash */
body.vault-body {
  background-color: var(--v-bg);
  background-image:
    linear-gradient(180deg, rgba(250, 246, 240, 0.82) 0%, rgba(247, 241, 232, 0.88) 45%, rgba(250, 246, 240, 0.92) 100%),
    url("/assets/img/library-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.vault-body .bg-fx {
  opacity: 0.35;
}
body.vault-body .vside {
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.vault-body .vmain {
  background: transparent;
}
body.vault-body .site-header {
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* keep search dock readable on photo */
body.vault-body .vsearch-dock-inner {
  background: rgba(255, 253, 249, 0.96);
}
@media (max-width: 900px) {
  body.vault-body {
    background-attachment: scroll;
  }
}


/* selection banner deselect */
.lib-selected {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.96);
  border: 1.5px solid rgba(232, 201, 168, 0.95);
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.08);
}
.lib-selected-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.lib-selected-text {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--v-text);
  font-size: 0.92rem;
  line-height: 1.4;
}
.lib-selected-text strong { font-weight: 800; }
.lib-selected-text small {
  display: block;
  margin-top: 0.2rem;
  color: var(--v-muted);
  font-size: 0.8rem;
}
.lib-selected-actions {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.lib-selected-actions .btn,
.lib-selected-actions .lib-deselect {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  height: 2.35rem;
  line-height: 1;
  box-sizing: border-box;
  margin: 0;
  vertical-align: middle;
}
.lib-selected-actions .btn-primary {
  background: linear-gradient(145deg, #f0a35a, var(--v-orange));
  color: #fff !important;
  border-color: transparent;
}
.lib-selected-actions .btn-outline {
  background: #fff;
  color: var(--v-text) !important;
  border-color: var(--v-border);
}
.lib-selected-actions .lib-deselect {
  background: #fff;
  color: #9a3412 !important;
  border-color: #f0c9a0;
}
.lib-selected-actions .lib-deselect:hover {
  background: #fff1e6;
  border-color: var(--v-orange);
}
.vcard.is-selected,
.lib-card.is-selected {
  outline: 2px solid var(--v-orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(229, 107, 31, 0.15), 0 10px 28px rgba(60, 40, 20, 0.1) !important;
}
