/* =========================================================
   HEAVEN TOUCH - KLOTHEN STYLE HEADER
========================================================= */

:root {
    --ht-orange: #f58220;
    --ht-orange-soft: #fff4ea;

    --ht-black: #111111;
    --ht-white: #ffffff;

    --ht-text: #1b1b1b;
    --ht-muted: #8c8c8c;
    --ht-border: #e7e7e7;
    --ht-surface: #ffffff;
    --ht-surface-soft: #fafafa;

    --ht-header-height: 98px;
    --ht-mobile-height: 72px;

    --ht-shadow:
        0 12px 32px rgba(0, 0, 0, 0.08);

    --ht-transition: 0.25s ease;
}


/* =========================================================
   BASE
========================================================= */

.ht-header,
.ht-header * {
    box-sizing: border-box;
}

.ht-header a {
    text-decoration: none;
}

.ht-desktop-header {
    position: relative;
    z-index: 9000;

    height: var(--ht-header-height);

    background: var(--ht-white);
    border-bottom: 1px solid var(--ht-border);
}

.ht-header-inner {
    width: 100%;
    height: 100%;

    margin: 0 auto;
    padding: 0 56px;

    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    align-items: center;
}


/* =========================================================
   LOGO
========================================================= */

.ht-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ht-header-logo a {
    display: inline-flex;
    align-items: center;
}

.ht-header-logo img {
    display: block;

    width: auto;
    max-width: 180px;
    max-height: 58px;

    object-fit: contain;
}


/* =========================================================
   DESKTOP NAV
========================================================= */

.ht-desktop-nav {
    height: 100%;
}

.ht-desktop-nav > ul {
    height: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;

    list-style: none;
}

.ht-desktop-nav > ul > li {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;
}

.ht-desktop-nav > ul > li > a {
    height: 100%;

    display: flex;
    align-items: center;

    color: var(--ht-text);

    font-size: 18px;
    font-weight: 500;
    line-height: 1;

    white-space: nowrap;

    transition:
        color var(--ht-transition);
}

.ht-desktop-nav > ul > li:hover > a {
    color: var(--ht-orange);
}


/* active / hover underline */

.ht-desktop-nav > ul > li > a::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--ht-orange);

    transform: translateX(-50%);

    transition:
        width var(--ht-transition);
}

.ht-desktop-nav > ul > li:hover > a::after {
    width: 100%;
}


/* =========================================================
   FIRST DROPDOWN
========================================================= */

.ht-nav-dropdown {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 310px;

    padding: 14px 0;

    background: var(--ht-white);
    border: 1px solid var(--ht-border);

    box-shadow: var(--ht-shadow);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    pointer-events: none;

    transition:
        opacity var(--ht-transition),
        visibility var(--ht-transition),
        transform var(--ht-transition);
}

.ht-nav-parent:hover > .ht-nav-dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.ht-nav-dropdown > ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.ht-nav-dropdown > ul > li {
    position: relative;
}

.ht-nav-dropdown > ul > li > a {
    min-height: 48px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #8a8a8a;

    font-size: 16px;
    font-weight: 400;

    transition:
        color var(--ht-transition),
        background var(--ht-transition);
}

.ht-nav-dropdown > ul > li:hover > a {
    color: var(--ht-orange);
    background: var(--ht-surface-soft);
}

.ht-nav-dropdown > ul > li > a i {
    font-size: 11px;
}


/* =========================================================
   SECOND LEVEL SUBMENU
========================================================= */

.ht-nav-submenu {
    position: absolute;

    top: 0;
    left: 100%;

    min-width: 320px;

    padding: 14px 0;

    background: var(--ht-white);
    border: 1px solid var(--ht-border);

    box-shadow: var(--ht-shadow);

    opacity: 0;
    visibility: hidden;

    transform: translateX(8px);

    pointer-events: none;

    transition:
        opacity var(--ht-transition),
        visibility var(--ht-transition),
        transform var(--ht-transition);
}

.ht-has-submenu:hover > .ht-nav-submenu {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);

    pointer-events: auto;
}

.ht-nav-submenu ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.ht-nav-submenu a {
    min-height: 48px;

    padding: 0 18px;

    display: flex;
    align-items: center;

    color: #8a8a8a;

    font-size: 16px;

    transition:
        color var(--ht-transition),
        background var(--ht-transition);
}

