/* ============================================================
   VAMIKA — HEADER
   File: public/assets/vamika/css/header.css
   Same design tokens as product-details.css & home.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
    --vh-blush:    #1a1613;
    --vh-rose:     #d4af52;
    --vh-primary:  #c9a227;
    --vh-accent:   #a9850f;
    --vh-deep:     #f5f1e8;
    --vh-muted:    #a39a90;
    --vh-ivory:    #121110;
    --vh-border:   rgba(255,255,255,.09);
    --vh-ff-serif: 'Cormorant Garamond', Georgia, serif;
    --vh-ff-sans:  'DM Sans', system-ui, sans-serif;
    --vh-header-h: 68px;
    --vh-top-h:    36px;
    --vh-black:    #0d0c0a;
}

/* ══════════════════════════════════════
   TOP BAR
══════════════════════════════════════ */
.vh-topbar {
    background: var(--vh-black);
    height: var(--vh-top-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--vh-border);
}
.vh-topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Left: social icons */
.vh-topbar-social {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.vh-topbar-social-label {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    font-family: var(--vh-ff-sans);
    white-space: nowrap;
}
.vh-topbar-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,.55);
    transition: color .2s;
}
.vh-topbar-social-link:hover { color: var(--vh-primary); }
.vh-topbar-social-link svg {
    width: 13px; height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

/* Scrolling marquee text */
.vh-topbar-marquee {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.vh-topbar-track {
    display: flex;
    gap: 0;
    animation: topbarScroll 22s linear infinite;
    white-space: nowrap;
}
.vh-topbar-track:hover { animation-play-state: paused; }
.vh-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 32px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
    font-family: var(--vh-ff-sans);
    flex-shrink: 0;
}
.vh-topbar-item svg {
    width: 12px; height: 12px;
    stroke: var(--vh-rose);
    fill: none;
    stroke-width: 1.6;
    flex-shrink: 0;
}
.vh-topbar-sep { color: rgba(255,255,255,.2); padding: 0 4px; }

/* Right side links */
.vh-topbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.vh-topbar-link {
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-family: var(--vh-ff-sans);
    transition: color .2s;
    white-space: nowrap;
}
.vh-topbar-link:hover { color: var(--vh-primary); }
.vh-topbar-link-sep { color: rgba(255,255,255,.2); font-size: 10px; }

@keyframes topbarScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════
   MAIN HEADER
══════════════════════════════════════ */
.vh-header {
    background: var(--vh-ivory);
    border-bottom: 1px solid var(--vh-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .3s;
}
.vh-header.scrolled {
    box-shadow: 0 2px 20px rgba(201,162,39,.12);
}

.vh-header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--vh-header-h);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 24px;
}

/* ── Hamburger (mobile) ── */
.vh-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    width: 36px;
}
.vh-hamburger span {
    display: block;
    height: 1.5px;
    background: var(--vh-deep);
    border-radius: 1px;
    transition: all .3s;
    transform-origin: center;
}
.vh-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.vh-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.vh-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Logo lockup: monogram badge + wordmark + tagline ── */
.vh-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
/* Emblem badge — uses the real crest artwork (logo-light-brynko.png) */
.vh-logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid var(--vh-primary);
    background: var(--vh-black);
    flex-shrink: 0;
    overflow: hidden;
}
.vh-logo-badge-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vh-logo-badge span {
    font-family: var(--vh-ff-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--vh-primary);
}
/* Wordmark + tagline */
.vh-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.vh-logo-text-word {
    font-family: var(--vh-ff-serif);
    font-size: 22px;
    letter-spacing: .03em;
    white-space: nowrap;
}
.vh-logo-text-word .vh-logo-light { font-weight: 400; color: var(--vh-deep); }
.vh-logo-text-word em {
    font-style: normal;
    font-weight: 600;
    color: var(--vh-primary);
    margin-left: 5px;
}
.vh-logo-tagline {
    font-family: var(--vh-ff-sans);
    font-size: 8.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--vh-muted);
    margin-top: 3px;
    white-space: nowrap;
}

/* ── Search bar ── */
.vh-search {
    position: relative;
    max-width: 480px;
    width: 100%;
    justify-self: center;
}
.vh-search-form {
    display: flex;
    border: 1px solid var(--vh-border);
    border-radius: 2px;
    overflow: hidden;
    background: var(--vh-blush);
    transition: border-color .2s, box-shadow .2s;
}
.vh-search-form:focus-within {
    border-color: var(--vh-primary);
    box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}

