/* Storefront CMS pages (shop/page). Mobile-first; templates: default | wide | sidebar. */
:root { --vh-cms-text: #111827; --vh-cms-muted: #6b7280; --vh-cms-border: #e5e7eb; --vh-cms-soft: #f8fafc; --vh-cms-accent: var(--c-primary-600, #4f46e5); }
.dark { --vh-cms-text: #f9fafb; --vh-cms-muted: #9ca3af; --vh-cms-border: #374151; --vh-cms-soft: #1f2937; }
.vh-cms { max-width: 56rem; margin: 0 auto; padding: 32px 16px 48px; }
.vh-cms--wide, .vh-cms--sidebar { max-width: 80rem; }
.vh-cms__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1024px) {
    .vh-cms--sidebar .vh-cms__layout:has(.vh-cms__nav) { grid-template-columns: 240px minmax(0, 1fr); }
    .vh-cms__nav { position: sticky; top: 96px; }
}
.vh-cms__main { min-width: 0; }
.vh-cms__title { margin: 0 0 8px; font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--vh-cms-text); overflow-wrap: anywhere; }
@media (min-width: 640px) { .vh-cms__title { font-size: 36px; } .vh-cms { padding-top: 48px; } }
.vh-cms__updated { margin: 0 0 24px; font-size: 13.5px; color: var(--vh-cms-muted); }
.vh-cms__title + .vh-cms__body, .vh-cms__title + .vh-cms__empty { margin-top: 24px; }
.vh-cms__body img { max-width: 100%; height: auto; border-radius: 12px; }
.vh-cms__body pre, .vh-cms__body table { display: block; max-width: 100%; overflow-x: auto; }
.vh-cms__empty { color: var(--vh-cms-muted); }
.vh-cms__nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.vh-cms__nav::-webkit-scrollbar { display: none; }
.vh-cms__navtitle { display: none; margin: 0 0 6px; padding: 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--vh-cms-muted); }
.vh-cms__navlink { flex-shrink: 0; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--vh-cms-text); text-decoration: none; white-space: nowrap; background: var(--vh-cms-soft); }
.vh-cms__navlink:hover { color: var(--vh-cms-accent); }
.vh-cms__navlink.is-active { background: var(--vh-cms-accent); color: #fff; font-weight: 600; }
@media (min-width: 1024px) {
    .vh-cms__nav { flex-direction: column; overflow: visible; padding: 12px; border: 1px solid var(--vh-cms-border); border-radius: 14px; }
    .vh-cms__navtitle { display: block; }
    .vh-cms__navlink { white-space: normal; background: transparent; }
    .vh-cms__navlink.is-active { background: var(--vh-cms-soft); color: var(--vh-cms-accent); }
}
.vh-cms__preview { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 20px; padding: 10px 14px; border-radius: 12px; background: #fef3c7; color: #92400e; font-size: 14px; }
.vh-cms__preview a { color: inherit; font-weight: 600; text-decoration: underline; }
.dark .vh-cms__preview { background: #422006; color: #fde68a; }