.ht-nav-submenu a:hover {
    color: var(--ht-orange);
    background: var(--ht-surface-soft);
}


/* =========================================================
   RIGHT ACTIONS
========================================================= */

.ht-header-actions {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 20px;
}

.ht-header-action {
    position: relative;

    width: 30px;
    height: 42px;

    padding: 0;
    border: 0;

    background: transparent;
    color: var(--ht-black);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;

    cursor: pointer;

    transition:
        color var(--ht-transition),
        transform var(--ht-transition);
}

.ht-header-action:hover {
    color: var(--ht-orange);
}

.ht-header-action:active {
    transform: scale(0.94);
}


/* cart badge */

.ht-cart-count,
.ht-mobile-cart .mobilecart-qty {
    position: absolute;

    top: 2px;
    right: -9px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    border-radius: 50px;

    background: var(--ht-black);
    color: var(--ht-white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   MOBILE HEADER
========================================================= */

.ht-mobile-header {
    display: none;
}


/* =========================================================
   MOBILE MENU WRAPPER
========================================================= */

.ht-mobile-menu {
    position: fixed;

    inset: 0;

    z-index: 999999;

    visibility: hidden;
    pointer-events: none;
}

.ht-mobile-menu.active {
    visibility: visible;
    pointer-events: auto;
}

.ht-menu-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;

    background: rgba(0, 0, 0, 0.68);

    opacity: 0;

    transition:
        opacity var(--ht-transition);
}

.ht-mobile-menu.active .ht-menu-overlay {
    opacity: 1;
}


/* =========================================================
   MOBILE MENU PANEL
========================================================= */

.ht-menu-panel {
    position: absolute;

    top: 0;
    left: 0;
    bottom: 0;

    width: min(84vw, 410px);

    background: var(--ht-white);

    overflow-y: auto;
    overflow-x: hidden;

    transform: translateX(-100%);

    transition:
        transform 0.3s ease;
}

.ht-mobile-menu.active .ht-menu-panel {
    transform: translateX(0);
}


/* =========================================================
   MOBILE MENU TABS
========================================================= */

.ht-menu-tabs {
    position: sticky;

    top: 0;

    z-index: 20;

    min-height: 70px;

    display: grid;
    grid-template-columns: 1fr 1fr 60px;

    background: #f4f4f4;

    border-bottom: 1px solid var(--ht-border);
}

.ht-menu-tab {
    position: relative;

    border: 0;
    border-right: 1px solid var(--ht-border);

    background: transparent;

    color: var(--ht-black);

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 0.2px;

    cursor: pointer;
}

.ht-menu-tab.is-active {
    background: #efefef;
}

.ht-menu-tab.is-active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 2px;

    background: var(--ht-orange);
}