/* Category dropdown */
.vh-search-cat {
    padding: 0 12px;
    border: none;
    border-right: 1px solid var(--vh-border);
    background: var(--vh-blush);
    font-size: 11px;
    font-family: var(--vh-ff-sans);
    color: var(--vh-muted);
    letter-spacing: .04em;
    cursor: pointer;
    outline: none;
    min-width: 110px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a39a90' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    transition: color .2s;
}
.vh-search-cat:hover { color: var(--vh-deep); }

.vh-search-input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    outline: none;
    font-size: 13px;
    font-family: var(--vh-ff-sans);
    color: var(--vh-deep);
    background: transparent;
    min-width: 0;
}
.vh-search-input::placeholder { color: var(--vh-muted); }

.vh-search-btn {
    width: 44px;
    background: var(--vh-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}
.vh-search-btn:hover { background: var(--vh-accent); }
.vh-search-btn svg {
    width: 16px; height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

/* ── Search suggestions dropdown ── */
.vh-search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #181512;
    border: 1px solid var(--vh-border);
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,.5);
    overflow: hidden;
    z-index: 60;
    display: none;
}
.vh-search-suggest.show { display: block; }
.vh-search-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--vh-deep);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
    border-bottom: 1px solid var(--vh-border);
}
.vh-search-suggest-item:last-child { border-bottom: none; }
.vh-search-suggest-item:hover,
.vh-search-suggest-item.active { background: var(--vh-blush); }
.vh-search-suggest-item svg {
    width: 13px; height: 13px;
    stroke: var(--vh-muted);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}
.vh-search-suggest-item .vh-suggest-tag {
    margin-left: auto;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vh-muted);
    flex-shrink: 0;
}

/* ── Action icons ── */
.vh-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.vh-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--vh-deep);
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 2px;
    transition: background .2s, color .2s;
    font-family: var(--vh-ff-sans);
}
.vh-action:hover { background: var(--vh-blush); }
.vh-action svg {
    width: 20px; height: 20px;
    stroke: var(--vh-deep);
    fill: none;
    stroke-width: 1.6;
    transition: stroke .2s;
}
.vh-action:hover svg { stroke: var(--vh-primary); }
.vh-action-label {
    font-size: 10px;
    letter-spacing: .05em;
    color: var(--vh-muted);
    white-space: nowrap;
    line-height: 1;
}

/* Badge count bubble */
.vh-badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 17px;
    height: 17px;
    background: var(--vh-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--vh-ff-sans);
    line-height: 1;
}

/* Action divider */
.vh-action-divider {
    width: 1px;
    height: 28px;
    background: var(--vh-border);
    margin: 0 4px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   NAVIGATION BAR
══════════════════════════════════════ */
.vh-navbar {
    background: var(--vh-blush);
    border-bottom: 1px solid var(--vh-border);
    position: relative;
    overflow: visible;
}

/* ── Scroll arrows ── */
.vh-nav-arrow {
    position: absolute;
    top: 0; bottom: 0;
    z-index: 30;
    width: 36px;
    background: var(--vh-blush);
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--vh-muted);
    display: none;           /* hidden until JS adds --visible */
    align-items: center;
    justify-content: center;
    transition: color .2s, box-shadow .2s;
    padding: 0;
    line-height: 1;
}
.vh-nav-arrow--visible { display: flex; }
.vh-nav-arrow--left  { left: 0;  box-shadow:  4px 0 8px rgba(26,22,19,.9); }
.vh-nav-arrow--right { right: 0; box-shadow: -4px 0 8px rgba(26,22,19,.9); }
.vh-nav-arrow:hover  { color: var(--vh-primary); }

.vh-navbar-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}
.vh-navbar-scroll::-webkit-scrollbar { display: none; }

.vh-navbar-inner {
    /* NO max-width — let items define the width naturally so scrolling works */
    display: inline-flex;   /* shrinks to content width, enabling scroll */
    align-items: center;
    padding: 0 16px;
    height: 44px;
    gap: 0;
    white-space: nowrap;
    min-width: 100%;        /* at least full viewport width when items are few */
}

.vh-nav-item {
    position: relative;
    flex-shrink: 0; /* ← critical: prevents items from shrinking */
}
.vh-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 13px;
    height: 44px;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--vh-ff-sans);
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.vh-nav-link:hover,
.vh-nav-link.active { color: var(--vh-primary); border-bottom-color: var(--vh-primary); }

