/* ==========================================================================
   SITE HEADER (all public pages, injected by js/headerFooterManager.js)
   Design: canvas "DBCO Website Redesign", Main.dc.html header (2026-11).
   Typefaces as in the canvas: Inter for text and controls, Jost for display
   (mega-menu titles, brand names, mobile sheet). Both load from Google Fonts in
   each page's <head> with real weights (Inter 400/500/600, Jost 400/500), and
   font-synthesis is off so the browser never fakes a weight.
   Bootstrap is loaded on some pages, so links, buttons and lists are reset here.
   ========================================================================== */
special-header {
    display: block;
    height: 96px;
    /* Reserves the space under the fixed header. The home page sets 0 so the hero sits under it. */
}

.nv {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    padding: 16px clamp(16px, 4vw, 48px) 0;
    pointer-events: none;
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-synthesis: none;
    line-height: 1.4;
}


.nv * {
    box-sizing: border-box;
}

.nv [hidden] {
    display: none !important;
}

.nv-bar,
.nv-panels,
.nv-backdrop {
    pointer-events: auto;
}

.nv a {
    color: var(--text-primary);
    text-decoration: none;
}

.nv a:hover {
    color: var(--text-primary);
}

.nv button {
    font: inherit;
    color: var(--text-primary);
    cursor: pointer;
}

.nv ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nv svg {
    flex-shrink: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Bar --- */
.nv-bar {
    max-width: 1200px;
    min-height: 64px;
    margin: 0 auto;
    padding: 0 10px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c-panel) 86%, transparent);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--c-line);
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.6);
}

.nv-logo {
    display: flex;
    align-items: center;
    min-height: 44px;
    flex-shrink: 0;
}

/* The logo file is a square with wide transparent margins, so it is drawn
   large and pulled in with negative margins (the old header used 90px too). */
.nv-logo img {
    display: block;
    height: 88px;
    width: 88px;
    margin: -12px -14px -12px 0;
}

.nv-links,
.nv-actions {
    display: flex;
    align-items: center;
}

.nv-links {
    gap: 4px;
}

.nv-actions {
    gap: 6px;
}

.nv-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 15px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.nv-top:hover,
.nv-top[aria-expanded="true"] {
    background: var(--c-panel2);
}

.nv-top svg,
.nv-macc svg {
    transition: transform 0.25s ease;
}

.nv-top[aria-expanded="true"] svg,
.nv-macc[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nv-searchbtn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    background: transparent;
    color: var(--c-muted) !important;
    font-size: 14px;
    white-space: nowrap;
}

.nv-searchbtn:hover,
.nv-searchbtn[aria-expanded="true"] {
    color: var(--text-primary) !important;
    border-color: var(--text-primary);
}

.nv-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    background: transparent;
    transition: border-color 0.2s ease;
}

.nv-icon:hover {
    border-color: var(--text-primary);
}

/* Gold pill: same CTA tokens as the rest of the site (7.48:1 dark, 5.36:1 light). */
.nv .nv-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px 0 16px;
    border-radius: 999px;
    background: var(--cta-gold);
    color: var(--cta-fg);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nv .nv-inquiry:hover {
    color: var(--cta-fg);
    background: var(--cta-gold-hover);
    transform: translateY(-1px);
}

.nv-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--cta-fg);
    color: var(--cta-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.nv-mob {
    display: none;
}

/* --- Panels --- */
.nv-panels {
    max-width: 1200px;
    margin: 0 auto;
}

.nv-panel {
    margin-top: 10px;
    padding: 28px;
    border-radius: 24px;
    background: var(--c-panel);
    border: 1px solid var(--c-line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: nvIn 0.22s ease both;
}

@keyframes nvIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.nv-eyebrow {
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--c-accent);
}

/* Collections mega menu */
.nv-mega {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.nv-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nv .nv-col-title {
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    letter-spacing: 0.08em;
}

.nv .nv-col-title:hover {
    color: var(--c-accent);
}

.nv .nv-sub {
    display: block;
    padding: 7px 0;
    font-size: 15px;
    color: var(--c-muted);
}

.nv .nv-sub:hover {
    color: var(--text-primary);
}

.nv-promo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
    background: var(--c-panel2);
}

.nv-promo-title {
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    line-height: 1.3;
}

.nv-promo-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-muted);
}

