/* ============================================================
   Header polish — match PDP / site primary theme
   Scoped under .hdr-ref
   ============================================================ */

/* Site-wide content width (must stay always-on — was wrongly home-gated in M3). */
.aiz-main-wrapper {
    --site-edge: clamp(16px, 3vw, 56px);
    --site-max: 1720px;
}

@media (min-width: 992px) {
    .aiz-main-wrapper .container:not(.sf__inner) {
        max-width: min(var(--site-max), calc(100vw - var(--site-edge) * 2)) !important;
        width: 100%;
        padding-left: var(--site-edge) !important;
        padding-right: var(--site-edge) !important;
    }
}

@media (min-width: 1680px) {
    .aiz-main-wrapper {
        --site-max: 1840px;
    }
}

.hdr-ref {
    --hdr-ink: #111827;
    --hdr-muted: #6b7280;
    --hdr-line: #e5e7eb;
    --hdr-soft: #f3f4f6;
    --hdr-primary: var(--primary, #d43533);
    --hdr-edge: clamp(16px, 3vw, 56px);
    --hdr-max: 1720px;
    --hdr-logo-bar-bg: #fff;
    --hdr-nav-bg: #f5f5f5;
    --hdr-cluster-max: 1160px;
    --hdr-search-width: 540px;
    --hdr-search-left-trim: 0px;
    --hdr-brand-slot: clamp(100px, 8.5vw, 132px);
    --hdr-utils-slot: clamp(280px, 28vw, 400px);
    --hdr-search-bleed: 0px;
    --hdr-vertical-space: 18px;
    --hdr-rainbow-height: 5px;
    --hdr-nav-reveal-h: 52px;
    /* Vivid spectrum — distinct readable hues */
    --hdr-rainbow-red: #d43533;
    --hdr-rainbow-orange: #ff6b35;
    --hdr-rainbow-amber: #ff9f1c;
    --hdr-rainbow-gold: #ffbf00;
    --hdr-rainbow-mint: #06d6a0;
    --hdr-rainbow-teal: #2ec4b6;
    --hdr-rainbow-blue: #3a86ff;
    --hdr-rainbow-violet: #8338ec;
    --hdr-rainbow-pink: #ff006e;
    --hdr-top-space: var(--hdr-vertical-space);
    --hdr-logo-bar-pad-bottom: var(--hdr-vertical-space);
    background: #fff !important;
    border-bottom: none !important;
}

/* Hide language + currency (English / Taka) from top bar */
.top-navbar #lang-change,
.top-navbar #currency-change,
.top-navbar .lang-visibility,
.top-navbar .currency-visibility {
    display: none !important;
}

.hdr-ref .logo-bar-area {
    background: var(--hdr-logo-bar-bg) !important;
    background-color: var(--hdr-logo-bar-bg) !important;
    border-bottom: none !important;
}

.hdr-ref .logo-bar-area.border-bottom {
    border-bottom: none !important;
}

.hdr-ref .logo-bar-area .front-header-search.bg-white,
.hdr-ref .logo-bar-area .hdr-ref__search-panel {
    background: transparent !important;
    background-color: transparent !important;
}

/* Search pill — visible on white logo bar, no border/shadow halo */
.hdr-ref .logo-bar-area .aiz-search-bar {
    background: #f5f5f5 !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.hdr-ref .logo-bar-area .aiz-search-bar:hover {
    background: #f5f5f5 !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.hdr-ref .logo-bar-area .aiz-search-bar:focus-within {
    background: #f5f5f5 !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Collapse empty top bar (lang/currency hidden, seller removed) */
.top-navbar {
    display: none !important;
}

.hdr-ref .logo-bar-area > .container,
.hdr-ref .logo-bar-area > .layout-container {
    padding-top: 0;
    padding-bottom: 0;
}

.hdr-ref .logo-bar-area .col-auto a {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* Logo + nav rows — shared 3-column grid (brand | search/menu | utils) */
@media (min-width: 992px) {
    .hdr-ref__logo-cluster,
    .hdr-ref__nav-cluster {
        display: grid !important;
        grid-template-columns: var(--hdr-brand-slot) minmax(0, 1fr) var(--hdr-utils-slot);
        column-gap: 10px;
        align-items: center;
        width: 100%;
        max-width: var(--hdr-cluster-max);
        margin-left: auto;
        margin-right: auto;
    }

    .hdr-ref__col--start,
    .hdr-ref__nav-side--start {
        grid-column: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .hdr-ref__col--center {
        grid-column: 2;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-right: 0;
    }

    .hdr-ref .hdr-ref__menus {
        grid-column: 2;
        justify-self: center;
        position: static;
        transform: none;
        left: auto;
        top: auto;
        width: max-content;
        max-width: 100%;
        z-index: 1;
    }

    .hdr-ref__col--end,
    .hdr-ref__nav-side--end {
        grid-column: 3;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .hdr-ref__col--start {
        margin-left: 0;
    }

    .hdr-ref__col--start .col-auto.pl-0 {
        padding-right: 0 !important;
    }

    .hdr-ref__col--center .front-header-search,
    .hdr-ref__col--center .hdr-ref__search-panel,
    .hdr-ref__col--center .hdr-ref__search-slot {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        flex: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hdr-ref__col--center .position-relative.flex-grow-1 {
        width: 100%;
        max-width: 100%;
    }

    .hdr-ref__col--center .aiz-search-bar {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .hdr-ref__col--end .hdr-ref__utils {
        flex: 0 0 auto;
        margin-left: 0 !important;
        flex-wrap: nowrap;
        gap: 4px;
        padding-left: 2px;
    }

    .hdr-ref .logo-bar-area .col-auto a {
        margin-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hdr-ref .front-header-search {
        margin-right: 0 !important;
    }

    .hdr-ref__col--center .front-header-search {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hdr-ref .aiz-search-bar {
        height: 44px;
    }

    .hdr-ref .aiz-search-cat__toggle {
        padding: 0 12px 0 16px;
        font-size: 13px;
    }

    .hdr-ref .aiz-search-submit {
        height: 36px;
        margin: 4px;
        padding: 0 16px;
        font-size: 12px;
    }

    .hdr-ref .aiz-search-field__input {
        font-size: 13px;
    }

    .hdr-ref .hdr-ref__utils {
        gap: 4px 2px;
    }

    .hdr-ref .hdr-ref__util {
        min-width: 52px;
        padding: 3px 7px;
    }

    .hdr-ref .hdr-ref__util-label {
        font-size: 11px;
    }
}

@media (min-width: 1200px) {
    .hdr-ref {
        --hdr-cluster-max: 1220px;
        --hdr-search-width: 580px;
    }
}

@media (min-width: 1400px) {
    .hdr-ref {
        --hdr-cluster-max: 1280px;
        --hdr-search-width: 620px;
    }
}

/* Search bar — soft pill + primary Search CTA */
.hdr-ref .front-header-search {
    background: transparent !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hdr-ref .aiz-search-bar {
    height: 48px;
    background: var(--hdr-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 4px 0 0;
    box-shadow: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hdr-ref .aiz-search-bar:hover {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.hdr-ref .aiz-search-bar:focus-within {
    border-color: rgba(212, 53, 51, 0.35);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 53, 51, 0.1);
}

.hdr-ref .aiz-search-cat__toggle {
    border-radius: 999px 0 0 999px;
    padding: 0 14px 0 18px;
    color: var(--hdr-ink);
    font-weight: 600;
}

.hdr-ref .aiz-search-cat__toggle:hover,
.hdr-ref .aiz-search-cat.show .aiz-search-cat__caret,
.hdr-ref .aiz-search-cat__item.active {
    color: var(--hdr-primary) !important;
}

.hdr-ref .aiz-search-cat__tick {
    color: var(--hdr-primary);
}

.hdr-ref .aiz-search-divider {
    background: #d1d5db;
}

.hdr-ref .aiz-search-field__input::placeholder {
    color: #9ca3af;
}

.hdr-ref .aiz-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    height: 40px;
    margin: 4px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--hdr-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.hdr-ref .aiz-search-submit:hover {
    background: #b92c2a;
    color: #fff;
}

.hdr-ref .aiz-search-submit svg {
    flex-shrink: 0;
}

/* Right utils: Sign in / Wishlist / Cart */
.hdr-ref .hdr-ref__utils {
    gap: 6px 4px;
    position: relative;
    z-index: 1030;
    overflow: visible;
}

.hdr-ref .hdr-ref__util {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 56px;
    padding: 4px 8px;
    text-decoration: none !important;
    color: #4b5563 !important;
    border-radius: 10px;
    transition: color 0.15s ease, background 0.15s ease;
}

.hdr-ref .hdr-ref__util:hover {
    color: var(--hdr-ink) !important;
    background: #f9fafb;
}

.hdr-ref .hdr-ref__util-icon {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.hdr-ref .hdr-ref__util-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.hdr-ref .hdr-ref__util-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--hdr-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* Account menu — avatar + quick links */
.hdr-ref .hdr-account {
    position: relative;
}

.hdr-ref .hdr-account__toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.hdr-ref .hdr-account__avatar {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
    background: #f3f4f6;
    line-height: 0;
}

.hdr-ref .hdr-account__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hdr-ref .hdr-account.show .hdr-account__toggle,
.hdr-ref .hdr-account__toggle:hover {
    color: var(--hdr-ink) !important;
    background: #f9fafb;
}

.hdr-ref .hdr-account__menu.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    float: none !important;
    display: none;
    min-width: 240px !important;
    max-width: 280px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
    -webkit-box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
    overflow: hidden;
    z-index: 1060 !important;
}

.hdr-ref .hdr-account.show > .hdr-account__menu.dropdown-menu,
.hdr-ref .hdr-account__menu.dropdown-menu.show {
    display: block !important;
}

.hdr-ref .hdr-account__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.hdr-ref .hdr-account__head-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.hdr-ref .hdr-account__head-meta {
    min-width: 0;
}

.hdr-ref .hdr-account__name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hdr-ref .hdr-account__email {
    margin-top: 2px;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hdr-ref .hdr-account__links {
    padding: 6px;
}

.hdr-ref .hdr-account__link {
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border-radius: 8px;
    color: #111827 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.hdr-ref .hdr-account__link:hover {
    background: #f3f4f6 !important;
    color: var(--hdr-primary, #d43533) !important;
}

.hdr-ref .hdr-account__logout {
    display: block;
    margin: 0;
    padding: 11px 16px;
    border-top: 1px solid #f1f5f9;
    color: #b91c1c !important;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-decoration: none !important;
    background: #fff;
    transition: background 0.15s ease;
}

.hdr-ref .hdr-account__logout:hover {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

.hdr-ref .hdr-ref__locale {
    display: block !important;
    margin-left: 0;
    margin-right: 2px;
    flex-shrink: 0;
}

.hdr-ref .hdr-ref__locale .aiz-locale__toggle {
    padding: 4px 8px;
    border-radius: 10px;
}

.hdr-ref .hdr-ref__locale .aiz-locale__toggle:hover {
    background: #f9fafb;
}

.hdr-ref .hdr-ref__notify {
    display: none !important;
}

/* Bottom nav row */
.hdr-ref .hdr-ref__cats {
    background: transparent !important;
    width: auto !important;
}

.hdr-ref .hdr-ref__cats-btn {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--hdr-primary);
    color: #fff !important;
    width: auto;
    min-width: max-content;
    white-space: nowrap;
}

.hdr-ref .hdr-ref__cats-btn .bottom-text-color-visibility,
.hdr-ref .hdr-ref__cats-btn span,
.hdr-ref .hdr-ref__cats-btn i {
    color: #fff !important;
    white-space: nowrap;
}

.hdr-ref .hdr-ref__cats-btn .d-flex {
    flex-wrap: nowrap;
    width: 100%;
}

.hdr-ref .hdr-ref__cats-btn .d-flex > div {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.hdr-ref .hdr-ref__cats-icon {
    margin-right: 8px;
    flex-shrink: 0;
}

.hdr-ref .hdr-ref__cats-btn #category-menu-bar-icon {
    font-size: 14px !important;
    margin-left: 10px;
}

/* Hide Become a Seller in top bar */
.top-navbar .hdr-seller,
.hdr-seller {
    display: none !important;
}

.hdr-ref .hdr-ref__nav,
.hdr-ref .hdr-ref__nav.bottom-background-color-visibility {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 46px;
    background: rgba(255, 255, 255, 0.58) !important;
    background-color: transparent !important;
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.hdr-ref:not(.hdr-ref--reveal-nav) .hdr-ref__nav::before {
    display: block !important;
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(245, 245, 245, 0.42) 52%,
        rgba(255, 255, 255, 0.28) 100%
    );
    animation: hdr-nav-glass-breathe 8s ease-in-out infinite;
}

.hdr-ref:not(.hdr-ref--reveal-nav) .hdr-ref__nav::after {
    display: block !important;
    content: "";
    position: absolute;
    top: -25%;
    left: -35%;
    width: 42%;
    height: 150%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 42%,
        rgba(255, 255, 255, 0.52) 50%,
        rgba(255, 255, 255, 0.12) 58%,
        transparent 100%
    );
    transform: skewX(-14deg);
    animation: hdr-nav-glass-shine 10s ease-in-out infinite;
}

.hdr-ref.hdr-ref--reveal-nav .hdr-ref__nav::before,
.hdr-ref.hdr-ref--reveal-nav .hdr-ref__nav::after {
    display: none !important;
    content: none !important;
    animation: none !important;
    opacity: 0 !important;
}

.hdr-ref .hdr-ref__nav > .container,
.hdr-ref .hdr-ref__nav > .layout-container {
    position: relative;
    z-index: 1;
}

@keyframes hdr-nav-glass-breathe {
    0%, 100% { opacity: 0.82; }
    50% { opacity: 1; }
}

@keyframes hdr-nav-glass-shine {
    0%, 38%, 100% {
        transform: skewX(-14deg) translateX(-15%);
        opacity: 0;
    }
    48% { opacity: 0.85; }
    58% {
        transform: skewX(-14deg) translateX(240%);
        opacity: 0;
    }
}

.hdr-ref .hdr-ref__nav .d-flex.align-items-center.py-2 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* Desktop — nav row reveals on header hover / top proximity */
@media (min-width: 992px) {
    .hdr-ref--reveal-nav {
        overflow: visible;
    }

    .hdr-ref--reveal-nav .logo-bar-area {
        position: relative;
        z-index: 3;
    }

    .hdr-ref--reveal-nav .hdr-ref__nav {
        position: absolute !important;
        left: 0;
        right: 0;
        top: auto;
        bottom: var(--hdr-rainbow-height);
        z-index: 6;
        max-height: none !important;
        min-height: 0 !important;
        height: auto;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(6px);
        clip-path: inset(0 0 100% 0);
        box-shadow: none !important;
        background: var(--hdr-nav-bg, #f5f5f5) !important;
        background-color: var(--hdr-nav-bg, #f5f5f5) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: 1px solid #ebebeb;
        transition:
            opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
            clip-path 0.52s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 0.52s,
            box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hdr-ref--reveal-nav .hdr-ref__nav::before,
    .hdr-ref--reveal-nav .hdr-ref__nav::after {
        display: none !important;
        content: none !important;
        animation: none !important;
    }

    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__nav,
    .hdr-ref--reveal-nav:hover .hdr-ref__nav,
    .hdr-ref--reveal-nav:focus-within .hdr-ref__nav {
        min-height: 46px !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
        pointer-events: auto;
        box-shadow: none !important;
        transition:
            opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.03s,
            transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
            clip-path 0.56s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s,
            box-shadow 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
    }

    .hdr-ref--reveal-nav .hdr-ref__track-order,
    .hdr-ref--reveal-nav .hdr-ref__menu-list .list-inline-item {
        opacity: 0;
        transform: translateY(-8px);
        transition:
            opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__track-order,
    .hdr-ref--reveal-nav:hover .hdr-ref__track-order,
    .hdr-ref--reveal-nav:focus-within .hdr-ref__track-order,
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item,
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item,
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item {
        opacity: 1;
        transform: translateY(0);
    }

    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__track-order,
    .hdr-ref--reveal-nav:hover .hdr-ref__track-order,
    .hdr-ref--reveal-nav:focus-within .hdr-ref__track-order {
        transition-delay: 0.1s;
    }

    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(1),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(1),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(1) { transition-delay: 0.12s; }
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(2),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(2),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(2) { transition-delay: 0.15s; }
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(3),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(3),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(3) { transition-delay: 0.18s; }
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(4),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(4),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(4) { transition-delay: 0.21s; }
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(5),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(5),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(5) { transition-delay: 0.24s; }
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(6),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(6),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(6) { transition-delay: 0.27s; }
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(7),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(7),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(7) { transition-delay: 0.3s; }
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(8),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(8),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(8) { transition-delay: 0.33s; }
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(9),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(9),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(9) { transition-delay: 0.36s; }
    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__menu-list .list-inline-item:nth-child(10),
    .hdr-ref--reveal-nav:hover .hdr-ref__menu-list .list-inline-item:nth-child(10),
    .hdr-ref--reveal-nav:focus-within .hdr-ref__menu-list .list-inline-item:nth-child(10) { transition-delay: 0.39s; }

    /* Vivid rainbow ribbon — clear multi-color spectrum (desktop) */
    .hdr-ref__rainbow-ribbon {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: var(--hdr-rainbow-height);
        overflow: hidden;
        pointer-events: none;
        user-select: none;
        z-index: 5;
        transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hdr-ref__rainbow-ribbon-glow {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            90deg,
            var(--hdr-rainbow-red) 0%,
            var(--hdr-rainbow-orange) 11%,
            var(--hdr-rainbow-amber) 22%,
            var(--hdr-rainbow-gold) 33%,
            var(--hdr-rainbow-mint) 44%,
            var(--hdr-rainbow-teal) 55%,
            var(--hdr-rainbow-blue) 66%,
            var(--hdr-rainbow-violet) 77%,
            var(--hdr-rainbow-pink) 88%,
            var(--hdr-rainbow-red) 100%
        );
        background-size: 250% 100%;
        opacity: 0.35;
        filter: blur(3px);
        animation: hdr-rainbow-glow-flow 22s linear infinite;
    }

    .hdr-ref__rainbow-ribbon-flow {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            90deg,
            var(--hdr-rainbow-red) 0%,
            var(--hdr-rainbow-red) 4%,
            var(--hdr-rainbow-orange) 11%,
            var(--hdr-rainbow-orange) 15%,
            var(--hdr-rainbow-amber) 22%,
            var(--hdr-rainbow-amber) 26%,
            var(--hdr-rainbow-gold) 33%,
            var(--hdr-rainbow-gold) 37%,
            var(--hdr-rainbow-mint) 44%,
            var(--hdr-rainbow-mint) 48%,
            var(--hdr-rainbow-teal) 55%,
            var(--hdr-rainbow-teal) 59%,
            var(--hdr-rainbow-blue) 66%,
            var(--hdr-rainbow-blue) 70%,
            var(--hdr-rainbow-violet) 77%,
            var(--hdr-rainbow-violet) 81%,
            var(--hdr-rainbow-pink) 88%,
            var(--hdr-rainbow-pink) 92%,
            var(--hdr-rainbow-red) 100%
        );
        background-size: 250% 100%;
        opacity: 1;
        animation: hdr-rainbow-primary-flow 16s linear infinite;
    }

    .hdr-ref__rainbow-ribbon-flow--alt {
        inset: 0;
        background: linear-gradient(
            90deg,
            var(--hdr-rainbow-violet) 0%,
            var(--hdr-rainbow-blue) 12.5%,
            var(--hdr-rainbow-teal) 25%,
            var(--hdr-rainbow-mint) 37.5%,
            var(--hdr-rainbow-gold) 50%,
            var(--hdr-rainbow-amber) 62.5%,
            var(--hdr-rainbow-orange) 75%,
            var(--hdr-rainbow-pink) 87.5%,
            var(--hdr-rainbow-violet) 100%
        );
        background-size: 250% 100%;
        opacity: 0.28;
        mix-blend-mode: normal;
        animation: hdr-rainbow-secondary-flow 24s linear infinite reverse;
    }

    @keyframes hdr-rainbow-primary-flow {
        0% { background-position: 0% 50%; }
        100% { background-position: 250% 50%; }
    }

    @keyframes hdr-rainbow-secondary-flow {
        0% { background-position: 0% 50%; }
        100% { background-position: 250% 50%; }
    }

    @keyframes hdr-rainbow-glow-flow {
        0% { background-position: 0% 50%; }
        100% { background-position: 250% 50%; }
    }

    .hdr-ref--reveal-nav.hdr-ref--nav-open .hdr-ref__rainbow-ribbon,
    .hdr-ref--reveal-nav:hover .hdr-ref__rainbow-ribbon,
    .hdr-ref--reveal-nav:focus-within .hdr-ref__rainbow-ribbon {
        opacity: 0;
        transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hdr-ref--reveal-nav .logo-bar-area::after {
        content: none;
        display: none;
    }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    .hdr-ref--reveal-nav .hdr-ref__rainbow-ribbon-glow,
    .hdr-ref--reveal-nav .hdr-ref__rainbow-ribbon-flow {
        animation: none;
    }

    .hdr-ref--reveal-nav .hdr-ref__rainbow-ribbon-flow {
        background-position: 35% 50%;
        opacity: 0.62;
    }

    .hdr-ref--reveal-nav .hdr-ref__rainbow-ribbon-glow {
        background-position: 40% 50%;
        opacity: 0.32;
    }

    .hdr-ref--reveal-nav .hdr-ref__rainbow-ribbon-flow--alt {
        display: none;
    }

    .hdr-ref--reveal-nav .hdr-ref__nav,
    .hdr-ref--reveal-nav .hdr-ref__track-order,
    .hdr-ref--reveal-nav .hdr-ref__menu-list .list-inline-item {
        transition: none !important;
        transform: none !important;
    }
}

/* Nav bar — centered cluster (same width as logo row) */
.hdr-ref__nav-bar {
    width: 100%;
    min-height: 44px;
}

.hdr-ref__nav-cluster {
    width: 100%;
}

@media (min-width: 992px) {
    .hdr-ref__nav-bar.d-flex,
    .hdr-ref__nav-bar {
        display: block !important;
    }

    .hdr-ref__nav-cluster {
        position: relative;
    }
}

.hdr-ref__track-order {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 7px 12px 7px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #111 !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    white-space: nowrap;
    transform: none;
    cursor: pointer;
}

.hdr-ref__track-order:hover,
.hdr-ref__track-order:focus,
.hdr-ref__track-order:focus-visible {
    color: #111 !important;
    transform: none;
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: none;
    text-decoration: none !important;
    outline: none;
}

.hdr-ref__track-order.is-active {
    color: #111 !important;
    background: #fff;
    box-shadow: none;
}

.hdr-ref__track-order-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--hdr-primary, #d43533);
    animation: hdr-track-bob 2.6s ease-in-out infinite;
}

.hdr-ref__track-order-icon svg {
    display: block;
}

.hdr-ref__track-order-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--hdr-primary, #d43533);
    border: 1.5px solid #fff;
    animation: hdr-track-ping 2s ease-in-out infinite;
}

.hdr-ref__track-order-text {
    position: relative;
    color: #111;
}

.hdr-ref__track-order:hover .hdr-ref__track-order-icon {
    animation: hdr-track-bob 2.6s ease-in-out infinite;
}

@keyframes hdr-track-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes hdr-track-wiggle {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-8deg) translateY(-2px); }
    75% { transform: rotate(8deg) translateY(-2px); }
}

@keyframes hdr-track-ping {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes hdr-track-shimmer {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hdr-ref .hdr-ref__nav::before,
    .hdr-ref .hdr-ref__nav::after {
        animation: none !important;
    }

    .hdr-ref__track-order-icon,
    .hdr-ref__track-order-dot,
    .hdr-ref__track-order-text {
        animation: none !important;
    }

    .hdr-ref__track-order-text {
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        color: #111;
    }
}

.hdr-ref .hdr-ref__menus {
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    .hdr-ref .hdr-ref__menus {
        position: static;
        width: max-content;
        max-width: 100%;
    }
}

.hdr-ref .hdr-ref__menus-inner,
.hdr-ref .hdr-ref__menu-list,
.hdr-ref .hdr-ref__menu-list a {
    pointer-events: auto;
}

.hdr-ref .hdr-ref__menus-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hdr-ref .hdr-ref__menu-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hdr-ref .hdr-ref__nav .hdr-ref__menu-link,
.hdr-ref .hdr-ref__menu-link.bottom-text-color-visibility {
    font-weight: 500 !important;
    font-size: 14px !important;
    letter-spacing: 0.01em;
    color: #111 !important;
    border-radius: 0;
    padding: 10px 14px !important;
    background: transparent !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.hdr-ref .hdr-ref__nav .hdr-ref__menu-link:hover {
    color: #111 !important;
    background: transparent !important;
    opacity: 0.65;
}

.hdr-ref .hdr-ref__nav .hdr-ref__menu-link.active {
    color: #111 !important;
    background: transparent !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Hide old category arrow pseudo that assumes 270px box */
.hdr-ref .hover-category-menu .all-category::before {
    display: none !important;
}

/* Become a Seller — compact top-bar menu (no header takeover) */
.top-navbar {
    overflow: visible !important;
    position: relative;
    z-index: 1045;
}

.top-navbar .hdr-seller {
    position: relative;
    z-index: 1050;
}

.top-navbar .hdr-seller__toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.top-navbar .hdr-seller__toggle:hover,
.top-navbar .hdr-seller.show .hdr-seller__toggle {
    opacity: 0.85;
}

.top-navbar .hdr-seller__menu.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none !important;
    display: none;
    min-width: 0 !important;
    width: max-content !important;
    max-width: 190px !important;
    margin: 0 !important;
    padding: 4px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1) !important;
    -webkit-box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1) !important;
    overflow: hidden;
    z-index: 1055 !important;
}

.top-navbar .hdr-seller.show > .hdr-seller__menu.dropdown-menu,
.top-navbar .hdr-seller__menu.dropdown-menu.show {
    display: block !important;
}

.top-navbar .hdr-seller__menu::before {
    display: none !important;
}

.top-navbar .hdr-seller__item {
    display: block;
    padding: 7px 10px !important;
    margin: 0;
    border-radius: 7px;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.top-navbar .hdr-seller__item:hover,
.top-navbar .hdr-seller__item:focus {
    background: #f3f4f6 !important;
    color: var(--primary, #d43533) !important;
}

/* Search CTA — flat, no red glow */
.hdr-ref .aiz-search-submit {
    box-shadow: none !important;
    filter: none !important;
}

.hdr-ref .aiz-search-submit:hover,
.hdr-ref .aiz-search-submit:focus {
    box-shadow: none !important;
    filter: none !important;
}

@media (max-width: 1199.98px) {
    .hdr-ref .aiz-search-submit span {
        display: none;
    }

    .hdr-ref .aiz-search-submit {
        width: 40px;
        padding: 0;
    }
}

@media (max-width: 991.98px) {
    .hdr-ref {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .hdr-ref .logo-bar-area > .container,
    .hdr-ref .logo-bar-area > .layout-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Override aiz-core mobile search overlay (opacity:0 / translateY) */
    .hdr-ref .front-header-search,
    .hdr-ref .front-header-search.hdr-ref__search-panel,
    .hdr-ref .front-header-search.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: none !important;
    }

    /*
     * Mobile header grid — real boxes (no display:contents).
     * Safari/iOS has historically dropped or zero-sized children under
     * display:contents; stacking menu/logo/utils in one cell also hid the logo.
     * Row 1: brand (menu+logo) | utils — Row 2: full-width search.
     */
    .hdr-ref__logo-cluster {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 10px;
        width: 100%;
        position: relative;
    }

    .hdr-ref__col--start,
    .hdr-ref__col--center,
    .hdr-ref__col--end {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .hdr-ref__col--start {
        grid-row: 1;
        grid-column: 1;
        justify-content: flex-start;
        gap: 8px;
        overflow: visible;
    }

    .hdr-ref__col--end {
        grid-row: 1;
        grid-column: 2;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .hdr-ref__col--center {
        grid-row: 2;
        grid-column: 1 / -1;
        width: 100%;
    }

    .hdr-ref__logo-cluster .btn.d-lg-none,
    .hdr-ref__logo-cluster .hdr-ref__menu-btn {
        flex-shrink: 0;
        margin-right: 0 !important;
        z-index: 2;
    }

    .hdr-ref__logo-cluster .col-auto.pl-0 {
        flex: 0 1 auto;
        min-width: 72px;
        max-width: min(52vw, 180px);
        margin-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible;
        z-index: 1;
    }

    .hdr-ref__logo-cluster .col-auto.pl-0 a {
        display: flex !important;
        align-items: center;
        max-width: 100%;
        margin-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hdr-ref__logo-cluster .hdr-ref__utils {
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 2px;
        flex-shrink: 0;
        z-index: 2;
    }

    .hdr-ref__logo-cluster .front-header-search,
    .hdr-ref__logo-cluster .hdr-ref__search-panel {
        display: flex !important;
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 42px;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        -webkit-transform: none !important;
        background: transparent !important;
        z-index: 1;
    }

    .hdr-ref__search-back {
        display: none !important;
    }

    .hdr-ref .logo-bar-area .col-auto a {
        margin-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hdr-ref .logo-bar-area .col-auto img,
    .hdr-ref .logo-bar-area .col-auto .theme-img {
        display: block !important;
        height: 32px !important;
        max-height: 32px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain;
        object-position: left center;
    }

    /* Dark theme swaps light/dark assets — keep the active logo visible */
    [data-theme="dark"] .hdr-ref .logo-bar-area .col-auto img.theme-img--dark {
        display: block !important;
    }
    [data-theme="dark"] .hdr-ref .logo-bar-area .col-auto img.theme-img--light {
        display: none !important;
    }
    html:not([data-theme="dark"]) .hdr-ref .logo-bar-area .col-auto img.theme-img--light {
        display: block !important;
    }
    html:not([data-theme="dark"]) .hdr-ref .logo-bar-area .col-auto img.theme-img--dark {
        display: none !important;
    }

    /* Compact locale — flag | BDT */
    .hdr-ref .hdr-ref__locale {
        margin: 0;
    }

    .hdr-ref .hdr-ref__locale .aiz-locale__toggle,
    .hdr-ref .hdr-ref__locale-toggle {
        padding: 6px 8px;
        border-radius: 8px;
        border: 0;
        background: transparent;
    }

    .hdr-ref .aiz-locale__meta {
        flex-direction: row;
        align-items: center;
    }

    .hdr-ref .aiz-locale__value {
        margin-top: 0;
    }

    .hdr-ref .aiz-locale__value {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .hdr-ref .aiz-locale__flag {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .hdr-ref .aiz-locale__sep {
        display: inline-block;
        width: 1px;
        height: 18px;
        background: #d1d5db;
        flex-shrink: 0;
    }

    .hdr-ref .aiz-locale__code {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: var(--hdr-ink);
        line-height: 1;
    }

    .hdr-ref .aiz-locale__panel {
        right: 0 !important;
        left: auto !important;
        margin-top: 8px;
    }

    /* Cart icon — top row */
    .hdr-ref .hdr-ref__util--cart {
        min-width: 40px;
        padding: 6px 8px;
        gap: 0;
        border-radius: 8px;
    }

    .hdr-ref .hdr-ref__util--cart .hdr-ref__util-icon svg {
        width: 22px;
        height: 22px;
        stroke: var(--hdr-ink);
    }

    .hdr-ref .hdr-ref__util--cart .hdr-ref__util-badge {
        top: -4px;
        right: -2px;
        min-width: 17px;
        height: 17px;
        line-height: 17px;
        font-size: 10px;
        background: var(--hdr-primary);
        border: 2px solid #fff;
    }

    /* Search row — always visible pill */
    .hdr-ref .front-header-search .position-relative.flex-grow-1 {
        width: 100%;
        max-width: none;
        padding: 0 !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .hdr-ref .front-header-search .aiz-search-form {
        width: 100%;
    }

    .hdr-ref .front-header-search .aiz-search-form > .d-flex {
        align-items: center;
        width: 100%;
    }

    .hdr-ref .front-header-search .aiz-search-bar {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        height: 42px;
        min-height: 42px;
        display: flex;
        align-items: center;
        border-radius: 10px;
        background: #f5f5f5;
        border: none;
        box-shadow: none;
        padding: 0 12px 0 10px;
    }

    .hdr-ref .front-header-search .aiz-search-bar:focus-within {
        border: none;
        background: #f5f5f5;
        box-shadow: none;
    }

    .hdr-ref .front-header-search .aiz-search-cat {
        display: none;
    }

    .hdr-ref .front-header-search .aiz-search-divider {
        display: none;
    }

    .hdr-ref .front-header-search .aiz-search-submit {
        display: none;
    }

    .hdr-ref .front-header-search .aiz-search-field {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .hdr-ref .aiz-search-field__icon {
        width: 16px;
        height: 16px;
        margin-left: 2px;
    }

    .hdr-ref .aiz-search-field__input {
        font-size: 13px !important;
        padding-left: 8px !important;
    }

    .hdr-ref .aiz-search-field__input::placeholder {
        font-size: 12.5px;
        color: #9ca3af;
    }

    .hdr-ref .front-header-search .typed-search-box:not(.d-none) {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: calc(100% + 6px) !important;
        width: auto !important;
        max-height: min(60vh, 420px);
        overflow-y: auto;
        border-radius: 14px;
        border: 1px solid var(--hdr-line);
        box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
        background: #fff;
        z-index: 1040;
    }

    /* Mobile category tabs — horizontal scroll, start aligned (no edge clipping) */
    .hdr-ref__mobile-nav {
        border-top: none !important;
        background: #fff !important;
        overflow: hidden;
    }

    .hdr-ref .hdr-ref__mobile-nav > .container,
    .hdr-ref .hdr-ref__mobile-nav > .layout-container {
        max-width: 100% !important;
        width: 100%;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow: hidden;
    }

    .hdr-ref__mobile-nav-list {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0 2px;
        scroll-padding-inline: 12px;
        overscroll-behavior-x: contain;
    }

    .hdr-ref__mobile-nav-list::-webkit-scrollbar {
        display: none;
    }

    .hdr-ref__mobile-nav-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .hdr-ref__mobile-nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 11px 13px 9px;
        font-size: 13px;
        font-weight: 600;
        color: #111;
        text-decoration: none !important;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    }

    .hdr-ref__mobile-nav-link.is-active,
    .hdr-ref__mobile-nav-link:hover {
        color: #111;
        opacity: 0.65;
    }

    .hdr-ref__mobile-nav-link.is-active {
        opacity: 1;
        border-bottom-color: #111;
    }
}

@media (max-width: 575.98px) {
    .hdr-ref .logo-bar-area .col-auto img,
    .hdr-ref .logo-bar-area .col-auto .theme-img {
        height: 30px !important;
        max-height: 30px !important;
    }

    .hdr-ref .aiz-locale__code {
        font-size: 12px;
    }

    .hdr-ref__mobile-nav-link {
        padding: 10px 11px 8px;
        font-size: 12px;
    }
}

@media (min-width: 992px) {
    .hdr-ref {
        position: relative;
        padding-top: var(--hdr-vertical-space);
        padding-bottom: calc(var(--hdr-vertical-space) + var(--hdr-rainbow-height));
        box-sizing: border-box;
    }

    .hdr-ref.hdr-ref--reveal-nav {
        position: sticky;
        top: 0;
        z-index: 1020;
        padding-bottom: calc(var(--hdr-vertical-space) + var(--hdr-rainbow-height));
        transition: padding-bottom 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .hdr-ref.hdr-ref--reveal-nav:hover,
    .hdr-ref.hdr-ref--reveal-nav.hdr-ref--nav-open,
    .hdr-ref.hdr-ref--reveal-nav:focus-within {
        padding-bottom: calc(var(--hdr-vertical-space) + var(--hdr-rainbow-height) + var(--hdr-nav-reveal-h));
    }

    .hdr-ref .logo-bar-area > .container,
    .hdr-ref .logo-bar-area > .layout-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hdr-ref .hdr-ref__nav > .container,
    .hdr-ref .hdr-ref__nav > .layout-container {
        padding-bottom: 0 !important;
    }

    .hdr-ref .logo-bar-area > .container,
    .hdr-ref .logo-bar-area > .layout-container,
    .hdr-ref .hdr-ref__nav > .container,
    .hdr-ref .hdr-ref__nav > .layout-container,
    .hdr-ref .hdr-ref__mobile-nav > .container,
    .hdr-ref .hdr-ref__mobile-nav > .layout-container {
        max-width: min(var(--hdr-max), calc(100vw - var(--hdr-edge) * 2)) !important;
        width: 100%;
        padding-left: var(--hdr-edge) !important;
        padding-right: var(--hdr-edge) !important;
    }

    .hdr-ref .aiz-locale__sep {
        display: none;
    }

    .hdr-ref__mobile-nav {
        display: none !important;
    }

    .hdr-ref .front-header-search.hdr-ref__search-panel {
        position: static;
        display: flex !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none !important;
        flex: none !important;
        height: auto;
        min-height: 0;
        width: 100% !important;
        max-width: none;
        inset: auto !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .hdr-ref__col--center .front-header-search.hdr-ref__search-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hdr-ref .front-header-search.active .hdr-ref__search-back {
        display: none !important;
    }
}

@media (min-width: 1680px) {
    .hdr-ref {
        --hdr-max: 1840px;
    }
}