.vh-nav-link svg {
    width: 10px; height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform .3s;
    flex-shrink: 0;
}
.vh-nav-item:hover > .vh-nav-link svg { transform: rotate(180deg); }

/* Dropdown — fixed to viewport so it ALWAYS escapes overflow containers */
.vh-dropdown {
    position: fixed; /* not absolute — escapes scroll/overflow clipping */
    min-width: 200px;
    background: var(--vh-blush);
    border: 1px solid var(--vh-border);
    border-top: 2px solid var(--vh-primary);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 28px rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .22s, transform .22s, visibility .22s;
    z-index: 9999;
    pointer-events: none;
    max-height: 320px;
    overflow-y: auto;
    /* top/left set by JS based on nav-item bounding rect */
}
.vh-dropdown.vh-dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.vh-dropdown-item {
    display: block;
    padding: 10px 18px;
    font-size: 12px;
    color: var(--vh-muted);
    text-decoration: none;
    font-family: var(--vh-ff-sans);
    letter-spacing: .04em;
    transition: background .15s, color .15s, padding-left .15s;
    border-bottom: 1px solid var(--vh-border);
    white-space: nowrap;
}
.vh-dropdown-item:last-child { border-bottom: none; }
.vh-dropdown-item:hover {
    background: var(--vh-blush);
    color: var(--vh-deep);
    padding-left: 24px;
}

/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
.vh-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    backdrop-filter: blur(2px);
}
.vh-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.vh-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 300px;
    background: var(--vh-ivory);
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vh-drawer.open { transform: translateX(0); }

.vh-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--vh-border);
    background: var(--vh-black);
    flex-shrink: 0;
}
.vh-drawer-logo {
    font-family: var(--vh-ff-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--vh-deep);
    letter-spacing: .04em;
}
.vh-drawer-logo em { font-style: italic; color: var(--vh-rose); }
.vh-drawer-close {
    width: 32px; height: 32px;
    background: rgba(255,255,255,.12);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.vh-drawer-close:hover { background: rgba(255,255,255,.22); }
.vh-drawer-close svg {
    width: 14px; height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

/* Search in drawer */
.vh-drawer-search {
    padding: 14px 16px;
    border-bottom: 1px solid var(--vh-border);
    flex-shrink: 0;
}
.vh-drawer-search-form {
    display: flex;
    border: 1px solid var(--vh-border);
    border-radius: 2px;
    overflow: hidden;
    background: var(--vh-blush);
}
.vh-drawer-search-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 13px;
    font-family: var(--vh-ff-sans);
    color: var(--vh-deep);
    background: transparent;
}
.vh-drawer-search-btn {
    width: 40px;
    background: var(--vh-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vh-drawer-search-btn svg {
    width: 15px; height: 15px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}

/* Drawer nav */
.vh-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}
.vh-drawer-nav::-webkit-scrollbar { width: 3px; }
.vh-drawer-nav::-webkit-scrollbar-thumb { background: var(--vh-border); border-radius: 2px; }

.vh-drawer-nav-item { border-bottom: 1px solid var(--vh-border); }
.vh-drawer-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vh-drawer-link {
    flex: 1;
    display: block;
    padding: 14px 20px;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vh-deep);
    text-decoration: none;
    font-family: var(--vh-ff-sans);
    font-weight: 500;
    transition: color .2s, background .2s;
}
.vh-drawer-link:hover { color: var(--vh-primary); background: var(--vh-blush); }

/* Accordion toggle for subcategories */
.vh-drawer-toggle {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    border-left: 1px solid var(--vh-border);
}
.vh-drawer-toggle svg {
    width: 12px; height: 12px;
    stroke: var(--vh-muted);
    fill: none;
    stroke-width: 2;
    transition: transform .3s;
}
.vh-drawer-toggle.open svg { transform: rotate(180deg); }

/* Subcategory list */
.vh-drawer-sub {
    display: none;
    background: var(--vh-ivory);
    border-top: 1px solid var(--vh-border);
}
.vh-drawer-sub.open { display: block; }
.vh-drawer-sub-link {
    display: block;
    padding: 11px 20px 11px 32px;
    font-size: 12px;
    color: var(--vh-muted);
    text-decoration: none;
    font-family: var(--vh-ff-sans);
    letter-spacing: .04em;
    border-bottom: 1px solid var(--vh-border);
    transition: color .2s, background .2s, padding-left .2s;
}
.vh-drawer-sub-link:last-child { border-bottom: none; }
.vh-drawer-sub-link:hover { color: var(--vh-primary); background: var(--vh-blush); padding-left: 38px; }

/* Drawer footer */
.vh-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--vh-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    background: var(--vh-blush);
}
.vh-drawer-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--vh-deep);
    text-decoration: none;
    font-family: var(--vh-ff-sans);
    padding: 8px 12px;
    border-radius: 2px;
    transition: background .2s;
}
.vh-drawer-footer-link:hover { background: rgba(201,162,39,.12); color: var(--vh-primary); }
.vh-drawer-footer-link svg {
    width: 17px; height: 17px;
    stroke: var(--vh-rose);
    fill: none;
    stroke-width: 1.6;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   MOBILE BOTTOM NAV BAR
   App-like fixed tab bar on mobile
══════════════════════════════════════ */
.vh-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--vh-ivory);
    border-top: 1px solid var(--vh-border);
    z-index: 900;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(201,162,39,.1);
}
.vh-bottom-nav-inner {
    display: flex;
    height: 100%;
}
.vh-bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--vh-muted);
    font-family: var(--vh-ff-sans);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color .2s;
    -webkit-tap-highlight-color: transparent;
}
.vh-bottom-tab:hover,
.vh-bottom-tab.active { color: var(--vh-primary); }
.vh-bottom-tab svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}
.vh-bottom-tab-label {
    font-size: 9px;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 500;
}
.vh-bottom-tab .vh-badge-count {
    top: 6px; right: calc(50% - 16px);
}