.ht-menu-close {
    border: 0;

    background: #353535;
    color: var(--ht-white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    cursor: pointer;
}


/* =========================================================
   TAB CONTENT
========================================================= */

.ht-menu-content {
    display: none;
}

.ht-menu-content.is-active {
    display: block;
}


/* =========================================================
   MOBILE MAIN MENU
========================================================= */

.ht-mobile-list,
.ht-mobile-submenu,
.ht-mobile-childmenu,
.ht-category-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.ht-mobile-parent,
.ht-mobile-list > li {
    border-bottom: 1px solid var(--ht-border);
}

.ht-mobile-row {
    min-height: 62px;

    display: flex;
    align-items: center;
}

.ht-mobile-row > a,
.ht-mobile-list > li > a {
    min-height: 62px;

    padding: 0 24px;

    flex: 1;

    display: flex;
    align-items: center;

    color: var(--ht-black);

    font-size: 18px;
    font-weight: 400;
}

.ht-mobile-toggle,
.ht-mobile-child-toggle {
    width: 64px;
    min-height: 62px;

    border: 0;

    background: transparent;
    color: #666666;

    font-size: 18px;

    cursor: pointer;
}

.ht-mobile-toggle.active i,
.ht-mobile-child-toggle.active i {
    transform: rotate(45deg);
}


/* =========================================================
   MOBILE SUBMENU
========================================================= */

.ht-mobile-submenu,
.ht-mobile-childmenu {
    display: none;

    background: #fafafa;
}

.ht-mobile-submenu.active,
.ht-mobile-childmenu.active {
    display: block;
}

.ht-mobile-submenu > li,
.ht-mobile-childmenu > li {
    border-top: 1px solid var(--ht-border);
}

.ht-mobile-sub-row > a {
    padding-left: 36px;

    font-size: 16px;
}

.ht-mobile-childmenu a {
    min-height: 48px;

    padding: 0 24px 0 52px;

    display: flex;
    align-items: center;

    color: var(--ht-muted);

    font-size: 14px;
}

.ht-mobile-row a:hover,
.ht-mobile-childmenu a:hover {
    color: var(--ht-orange);
}


/* =========================================================
   MOBILE ACTIONS
========================================================= */

.ht-menu-action {
    min-height: 62px;

    padding: 0 24px;

    border-bottom: 1px solid var(--ht-border);

    display: flex;
    align-items: center;

    gap: 14px;

    color: var(--ht-black);

    font-size: 18px;
}

.ht-menu-action i {
    width: 20px;

    color: var(--ht-black);

    font-size: 19px;
}

.ht-menu-action:hover,
.ht-menu-action:hover i {
    color: var(--ht-orange);
}


/* =========================================================
   HELP AREA
========================================================= */

.ht-menu-help {
    padding: 26px 24px 30px;

    border-bottom: 1px solid var(--ht-border);
}

.ht-menu-help > strong {
    display: block;

    margin-bottom: 14px;

    color: var(--ht-black);

    font-size: 17px;
    font-weight: 500;
}

.ht-menu-help a {
    margin-top: 10px;

    display: flex;
    align-items: center;

    gap: 13px;

    color: #8b8b8b;

    font-size: 15px;
}

.ht-menu-help a i {
    width: 20px;

    color: #a1a1a1;
}

.ht-menu-help a:hover,
.ht-menu-help a:hover i {
    color: var(--ht-orange);
}


/* =========================================================
   CATEGORY TAB
========================================================= */

.ht-category-list li {
    border-bottom: 1px solid var(--ht-border);
}

.ht-category-list a {
    min-height: 70px;

    padding: 9px 20px;

    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;

    gap: 13px;

    color: var(--ht-black);
}

.ht-category-list img {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;
}

.ht-category-list span {
    font-size: 16px;
}

.ht-category-list i {
    color: #999999;

    font-size: 11px;
}

.ht-category-list a:hover span,
.ht-category-list a:hover i {
    color: var(--ht-orange);
}


/* =========================================================
   SEARCH OVERLAY
========================================================= */

.ht-search-overlay {
    position: fixed;

    inset: 0;

    z-index: 1000000;

    padding: 40px;

    background: rgba(255, 255, 255, 0.98);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    transition:
        opacity var(--ht-transition),
        visibility var(--ht-transition),
        transform var(--ht-transition);
}

.ht-search-overlay.active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.ht-search-close {
    position: absolute;

    top: 25px;
    right: 30px;

    width: 48px;
    height: 48px;

    border: 0;

    background: transparent;
    color: var(--ht-black);

    font-size: 28px;

    cursor: pointer;
}

.ht-search-close:hover {
    color: var(--ht-orange);
}

.ht-search-content {
    width: min(760px, 100%);

    margin: 130px auto 0;
}

.ht-search-content form {
    position: relative;

    border-bottom: 2px solid var(--ht-black);
}

.ht-search-content input {
    width: 100%;
    height: 68px;

    padding: 0 70px 0 0;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--ht-black);

    font-size: 28px;
}

.ht-search-content button[type="submit"] {
    position: absolute;

    top: 0;
    right: 0;

    width: 60px;
    height: 68px;

    border: 0;

    background: transparent;
    color: var(--ht-black);

    font-size: 23px;

    cursor: pointer;
}

