* {
    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;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-urbanist);
}

.header-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--nav-background);
    backdrop-filter: var(--nav-backdrop-filter);
    -webkit-backdrop-filter: var(--nav-backdrop-filter);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-base);
    height: var(--nav-height);
    transition: top .5s, left .5s, right .5s, height .5s, border-radius .5s, background .3s;
    will-change: top, left, right, height, border-radius, background;
    transform: translateZ(0);
}

.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);
    position: fixed;
}

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

.header-logo {
    height: 38px;
    max-width: 140px;
    object-fit: contain;
    transition: opacity var(--transition-base) ease;
}

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

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

.header-nav-link {
    text-decoration: none;
    color: var(--gray-700);
    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: 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;
    display: inline-block;
    margin-left: var(--spacing-8);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transform-origin: center center;
    vertical-align: middle;
    transition: transform var(--transition-base) ease;
}

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

.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 {
    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);
    overflow: 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);
    display: flex;
    flex-direction: column;
}

.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;
    display: inline-block;
    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-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;
}

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

.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 {
    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;
}

.header-cta-button {
    text-decoration: none;
    background: var(--color-primary);
    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);
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all var(--transition-base) cubic-bezier(.4, 0, .2, 1);
}

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

.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: var(--gray-700);
    transition: all var(--transition-base) cubic-bezier(.4, 0, .2, 1);
}

.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);
}

.header-mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    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;
    /* we’ll manage scroll inside products list */
}

.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; }


.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;
}

.header-mobile-category-item {
    padding: var(--spacing-12) var(--spacing-20);
    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: #fff;
    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;
}

.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);
    text-decoration: none;
    color: var(--color-primary);
    font-size: var(--font-size-md);
    background: #fff;
    transition: all var(--transition-base) ease;
}

.header-categories { position: relative; z-index: 1; }
.header-products   { position: relative; z-index: 2; }

.header-product-link {
  display: block;        /* already present, keep */
  width: 100%;           /* fill grid cell */
  height: 100%;          /* make full tile clickable */
  position: relative;    /* create its own stacking context */
  z-index: 1;            /* sit above any neighboring artifacts */
  pointer-events: auto;  /* be explicit */
}

.header-mobile-product-link {
  display: block;        /* already present, keep */
  width: 100%;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}



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

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

    .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;
    }
}

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

    .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);
    }
}

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

@media (max-width: 991px) {
    .header-mobile-menu {
        display: grid;
        grid-template-rows: auto 1fr auto;
        max-height: var(--mobile-nav-maxh);
    }

    .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: 991px) and (orientation: landscape) {
    :root {
        --mobile-nav-maxh: 100dvh;
    }
}

@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);  /* match product item padding */
    background: transparent;                       /* same bg as product rows */
    font-size: var(--font-size-md);
    border: 1px solid transparent;                 /* keep layout stable */
  }

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

.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;
}