.header-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    height: var(--nav-height);
    transition:
        top .5s cubic-bezier(.25, .46, .45, .94),
        left .5s cubic-bezier(.25, .46, .45, .94),
        right .5s cubic-bezier(.25, .46, .45, .94),
        height .5s cubic-bezier(.25, .46, .45, .94),
        border-radius .5s cubic-bezier(.25, .46, .45, .94),
        background .3s ease,
        backdrop-filter .3s ease,
        border-bottom .3s ease,
        box-shadow .3s ease;
    will-change: top, left, right, height, border-radius, background;
    transform: translateZ(0);
    font-family: var(--font-inter);
    max-width: 1280px;
    margin: 0 auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header-body {
    font-family: var(--font-inter);
    color: var(--black);
    line-height: 1.4;
    letter-spacing: -.1px;
    overflow-x: hidden;
}

.header-wrapper.scrolled {
    background: var(--nav-background-scrolled);
    backdrop-filter: var(--nav-backdrop-filter-scrolled);
    -webkit-backdrop-filter: var(--nav-backdrop-filter-scrolled);
    top: var(--nav-scrolled-top);
    left: var(--nav-scrolled-margin);
    right: var(--nav-scrolled-margin);
    height: var(--nav-height-scrolled);
    border-radius: var(--nav-scrolled-border-radius);
    border: 1px solid var(--color-neutral-100);
    box-shadow: var(--shadow-base);
    position: fixed;
}

.header-nav-container {
    max-width: 1400px;
    font-family: var(--font-inter);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--nav-padding);
    height: 100%;
}

.header-logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo {
    height: 44px;
    max-width: 160px;
    object-fit: contain;
    transition: opacity var(--transition-base) ease, filter .3s ease;
}

.header-logo:hover {
    opacity: .8;
}

.header-wrapper.scrolled .header-logo {
    filter: none;
}

.header-nav-items {
    font-family: var(--font-inter);
    display: flex;
    align-items: center;
    gap: var(--spacing-24);
}

.header-nav-link {
    font-family: var(--font-inter);
    text-decoration: none;
    color: #fff;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-12) var(--spacing-16);
    border-radius: var(--radius-10);
    transition: all var(--transition-base) cubic-bezier(.4, 0, .2, 1);
    min-height: 44px;
    display: flex;
    align-items: center;
    position: relative;
}

.header-nav-link:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.header-wrapper.scrolled .header-nav-link {
    color: var(--gray-700);
}

.header-wrapper.scrolled .header-nav-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.header-products-dropdown-container {
    position: relative;
}

.header-products-dropdown-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
    cursor: pointer;
}

.header-chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform var(--transition-base) ease;
}

.header-products-dropdown-container:hover .header-chevron {
    transform: rotate(180deg);
}

.header-products-dropdown-container::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 8px;
    background: transparent;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}

.header-products-dropdown-container:hover::before {
    opacity: 1;
    pointer-events: auto;
}

.header-products-dropdown {
    font-family: var(--font-inter);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    width: 850px;
    max-width: 90vw;
    background: var(--color-neutral-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-12);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all var(--transition-base) cubic-bezier(.4, 0, .2, 1);
    will-change: transform, opacity;
    overflow: hidden;
    overflow-x: hidden;
}

.header-products-dropdown-container:hover .header-products-dropdown {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.header-dropdown-content {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.header-categories {
    width: 280px;
    flex-shrink: 0;
    padding: var(--spacing-8);
    border-right: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.header-category-group {
    position: relative;
}

.header-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-10) var(--spacing-12);
    margin-bottom: var(--spacing-6);
    cursor: pointer;
    border-radius: var(--radius-8);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-base) cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

.header-category-item,
.header-category-item * {
    text-decoration: none !important;
}

.header-category-item:hover,
.header-category-item.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    transform: translateX(4px);
}

.header-category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--color-primary);
    border-radius: 2px;
    transition: height var(--transition-base) ease;
}

.header-category-item:hover::before,
.header-category-item.active::before {
    height: 20px;
}

.header-category-chevron {
    width: 0;
    height: 0;
    flex-shrink: 0;
    margin-left: var(--spacing-8);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
    transition: transform var(--transition-base) ease;
}

.header-category-item:hover .header-category-chevron,
.header-category-item.active .header-category-chevron {
    transform: translateX(2px);
}

.header-products {
    flex: 1;
    padding: var(--spacing-8);
    display: flex;
    flex-direction: column;
}

.header-products-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-16);
    align-content: start;
    flex: 1 1 auto;
}

.header-product-link {
    text-decoration: none;
    color: var(--gray-700);
    padding: var(--spacing-12);
    border-radius: var(--radius-8);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base) cubic-bezier(.4, 0, .2, 1);
    border: 1px solid transparent;
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.header-product-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-color: rgba(74, 95, 199, .2);
    transform: translateY(-2px);
}

/* ===== Always-visible "View all" areas (desktop) ===== */
.header-viewall-categories {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: var(--spacing-12) var(--spacing-16);
    border-top: 1px dashed var(--gray-200);
    text-decoration: none;
    border-radius: var(--radius-8);
    color: var(--gray-700);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base) ease;
}

.header-viewall-categories:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.header-products-viewall-row {
    margin-top: auto;
    display: block;
    border-top: 1px solid var(--gray-200);
}