.ht-search-content button[type="submit"]:hover {
    color: var(--ht-orange);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .ht-header-inner {
        grid-template-columns: 200px minmax(0, 1fr) 180px;

        padding: 0 28px;
    }

    .ht-desktop-nav > ul {
        gap: 26px;
    }

    .ht-desktop-nav > ul > li > a {
        font-size: 16px;
    }

    .ht-header-logo img {
        max-width: 150px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .ht-desktop-header {
        display: none;
    }

    .ht-mobile-header {
        display: block;

        height: var(--ht-mobile-height);

        background: var(--ht-white);

        border-bottom: 1px solid var(--ht-border);
    }

    .ht-mobile-header-inner {
        height: 100%;

        padding: 0 18px;

        display: grid;
        grid-template-columns: 80px minmax(0, 1fr) 90px;
        align-items: center;
    }


    /* hamburger */

    .ht-mobile-menu-button {
        width: 40px;
        height: 40px;

        padding: 0;

        border: 0;

        background: transparent;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        gap: 6px;

        cursor: pointer;
    }

    .ht-mobile-menu-button span {
        display: block;

        height: 1.5px;

        background: var(--ht-black);
    }

    .ht-mobile-menu-button span:nth-child(1) {
        width: 30px;
    }

    .ht-mobile-menu-button span:nth-child(2) {
        width: 22px;
    }

    .ht-mobile-menu-button span:nth-child(3) {
        width: 30px;
    }


    /* logo */

    .ht-mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ht-mobile-logo a {
        display: inline-flex;
        align-items: center;
    }

    .ht-mobile-logo img {
        display: block;

        width: auto;
        max-width: 145px;
        max-height: 48px;

        object-fit: contain;
    }


    /* actions */

    .ht-mobile-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 16px;
    }

    .ht-mobile-action {
        position: relative;

        width: 28px;
        height: 40px;

        padding: 0;
        border: 0;

        background: transparent;
        color: var(--ht-black);

        display: inline-flex;
        align-items: center;
        justify-content: center;

        font-size: 22px;

        cursor: pointer;
    }

    .ht-mobile-action:hover {
        color: var(--ht-orange);
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .ht-mobile-header-inner {
        grid-template-columns: 62px minmax(0, 1fr) 78px;

        padding: 0 14px;
    }

    .ht-mobile-logo img {
        max-width: 122px;
        max-height: 44px;
    }

    .ht-mobile-actions {
        gap: 13px;
    }

    .ht-mobile-action {
        font-size: 21px;
    }

    .ht-menu-panel {
        width: 94vw;
    }

}



/* =========================================================
   HEAVEN TOUCH MOBILE SIDEBAR - EXACT ROW FIX
   Keep this at the VERY END of header CSS
========================================================= */

@media (max-width: 991px) {

    /* Main menu must always be one column */
    .ht-mobile-navigation,
    .ht-mobile-list,
    .ht-mobile-list > li,
    .ht-mobile-parent {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        clear: both !important;
    }

    .ht-mobile-list {
        margin: 0 !important;
        padding: 0 !important;
        grid-template-columns: none !important;
        column-count: 1 !important;
        gap: 0 !important;
    }

    .ht-mobile-list > li {
        margin: 0 !important;
        padding: 0 !important;

        border-bottom: 1px solid #e7e7e7 !important;

        background: #ffffff;
    }


    /* Each menu row */
    .ht-mobile-row {
        width: 100% !important;
        min-height: 62px;

        display: flex !important;
        align-items: center;
        justify-content: space-between;

        margin: 0 !important;

        background: #ffffff;
    }


    /* Normal links */
    .ht-mobile-list > li > a,
    .ht-mobile-row > a {
        width: auto !important;
        min-width: 0;
        min-height: 62px;

        flex: 1 1 auto !important;

        margin: 0 !important;
        padding: 0 24px !important;

        display: flex !important;
        align-items: center;

        border: 0 !important;

        background: #ffffff !important;
        color: #111111 !important;

        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 1.2;

        text-transform: none !important;
    }


    /* Plus button */
    .ht-mobile-toggle,
    .ht-mobile-child-toggle {
        width: 62px !important;
        min-width: 62px !important;
        height: 62px !important;
        min-height: 62px !important;

        flex: 0 0 62px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;

        background: #ffffff !important;
        color: #555555 !important;

        display: flex !important;
        align-items: center;
        justify-content: center;

        font-size: 18px !important;
    }


    /* Orange on hover/open */
    .ht-mobile-row > a:hover,
    .ht-mobile-list > li > a:hover {
        color: #f58220 !important;
    }

    .ht-mobile-toggle:hover,
    .ht-mobile-child-toggle:hover,
    .ht-mobile-toggle.active,
    .ht-mobile-child-toggle.active {
        color: #f58220 !important;
    }


    /* Submenus */
    .ht-mobile-submenu,
    .ht-mobile-childmenu {
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        display: none;

        background: #fafafa;

        list-style: none;
    }

    .ht-mobile-submenu.active,
    .ht-mobile-childmenu.active {
        display: block !important;
    }

    .ht-mobile-submenu > li,
    .ht-mobile-childmenu > li {
        display: block !important;
        width: 100% !important;

        margin: 0 !important;

        border-top: 1px solid #eeeeee;
    }


    /* Subcategory row */
    .ht-mobile-sub-row {
        width: 100% !important;

        display: flex !important;
    }

    .ht-mobile-sub-row > a {
        padding-left: 38px !important;

        font-size: 16px !important;

        background: #fafafa !important;
    }


    /* Child links */
    .ht-mobile-childmenu a {
        width: 100% !important;
        min-height: 48px;

        padding: 0 24px 0 52px !important;

        display: flex !important;
        align-items: center;

        color: #777777 !important;

        font-size: 14px !important;
    }


    /* Search / Account must also stay full-width */
    .ht-menu-action {
        width: 100% !important;
        min-height: 62px;

        margin: 0 !important;
        padding: 0 24px !important;

        display: flex !important;
        align-items: center;

        gap: 16px;

        border-bottom: 1px solid #e7e7e7;

        background: #ffffff;

        color: #111111;

        font-size: 18px;
    }


    /* Help block */
    .ht-menu-help {
        width: 100% !important;

        padding: 28px 24px !important;

        background: #ffffff;

        border-bottom: 1px solid #e7e7e7;
    }
}



@media (max-width: 991px) {

    /* Main expandable category */

    .ht-mobile-category-toggle,
    .ht-mobile-child-category-toggle {
        width: 100%;
        min-height: 62px;

        padding: 0 24px;

        border: 0;
        background: #ffffff;

        display: flex;
        align-items: center;
        justify-content: space-between;

        color: #111111;

        font-size: 18px;
        font-weight: 400;

        text-align: left;

        cursor: pointer;
    }

    .ht-mobile-category-toggle span:first-child,
    .ht-mobile-child-category-toggle span:first-child {
        flex: 1;
    }


    /* + / - */

    .ht-mobile-plus {
        width: 26px;
        height: 26px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: #555555;

        font-size: 15px;
    }

    .ht-mobile-category-toggle.is-open .ht-mobile-plus,
    .ht-mobile-child-category-toggle.is-open .ht-mobile-plus {
        color: #111111;
    }


    /* Submenu */

    .ht-mobile-submenu {
        display: none;

        width: 100%;

        margin: 0;
        padding: 0;

        list-style: none;

        background: #fafafa;
    }

    .ht-mobile-submenu.is-open {
        display: block;
    }

    .ht-mobile-submenu > li {
        width: 100%;

        border-top: 1px solid #e7e7e7;
    }

    .ht-mobile-submenu > li > a {
        min-height: 58px;

        padding: 0 38px;

        display: flex;
        align-items: center;

        color: #858585;

        font-size: 16px;
        font-weight: 400;
    }


    /* Subcategory with child */

    .ht-mobile-child-category-toggle {
        min-height: 58px;

        padding-left: 38px;

        background: #fafafa;

        color: #777777;

        font-size: 16px;
    }


    /* Third level */

    .ht-mobile-childmenu {
        display: none;

        margin: 0;
        padding: 0;

        list-style: none;

        background: #f5f5f5;
    }

    .ht-mobile-childmenu.is-open {
        display: block;
    }

    .ht-mobile-childmenu li {
        border-top: 1px solid #e8e8e8;
    }

    .ht-mobile-childmenu a {
        min-height: 52px;

        padding: 0 52px;

        display: flex;
        align-items: center;

        color: #888888;

        font-size: 14px;
    }


    /* View all */

    .ht-mobile-view-all {
        color: #f58220 !important;
        font-weight: 500 !important;
    }


    /* Hover */

    .ht-mobile-category-toggle:hover,
    .ht-mobile-child-category-toggle:hover,
    .ht-mobile-submenu a:hover,
    .ht-mobile-childmenu a:hover {
        color: #f58220;
    }
}