/* Centre "Shop" button — raised primary CTA */
.vh-bottom-tab--cta {
    color: #fff !important;
}
.vh-bottom-tab--cta .vh-bottom-tab-bg {
    position: absolute;
    width: 48px; height: 48px;
    background: var(--vh-primary);
    border-radius: 50%;
    top: -12px;
    box-shadow: 0 4px 14px rgba(201,162,39,.4);
    transition: background .2s, transform .2s;
}
.vh-bottom-tab--cta:hover .vh-bottom-tab-bg { background: var(--vh-accent); transform: scale(1.05); }
.vh-bottom-tab--cta svg { position: relative; z-index: 1; }
.vh-bottom-tab--cta .vh-bottom-tab-label { position: relative; z-index: 1; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .vh-search { max-width: 360px; }
    .vh-search-cat { display: none; }
    .vh-search-form { border-radius: 2px; }
}

@media (max-width: 900px) {
    .vh-navbar { display: none; }
    .vh-topbar-links { display: none; }
    .vh-topbar-social { display: none; }
    .vh-topbar-inner { justify-content: center; }
}

@media (max-width: 768px) {
    :root { --vh-header-h: 60px; }

    .vh-topbar-inner { padding: 0 16px; }

    /* Shrink the emblem badge so it fits comfortably inside the shorter mobile header */
    .vh-logo-badge { width: 44px; height: 44px; }
    .vh-logo-tagline { display: none; }

    .vh-header-inner {
        grid-template-columns: auto auto 1fr auto;
        gap: 12px;
        padding: 0 16px;
    }
    .vh-hamburger { display: flex; }
    .vh-search { max-width: none; }
    .vh-search-cat { display: none; }
    .vh-action-label { display: none; }
    .vh-action { padding: 8px 8px; }
    .vh-action-divider { display: none; }

    /* Hide login & wishlist text actions on mobile — in bottom nav instead */
    .vh-action--account,
    .vh-action--wishlist { display: none; }

    /* Show bottom nav on mobile */
    .vh-bottom-nav { display: block; }

    /* Push page content up so bottom nav doesn't overlap */
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
    .vh-search { display: none; }
    .vh-header-inner { grid-template-columns: auto 1fr auto; }

    /* Show search icon that opens drawer search */
    .vh-action--search { display: flex !important; }

    /* Logo now sits in the flexible (1fr) grid track. Grid items default to
       min-width: auto, which refuses to shrink below the nowrap wordmark's
       intrinsic width — that's what was pushing the header wider than the
       viewport. min-width: 0 lets the track actually shrink, and the
       wordmark truncates with an ellipsis instead of overflowing. */
    .vh-logo { min-width: 0; overflow: hidden; gap: 8px; }
    .vh-logo-text { min-width: 0; overflow: hidden; }
    .vh-logo-text-word {
        font-size: 17px;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    .vh-logo-badge { width: 38px; height: 38px; }
}

@media (max-width: 360px) {
    /* On the narrowest phones, drop the wordmark entirely and show just the
       crest badge so the header never has to fight for space. */
    .vh-logo-text { display: none; }
}