.header-products-viewall-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-8);
    padding: var(--spacing-12) var(--spacing-16);
    transition: all var(--transition-base) ease;
}

.header-products-viewall-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.arrow-icon {
    margin-left: 8px;
}

/* Mobile hamburger – white over video, dark when scrolled */
.header-mobile-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 30px;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    background: transparent;
    border: 0;
}

.header-hamburger-line {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all var(--transition-base) cubic-bezier(.4, 0, .2, 1);
}

.header-wrapper.scrolled .header-hamburger-line {
    background: var(--gray-700);
}

.header-mobile-hamburger.active .header-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header-mobile-hamburger.active .header-hamburger-line:nth-child(2) {
    opacity: 0;
}

.header-mobile-hamburger.active .header-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu drawer (we’ll make only the products area scroll) */
.header-mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-neutral-white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base) cubic-bezier(.4, 0, .2, 1);
    z-index: 1000;
    max-height: calc(100vh - var(--nav-height));
    overflow: hidden;
    /* important: drawer itself does not scroll */
}

.header-mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.header-mobile-menu-item {
    display: block;
    padding: var(--spacing-20) var(--spacing-24);
    text-decoration: none;
    color: var(--gray-700);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base) ease;
}

.header-mobile-menu-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.header-mobile-products-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: var(--spacing-20) var(--spacing-24);

}

.header-mobile-products-item { padding: 0; }

/* Collapsed/expanded products area inside drawer */
.header-mobile-products-dropdown {
    background: var(--gray-100);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base) ease;
}

.header-mobile-products-dropdown.active {
    padding: 0 var(--spacing-20) var(--spacing-24)  var(--spacing-24);
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile category headers (divs, not links) */
.header-mobile-category-item {
    padding: var(--spacing-16) var(--spacing-32);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    background: var(--color-neutral-white);
    transition: all var(--transition-base) ease;
    text-decoration: none;
}

.header-mobile-category-item:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.header-mobile-category-products {
    background: var(--gray-50);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base) ease;
}

.header-mobile-category-products.active {
    max-height: 1000px;
}

/* Mobile product links + per-category view-all (always present) */
.header-mobile-product-link {
    display: block;
    padding: var(--spacing-12) var(--spacing-40);
    text-decoration: none;
    color: var(--gray-600);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    transition: all var(--transition-base) ease;
}

.header-mobile-product-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.header-mobile-view-all-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-12) var(--spacing-24);
    text-decoration: none;
    color: var(--color-primary);
    font-size: var(--font-size-md);
    background: #fff;
    transition: all var(--transition-base) ease;
}

/* CTA: translucent over video; solid brand when scrolled */
.header-cta-button {
    text-decoration: none;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    padding: var(--spacing-12) var(--spacing-16);
    border-radius: var(--radius-10);
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all var(--transition-base) cubic-bezier(.4, 0, .2, 1);
    will-change: transform, background, color;
}

.header-cta-button:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.header-wrapper.scrolled .header-cta-button {
    background: var(--color-primary);
    color: var(--color-neutral-white);
    border: none;
}

.header-wrapper.scrolled .header-cta-button:hover {
    background: color-mix(in srgb, var(--color-primary) 88%, black 12%);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .header-nav-items {
        display: none;
    }

    .header-mobile-hamburger {
        display: flex;
    }

    /* Dropdown switches to fixed “sheet” on small screens */
    .header-products-dropdown {
        position: fixed;
        left: var(--spacing-16);
        right: var(--spacing-16);
        width: auto;
        max-width: none;
    }

    .header-dropdown-content {
        flex-direction: column;
        min-height: auto;
    }

    .header-categories {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .header-products-display {
        grid-template-columns: 1fr;
    }

    /* Drawer uses 3-row grid so only products scroll */
    .header-mobile-menu {
        display: grid;
        grid-template-rows: auto 1fr auto;
        max-height: var(--mobile-nav-maxh, 70dvh);
    }

    .header-mobile-menu>.header-mobile-menu-item:first-child,
    .header-mobile-menu>.header-mobile-menu-item:last-child {
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
    }

    .header-mobile-menu>.header-mobile-menu-item:nth-child(2) {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }
}

@media (max-width:640px) {
    .header-wrapper {
        --nav-padding: 16px 32px;
    }

    .header-logo {
        height: 36px;
        max-width: 120px;
    }

    .header-products-dropdown {
        left: var(--spacing-12);
        right: var(--spacing-12);
    }
}

@media (max-width:480px) {
    .header-wrapper.scrolled {
        left: var(--nav-scrolled-margin-sm);
        right: var(--nav-scrolled-margin-sm);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 991px) {
  .header-mobile-category-products .header-mobile-view-all-link[data-dynamic="true"] {
    display: block;
    padding: var(--spacing-12) var(--spacing-40);
    background: transparent;
    font-size: var(--font-size-md);
    border: 1px solid transparent;
  }

  .header-mobile-category-products .header-mobile-view-all-link[data-dynamic="true"]:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
  }
}


/* Optional “Powered by” badge */
.powered-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, .84);
    border: 1px solid #e1e3e8;
    box-shadow: 0 16px 40px -8px rgba(88, 92, 95, .16);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    color: black;
    z-index: 1000;
    transition: all .3s ease;
    gap: 8px;
}

.powered-badge:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    transform: translateY(-2px);
}

.powered-badge .gush-logo {
    width: 16px;
    height: 16px;
}