.nv .nv-promo-link {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-accent);
}

.nv .nv-promo-link:hover {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Brands */
.nv-brands {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
}

.nv-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
}

a.nv-brand:hover {
    background: var(--c-panel2);
}

.nv-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nv-brand-name {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.06em;
}

.nv-brand-desc {
    font-size: 13px;
    color: var(--c-muted);
}

.nv-brand-tag {
    font-size: 12px;
    color: var(--c-accent);
}

.nv-pill {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    color: var(--c-muted);
    white-space: nowrap;
}

.nv-brand-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
    padding: 12px 14px 4px;
    border-top: 1px solid var(--c-line);
    font-size: 13px;
}

/* Search */
.nv-search {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nv-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 6px 0 18px;
    border-radius: 999px;
    border: 1px solid var(--c-accent);
    background: var(--c-bg);
}

.nv-search-field input {
    flex: 1;
    min-width: 0;
    height: 52px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 17px;
    outline: none;
}

.nv-search-field input::placeholder {
    color: var(--c-muted);
}

/* The field itself shows focus, via its gold border. */
.nv-search-field:focus-within {
    box-shadow: 0 0 0 1px var(--c-accent);
}

.nv-search-field input:focus-visible {
    outline: none !important;
}

.nv-search-close {
    border: 0;
}

.nv-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nv-popular > span {
    font-size: 13px;
    color: var(--c-muted);
    margin-right: 4px;
}

.nv .nv-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    font-size: 14px;
}

.nv .nv-chip:hover {
    border-color: var(--text-primary);
}

#search-results-overlay {
    display: none;
}

#search-results-overlay.show {
    display: block;
}

.search-loading,
.no-results,
.search-error,
.more-results {
    padding: 8px 4px;
    font-size: 14px;
    color: var(--c-muted);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 4px;
}

.nv .search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 14px;
}

.nv .search-item:hover {
    background: var(--c-panel2);
}

.search-item img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--c-panel2);
    flex-shrink: 0;
}

.search-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-item-code {
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-item-cat {
    font-size: 13px;
    color: var(--c-muted);
}

/* Mobile sheet */
.nv-sheet {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
}

.nv-sheet-search {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    background: transparent;
    color: var(--c-muted) !important;
    font-size: 15px;
    text-align: left;
}

.nv-sheet-list {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.nv-macc-item {
    border-top: 1px solid var(--c-line);
}

.nv-macc {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 22px;
}

.nv .nv-mlink .nv-pill {
    margin-left: 12px;
}

.nv-macc-body {
    display: flex;
    flex-direction: column;
    padding: 0 0 12px;
}

.nv .nv-msub {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-left: 12px;
    font-size: 16px;
    color: var(--c-muted);
}

.nv .nv-msub:hover {
    color: var(--text-primary);
}

.nv .nv-mlink {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-top: 1px solid var(--c-line);
    font-family: 'Jost', sans-serif;
    font-size: 22px;
}

.nv-sheet-brands {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--c-line);
}

.nv-sheet-brands .nv-eyebrow {
    padding-bottom: 6px;
}

.nv-sheet-brands .nv-msub {
    padding-left: 0;
}

.nv .nv-dim {
    color: var(--c-muted);
}

.nv-sheet-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--c-line);
    font-size: 14px;
}

.nv-sheet-icons {
    display: flex;
    gap: 8px;
}

/* Backdrop behind any open panel */
.nv-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: default !important;
}

@media (max-width: 1100px) {
    .nv-desk {
        display: none !important;
    }

    .nv-mob {
        display: inline-flex;
    }

    .nv-bar {
        padding-left: 18px;
    }
}

@media (max-width: 380px) {
    .nv-bar {
        gap: 8px;
        padding-left: 14px;
    }

    .nv-logo img {
        height: 76px;
        width: 76px;
        margin: -8px -12px -8px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nv-panel {
        animation: none;
    }

    .nv-top,
    .nv-top svg,
    .nv-macc svg,
    .nv .nv-inquiry,
    .nv-icon {
        transition: none;
    }
}
