/* ==========================================================
   HI-TECH PATHSHALA
   HEADER / NAVIGATION
   Production Ready
   Bootstrap 5 Compatible
   Vanilla JS Compatible
========================================================== */


/* ==========================================================
   HEADER
========================================================== */

.ht-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid rgba(15, 76, 129, 0.10);

    box-shadow:
        0 1px 0 rgba(15, 76, 129, 0.03),
        0 4px 16px rgba(15, 23, 42, 0.035);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* ==========================================================
   HEADER BOTTOM LINE
   Remains visible while page content scrolls
========================================================== */

.ht-header::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    width: 100%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(15, 76, 129, 0.08) 12%,
        rgba(15, 76, 129, 0.16) 50%,
        rgba(15, 76, 129, 0.08) 88%,
        transparent 100%
    );

    pointer-events: none;
}


/* ==========================================================
   HEADER CONTAINER
========================================================== */

.ht-header > .container {
    position: relative;
}


/* ==========================================================
   HEADER INNER
========================================================== */

.ht-header__inner {
    min-height: 74px;

    display: grid;

    grid-template-columns:
        auto
        auto
        minmax(260px, 1fr)
        auto;

    align-items: center;

    column-gap: 24px;
}


/* ==========================================================
   BRAND
========================================================== */

.ht-header__brand {
    min-width: max-content;

    display: flex;
    align-items: center;

    gap: 10px;
}


/* ==========================================================
   LOGO
========================================================== */

.ht-header__logo {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    line-height: 0;

    text-decoration: none;
}

.ht-header__logo img {
    display: block;

    width: auto;
    height: 48px;

    max-width: 180px;

    object-fit: contain;
}


/* ==========================================================
   MOBILE MENU BUTTON
========================================================== */

.ht-header__menu-btn {
    display: none;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border, #e2e8f0);
    border-radius: 9px;

    background: var(--surface, #ffffff);

    color: var(--heading, #0f172a);

    font-size: 1.15rem;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.ht-header__menu-btn:hover,
.ht-header__menu-btn:focus-visible {
    background: var(--surface-blue, #f1f7fc);

    border-color: rgba(15, 76, 129, 0.20);

    color: var(--primary, #0f4c81);

    outline: none;
}


/* ==========================================================
   PRIMARY NAVIGATION
========================================================== */

.ht-header__navigation {
    min-width: max-content;

    display: flex;
    align-items: center;
}


/* ==========================================================
   PRIMARY NAVIGATION LINK
========================================================== */

.ht-header__nav-link {
    position: relative;

    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 13px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: var(--heading, #0f172a);

    font-family: var(--font-body, inherit);
    font-size: 0.90rem;
    font-weight: 650;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.ht-header__nav-link:hover,
.ht-header__nav-link:focus-visible,
.ht-header__nav-link[aria-expanded="true"] {
    background: var(--surface-blue, #f1f7fc);

    color: var(--primary, #0f4c81);

    outline: none;
}

.ht-header__nav-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.68rem;

    transition: transform 0.2s ease;
}

.ht-header__nav-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}


/* ==========================================================
   SEARCH AREA
========================================================== */

.ht-header__search {
    width: 100%;
    min-width: 0;
}

.ht-header__search > * {
    width: 100%;
}


/* ==========================================================
   SEARCH WRAPPER
========================================================== */

.ht-header__search-wrapper {
    position: relative;

    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
}


/* ==========================================================
   SEARCH INPUT
========================================================== */

.ht-header__search-input {
    display: block;

    width: 100%;
    height: 44px;

    padding: 0 48px 0 16px;

    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;

    background: var(--surface, #ffffff);

    color: var(--heading, #0f172a);

    font-family: var(--font-body, inherit);
    font-size: 0.84rem;
    font-weight: 500;

    line-height: 44px;

    outline: none;

    box-shadow: none;

    appearance: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.ht-header__search-input:hover {
    border-color: rgba(15, 76, 129, 0.20);
}

.ht-header__search-input:focus {
    border-color: rgba(15, 76, 129, 0.38);

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(15, 76, 129, 0.07);
}

.ht-header__search-input::placeholder {
    color: var(--text-light, #94a3b8);

    opacity: 1;
}


/* ==========================================================
   SEARCH CLEAR BUTTON
========================================================== */

.ht-header__search-input::-webkit-search-cancel-button {
    cursor: pointer;
}


/* ==========================================================
   SEARCH BUTTON
========================================================== */

.ht-header__search-btn {
    position: absolute;

    top: 50%;
    right: 5px;

    z-index: 3;

    width: 35px;
    height: 35px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    transform: translateY(-50%);

    border: 0;
    border-radius: 8px;

    background: var(--surface-blue, #f1f7fc);

    color: var(--primary, #0f4c81);

    font-size: 0.88rem;

    line-height: 1;

    cursor: pointer;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.ht-header__search-btn:hover,
.ht-header__search-btn:focus-visible {
    background: var(--primary, #0f4c81);

    color: #ffffff;

    transform: translateY(-50%) scale(1.03);

    outline: none;
}

.ht-header__search-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: inherit;

    font-size: 0.86rem;

    line-height: 1;
}


/* ==========================================================
   HEADER ACTIONS
========================================================== */

.ht-header__actions {
    min-width: max-content;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;
}


/* ==========================================================
   CONTACT
========================================================== */

.ht-header__action-link {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 10px;

    border-radius: 8px;

    color: var(--heading, #0f172a);

    font-size: 0.88rem;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.ht-header__action-link:hover,
.ht-header__action-link:focus-visible {
    background: var(--surface-blue, #f1f7fc);

    color: var(--primary, #0f4c81);

    outline: none;
}


/* ==========================================================
   CART
========================================================== */

.ht-header__cart {
    position: relative;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color: var(--heading, #0f172a);

    text-decoration: none;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.ht-header__cart:hover,
.ht-header__cart:focus-visible {
    background: var(--surface-blue, #f1f7fc);

    color: var(--primary, #0f4c81);

    outline: none;
}

.ht-header__cart > i {
    display: inline-flex;

    color: inherit;

    font-size: 1.08rem;

    line-height: 1;
}


/* ==========================================================
   CART BADGE
========================================================== */

.ht-header__badge {
    position: absolute;

    top: 1px;
    right: 0;

    min-width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 4px;

    border-radius: 999px;

    background: var(--secondary, #c6922f);

    color: #ffffff;

    font-size: 0.60rem;
    font-weight: 700;

    line-height: 1;

    pointer-events: none;
}


/* ==========================================================
   LOGIN / PROFILE
========================================================== */

.ht-header__login,
.ht-header__profile {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 15px;

    border: 1px solid transparent;
    border-radius: 9px;

    background: var(--primary, #0f4c81);

    color: #ffffff;

    font-size: 0.86rem;
    font-weight: 650;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.ht-header__login:hover,
.ht-header__login:focus-visible,
.ht-header__profile:hover,
.ht-header__profile:focus-visible {
    background: var(--primary-dark, #0a365d);

    color: #ffffff;

    box-shadow:
        0 5px 14px rgba(15, 76, 129, 0.16);

    transform: translateY(-1px);

    outline: none;
}

.ht-header__login i,
.ht-header__profile i {
    display: inline-flex;

    color: inherit;

    font-size: 0.94rem;

    line-height: 1;
}


/* ==========================================================
   MEGA MENU
========================================================== */

.ht-mega-menu {
    position: absolute;

    top: 100%;
    left: 0;

    z-index: 990;

    width: 100%;

    padding: 12px 0 18px;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid var(--border, #e2e8f0);

    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.10);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-7px);

    pointer-events: none;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.ht-mega-menu.is-open {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}


/* ==========================================================
   MEGA MENU CONTAINER
========================================================== */

.ht-mega-menu > .container {
    position: relative;
}


/* ==========================================================
   MEGA MENU WRAPPER
========================================================== */

.ht-mega-menu__wrapper {
    width: 100%;

    display: grid;

    grid-template-columns: 215px minmax(0, 1fr);

    min-height: 300px;

    max-height: min(510px, calc(100vh - 95px));

    overflow: hidden;

    background: var(--surface, #ffffff);

    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;

    box-shadow:
        0 15px 38px rgba(15, 23, 42, 0.08);
}


/* ==========================================================
   MEGA SIDEBAR
========================================================== */

.ht-mega-menu__sidebar {
    min-width: 0;

    overflow-y: auto;

    background: var(--surface-blue, #f5f9fd);

    border-right: 1px solid var(--border, #e2e8f0);
}


/* ==========================================================
   MEGA SIDEBAR HEADER
========================================================== */

.ht-mega-menu__sidebar-header {
    padding: 16px 17px 8px;
}

.ht-mega-menu__sidebar-label {
    display: block;

    color: var(--text-light, #64748b);

    font-size: 0.66rem;
    font-weight: 750;

    letter-spacing: 0.08em;

    line-height: 1.2;

    text-transform: uppercase;
}


/* ==========================================================
   MEGA CATEGORY LIST
========================================================== */

.ht-mega-menu__categories {
    list-style: none;

    margin: 0;
    padding: 5px 9px 12px;
}

.ht-mega-menu__categories li {
    margin: 0;
    padding: 0;
}


/* ==========================================================
   MEGA CATEGORY BUTTON
========================================================== */

.ht-mega-menu__category {
    width: 100%;

    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 9px 11px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: var(--heading, #0f172a);

    font-size: 0.84rem;
    font-weight: 650;

    line-height: 1.2;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.ht-mega-menu__category > span {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.ht-mega-menu__category > i {
    flex-shrink: 0;

    color: var(--text-light, #64748b);

    font-size: 0.68rem;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.ht-mega-menu__category:hover,
.ht-mega-menu__category:focus-visible {
    background: #ffffff;

    color: var(--primary, #0f4c81);

    outline: none;
}

.ht-mega-menu__category.is-active {
    background: #ffffff;

    color: var(--primary, #0f4c81);

    box-shadow:
        0 2px 8px rgba(15, 76, 129, 0.05);
}

.ht-mega-menu__category.is-active > i {
    color: var(--secondary, #c6922f);

    transform: translateX(2px);
}


/* ==========================================================
   MEGA CONTENT
========================================================== */

.ht-mega-menu__content {
    min-width: 0;
    min-height: 0;

    overflow-y: auto;

    background: #ffffff;
}


/* ==========================================================
   MEGA PANEL
========================================================== */

.ht-mega-menu__panel {
    min-width: 0;

    padding: 25px 28px;
}

.ht-mega-menu__panel[hidden] {
    display: none !important;
}


/* ==========================================================
   PANEL HEADER
========================================================== */

.ht-mega-menu__panel-header {
    margin-bottom: 18px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.ht-mega-menu__eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--secondary, #c6922f);

    font-size: 0.66rem;
    font-weight: 750;

    letter-spacing: 0.08em;

    line-height: 1.2;

    text-transform: uppercase;
}

.ht-mega-menu__title {
    margin: 0;

    color: var(--heading, #0f172a);

    font-size: 1.22rem;
    font-weight: 750;

    line-height: 1.25;
}


/* ==========================================================
   LEVEL GRID
========================================================== */

.ht-mega-menu__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* ==========================================================
   LEVEL SECTION
========================================================== */

.ht-mega-menu__section {
    min-width: 0;

    padding: 15px;

    background: #ffffff;

    border: 1px solid var(--border, #e2e8f0);
    border-radius: 11px;
}

.ht-mega-menu__heading {
    margin: 0 0 10px;

    color: var(--heading, #0f172a);

    font-size: 0.86rem;
    font-weight: 750;

    line-height: 1.3;
}


/* ==========================================================
   MEGA MENU LIST
========================================================== */

.ht-mega-menu__list {
    display: flex;
    flex-direction: column;

    gap: 3px;

    list-style: none;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   MEGA MENU LINK
========================================================== */

.ht-mega-menu__link {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 7px;

    border-radius: 8px;

    color: var(--text, #334155);

    text-decoration: none;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.ht-mega-menu__link:hover,
.ht-mega-menu__link:focus-visible {
    background: var(--surface-blue, #f5f9fd);

    color: var(--primary, #0f4c81);

    outline: none;
}


/* ==========================================================
   MEGA LINK ICON
========================================================== */

.ht-mega-menu__link-icon,
.ht-mega-menu__resource-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(15, 76, 129, 0.07);

    color: var(--primary, #0f4c81);

    font-size: 0.84rem;
}


/* ==========================================================
   MEGA LINK CONTENT
========================================================== */

.ht-mega-menu__link-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.ht-mega-menu__link-content strong {
    display: block;

    overflow: hidden;

    color: inherit;

    font-size: 0.77rem;
    font-weight: 650;

    line-height: 1.25;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.ht-mega-menu__link-content small {
    display: block;

    overflow: hidden;

    color: var(--text-light, #64748b);

    font-size: 0.65rem;

    line-height: 1.2;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ==========================================================
   RESOURCE GRID
========================================================== */

.ht-mega-menu__resources {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}


/* ==========================================================
   RESOURCE LINK
========================================================== */

.ht-mega-menu__resource {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 13px;

    border: 1px solid var(--border, #e2e8f0);
    border-radius: 11px;

    background: #ffffff;

    color: var(--heading, #0f172a);

    font-size: 0.82rem;
    font-weight: 650;

    line-height: 1.3;

    text-decoration: none;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.ht-mega-menu__resource:hover,
.ht-mega-menu__resource:focus-visible {
    background: var(--surface-blue, #f5f9fd);

    border-color: rgba(15, 76, 129, 0.18);

    color: var(--primary, #0f4c81);

    transform: translateY(-1px);

    outline: none;
}


/* ==========================================================
   SCROLLBAR
========================================================== */

.ht-scrollbar {
    scrollbar-width: thin;

    scrollbar-color:
        rgba(100, 116, 139, 0.30)
        transparent;
}

.ht-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.ht-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.ht-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.30);

    border-radius: 999px;
}

.ht-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.48);
}


/* ==========================================================
   MOBILE OVERLAY
========================================================== */

.ht-mobile-overlay {
    position: fixed;

    inset: 0;

    z-index: 1090;

    background: rgba(15, 23, 42, 0.44);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.ht-mobile-overlay.is-active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* ==========================================================
   BODY SCROLL LOCK
========================================================== */

body.mobile-menu-open {
    overflow: hidden;
}


/* ==========================================================
   MOBILE MENU / DRAWER
========================================================== */

.ht-mobile-menu {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1100;

    width: min(390px, 90vw);
    height: 100dvh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    box-shadow:
        14px 0 42px rgba(15, 23, 42, 0.16);

    transform: translateX(-105%);

    visibility: hidden;

    transition:
        transform 0.28s ease,
        visibility 0.28s ease;
}

.ht-mobile-menu.is-open {
    transform: translateX(0);

    visibility: visible;
}


/* ==========================================================
   MOBILE MENU HEADER
========================================================== */

.ht-mobile-menu__header {
    min-height: 70px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 11px 17px;

    background: #ffffff;

    border-bottom: 1px solid var(--border, #e2e8f0);
}

.ht-mobile-menu__logo {
    min-width: 0;

    display: inline-flex;
    align-items: center;

    line-height: 0;

    text-decoration: none;
}

.ht-mobile-menu__logo img {
    display: block;

    width: auto;
    height: 43px;

    max-width: 170px;

    object-fit: contain;
}


/* ==========================================================
   MOBILE CLOSE BUTTON
========================================================== */

.ht-mobile-menu__close {
    width: 39px;
    height: 39px;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border, #e2e8f0);
    border-radius: 9px;

    background: #ffffff;

    color: var(--heading, #0f172a);

    font-size: 0.95rem;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.ht-mobile-menu__close:hover,
.ht-mobile-menu__close:focus-visible {
    background: var(--surface-blue, #f5f9fd);

    border-color: rgba(15, 76, 129, 0.18);

    color: var(--primary, #0f4c81);

    outline: none;
}


/* ==========================================================
   MOBILE SEARCH
========================================================== */

.ht-mobile-menu__search {
    flex-shrink: 0;

    padding: 13px 17px;

    background: #ffffff;

    border-bottom: 1px solid var(--border, #e2e8f0);
}


/* ==========================================================
   MOBILE SEARCH COMPONENT
========================================================== */

.ht-mobile-menu__search
.ht-header__search-wrapper {
    width: 100%;
}

.ht-mobile-menu__search
.ht-header__search-input {
    height: 44px;

    padding-left: 15px;

    border-radius: 10px;
}

.ht-mobile-menu__search
.ht-header__search-btn {
    width: 34px;
    height: 34px;

    right: 5px;
}


/* ==========================================================
   MOBILE NAVIGATION
========================================================== */

.ht-mobile-menu__navigation {
    flex: 1;

    min-height: 0;

    overflow-y: auto;

    padding: 5px 17px 18px;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(100, 116, 139, 0.30)
        transparent;
}

.ht-mobile-menu__navigation::-webkit-scrollbar {
    width: 5px;
}

.ht-mobile-menu__navigation::-webkit-scrollbar-track {
    background: transparent;
}

.ht-mobile-menu__navigation::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.30);

    border-radius: 999px;
}


/* ==========================================================
   MOBILE CATEGORY
========================================================== */

.ht-mobile-menu__category {
    border-bottom: 1px solid var(--border, #e2e8f0);
}


/* ==========================================================
   MOBILE CATEGORY TOGGLE
========================================================== */

.ht-mobile-menu__category-toggle {
    width: 100%;
    min-height: 51px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 10px 3px;

    border: 0;

    background: transparent;

    color: var(--heading, #0f172a);

    font-size: 0.91rem;
    font-weight: 650;

    line-height: 1.25;

    text-align: left;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.ht-mobile-menu__category-toggle:hover,
.ht-mobile-menu__category-toggle:focus-visible {
    color: var(--primary, #0f4c81);

    outline: none;
}

.ht-mobile-menu__category-toggle:not(.collapsed) {
    color: var(--primary, #0f4c81);
}

.ht-mobile-menu__category-name {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.ht-mobile-menu__category-toggle > i {
    flex-shrink: 0;

    color: var(--text-light, #64748b);

    font-size: 0.68rem;

    transition:
        color 0.18s ease,
        transform 0.22s ease;
}

.ht-mobile-menu__category-toggle:not(.collapsed) > i {
    color: var(--primary, #0f4c81);

    transform: rotate(180deg);
}


/* ==========================================================
   MOBILE CATEGORY CONTENT
========================================================== */

.ht-mobile-menu__category-content {
    padding: 1px 0 12px 7px;
}


/* ==========================================================
   MOBILE LEVEL
========================================================== */

.ht-mobile-menu__level {
    padding: 8px 0 4px;
}

.ht-mobile-menu__level-title {
    margin: 0 0 6px;

    color: var(--secondary, #c6922f);

    font-size: 0.65rem;
    font-weight: 750;

    letter-spacing: 0.07em;

    line-height: 1.3;

    text-transform: uppercase;
}


/* ==========================================================
   MOBILE LIST
========================================================== */

.ht-mobile-menu__list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.ht-mobile-menu__list li {
    margin: 0;
    padding: 0;
}


/* ==========================================================
   MOBILE ITEM
========================================================== */

.ht-mobile-menu__item {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 43px;

    padding: 6px 6px;

    border-radius: 8px;

    color: var(--text, #334155);

    font-size: 0.83rem;
    font-weight: 550;

    line-height: 1.25;

    text-decoration: none;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.ht-mobile-menu__item:hover,
.ht-mobile-menu__item:focus-visible {
    background: var(--surface-blue, #f5f9fd);

    color: var(--primary, #0f4c81);

    outline: none;
}


/* ==========================================================
   MOBILE ITEM ICON
========================================================== */

.ht-mobile-menu__item-icon {
    width: 31px;
    height: 31px;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(15, 76, 129, 0.07);

    color: var(--primary, #0f4c81);

    font-size: 0.79rem;
}


/* ==========================================================
   MOBILE ITEM LABEL
========================================================== */

.ht-mobile-menu__item-label {
    min-width: 0;

    flex: 1;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ==========================================================
   MOBILE ITEM ARROW
========================================================== */

.ht-mobile-menu__item > i:last-child {
    margin-left: auto;

    flex-shrink: 0;

    color: var(--text-light, #94a3b8);

    font-size: 0.66rem;
}


/* ==========================================================
   MOBILE SECONDARY LINKS
========================================================== */

.ht-mobile-menu__secondary {
    display: flex;
    flex-direction: column;

    gap: 2px;

    margin-top: 12px;
    padding-top: 10px;

    border-top: 1px solid var(--border, #e2e8f0);
}


/* ==========================================================
   MOBILE SECONDARY LINK
========================================================== */

.ht-mobile-menu__link {
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 7px 6px;

    border-radius: 8px;

    color: var(--heading, #0f172a);

    font-size: 0.85rem;
    font-weight: 600;

    line-height: 1.2;

    text-decoration: none;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}

.ht-mobile-menu__link:hover,
.ht-mobile-menu__link:focus-visible {
    background: var(--surface-blue, #f5f9fd);

    color: var(--primary, #0f4c81);

    outline: none;
}


/* ==========================================================
   SECONDARY LINK ICON
========================================================== */

.ht-mobile-menu__link-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: rgba(15, 76, 129, 0.06);

    color: var(--primary, #0f4c81);

    font-size: 0.85rem;
}


/* ==========================================================
   MOBILE FOOTER
========================================================== */

.ht-mobile-menu__footer {
    flex-shrink: 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

    padding: 12px 17px 15px;

    background: #ffffff;

    border-top: 1px solid var(--border, #e2e8f0);
}


/* ==========================================================
   MOBILE AUTH BUTTON
========================================================== */

.ht-mobile-menu__auth-btn {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 11px;

    border-radius: 9px;

    font-size: 0.82rem;
    font-weight: 650;

    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.ht-mobile-menu__auth-btn i {
    font-size: 0.88rem;
}


/* ==========================================================
   MOBILE PRIMARY AUTH
========================================================== */

.ht-mobile-menu__auth-btn--primary {
    border: 1px solid var(--primary, #0f4c81);

    background: var(--primary, #0f4c81);

    color: #ffffff;
}

.ht-mobile-menu__auth-btn--primary:hover,
.ht-mobile-menu__auth-btn--primary:focus-visible {
    border-color: var(--primary-dark, #0a365d);

    background: var(--primary-dark, #0a365d);

    color: #ffffff;

    box-shadow:
        0 4px 12px rgba(15, 76, 129, 0.14);

    outline: none;
}


/* ==========================================================
   MOBILE OUTLINE AUTH
========================================================== */

.ht-mobile-menu__auth-btn--outline {
    border: 1px solid var(--border, #e2e8f0);

    background: #ffffff;

    color: var(--heading, #0f172a);
}

.ht-mobile-menu__auth-btn--outline:hover,
.ht-mobile-menu__auth-btn--outline:focus-visible {
    border-color: rgba(15, 76, 129, 0.30);

    background: var(--surface-blue, #f5f9fd);

    color: var(--primary, #0f4c81);

    outline: none;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1199.98px) {

    .ht-header__inner {
        grid-template-columns:
            auto
            auto
            minmax(220px, 1fr)
            auto;

        column-gap: 17px;
    }

    .ht-header__action-link {
        display: none;
    }

    .ht-mega-menu__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ht-mega-menu__resources {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .ht-mega-menu__wrapper {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .ht-mega-menu__panel {
        padding: 22px 23px;
    }
}


/* ==========================================================
   TABLET / MOBILE
========================================================== */

@media (max-width: 991.98px) {

    .ht-header__inner {
        min-height: 68px;

        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;

        column-gap: 13px;
    }


    /* Brand */

    .ht-header__brand {
        gap: 8px;
    }


    /* Mobile toggle */

    .ht-header__menu-btn {
        display: inline-flex;
    }


    /* Desktop navigation */

    .ht-header__navigation {
        display: none;
    }


    /* Search remains visible on tablet */

    .ht-header__search {
        grid-column: 2;
    }


    /* Actions */

    .ht-header__actions {
        grid-column: 3;

        gap: 4px;
    }


    /* Login text */

    .ht-header__login,
    .ht-header__profile {
        width: 38px;
        height: 38px;

        padding: 0;
    }

    .ht-header__login span,
    .ht-header__profile span {
        display: none;
    }


    /* Logo */

    .ht-header__logo img {
        height: 43px;

        max-width: 165px;
    }


    /* Mega menu hidden */

    .ht-mega-menu {
        display: none;
    }
}


/* ==========================================================
   SMALL TABLET / LARGE MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .ht-header__inner {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;

        column-gap: 9px;
    }


    /* Hide desktop search */

    .ht-header__search {
        display: none;
    }


    /* Actions */

    .ht-header__actions {
        gap: 3px;
    }


    /* Cart */

    .ht-header__cart {
        width: 37px;
        height: 37px;
    }


    /* Login */

    .ht-header__login,
    .ht-header__profile {
        width: 37px;
        height: 37px;
    }


    /* Logo */

    .ht-header__logo img {
        height: 42px;

        max-width: 160px;
    }


    /* Drawer */

    .ht-mobile-menu {
        width: min(380px, 91vw);
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 575.98px) {

    .ht-header__inner {
        min-height: 64px;

        column-gap: 7px;
    }


    /* Menu */

    .ht-header__menu-btn {
        width: 37px;
        height: 37px;
    }


    /* Logo */

    .ht-header__logo img {
        height: 39px;

        max-width: 145px;
    }


    /* Actions */

    .ht-header__actions {
        gap: 1px;
    }


    .ht-header__cart {
        width: 35px;
        height: 35px;
    }

    .ht-header__login,
    .ht-header__profile {
        width: 35px;
        height: 35px;
    }


    /* Badge */

    .ht-header__badge {
        top: 0;
        right: -1px;
    }


    /* Mobile drawer */

    .ht-mobile-menu {
        width: min(360px, 93vw);
    }


    /* Mobile footer */

    .ht-mobile-menu__footer {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   VERY SMALL DEVICES
========================================================== */

@media (max-width: 374.98px) {

    .ht-header__logo img {
        height: 36px;

        max-width: 130px;
    }

    .ht-header__menu-btn {
        width: 35px;
        height: 35px;
    }

    .ht-header__cart,
    .ht-header__login,
    .ht-header__profile {
        width: 33px;
        height: 33px;
    }

    .ht-header__actions {
        gap: 0;
    }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .ht-header *,
    .ht-mega-menu,
    .ht-mobile-menu,
    .ht-mobile-overlay {
        transition: none !important;
    }
}