/* PW Home Category Tree v1.5 */

.pw-home-category-tree {

    background: #ffffff;

    border: 1px solid #d9d9d9;

    border-radius: 4px;

    margin-bottom: 20px;

    overflow: hidden;

}



.pw-hct-title {

    background: #2f5f8f;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.2;

    padding: 10px 13px;

    text-transform: uppercase;

}



.pw-hct-list {

    list-style: none;

    margin: 0;

    padding: 0;

}



.pw-hct-item {

    border-bottom: 1px solid #eeeeee;

    margin: 0;

    padding: 0;

}



.pw-hct-item:last-child {

    border-bottom: 0;

}



.pw-hct-link {

    appearance: none;

    -webkit-appearance: none;

    background: transparent;

    border: 0;

    box-shadow: none;

    color: #222222;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.15;

    margin: 0;

    min-height: 0;

    padding: 8px 13px;

    text-align: left;

    text-decoration: none;

    width: 100%;

}



.pw-hct-single {

    padding-left: 31px;

}



.pw-hct-link:hover,

.pw-hct-child-link:hover {

    background: #f6f9fc;

    color: #b400b8;

    text-decoration: none;

}



.pw-hct-arrow {

    color: #2f5f8f;

    flex: 0 0 10px;

    font-size: 18px;

    font-weight: 700;

    line-height: 1;

    transition: transform 0.25s ease;

}



.pw-hct-arrow::before {

    content: "›";

}



.pw-hct-item.is-open > .pw-hct-toggle .pw-hct-arrow {

    transform: rotate(90deg);

}



.pw-hct-level-2 {

    background: #fafafa;

    border-top: 1px solid #eeeeee;

    max-height: 0;

    overflow: hidden;

    padding: 0;

    transition: max-height 0.28s ease;

}



.pw-hct-level-2.is-open {

    max-height: 900px;

}



.pw-hct-child-item {

    margin: 0;

    padding: 0;

}



.pw-hct-child-link {

    color: #555555;

    display: block;

    font-size: 13px;

    line-height: 1.15;

    padding: 7px 13px 7px 34px;

    text-decoration: none;

}



.pw-hct-child-link:before {

    content: "–";

    color: #999999;

    margin-right: 7px;

}



.pw-hct-view-all .pw-hct-child-link {

    color: #2f5f8f;

    font-weight: 700;

}



@media (max-width: 767px) {

    .pw-home-category-tree {

        margin-bottom: 14px;

    }



    .pw-hct-title {

        font-size: 14px;

        padding: 9px 12px;

    }



    .pw-hct-link {

        font-size: 14px;

        padding: 9px 12px;

    }



    .pw-hct-single {

        padding-left: 30px;

    }



    .pw-hct-child-link {

        font-size: 13px;

        padding-top: 8px;

        padding-bottom: 8px;

    }

}



/* Mobile header category button - v1.6 */

.pw-hct-mobile-wrap {

    display: none;

}



@media (max-width: 767px) {

    .pw-home-category-tree:not(.pw-home-category-tree-mobile) {

        display: none;

    }



    .pw-hct-mobile-wrap {

        display: block;

        margin: 8px 10px 10px;

        position: relative;

        z-index: 20;

    }



    .pw-hct-mobile-button {

        appearance: none;

        -webkit-appearance: none;

        align-items: center;

        background: #2f5f8f;

        border: 0;

        border-radius: 4px;

        color: #ffffff;

        cursor: pointer;

        display: inline-flex;

        font-size: 14px;

        font-weight: 700;

        gap: 7px;

        line-height: 1.1;

        padding: 9px 12px;

        text-transform: uppercase;

        width: auto;

    }



    .pw-hct-mobile-button:hover,

    .pw-hct-mobile-button:focus {

        background: #244d75;

        color: #ffffff;

    }



    .pw-hct-mobile-icon {

        font-size: 16px;

        line-height: 1;

    }



    .pw-hct-mobile-panel {

        margin-top: 8px;

    }



    .pw-home-category-tree-mobile {

        margin-bottom: 0;

    }

}



/* Mobile injected category button - v1.7 */

.pw-hct-mobile-injected {

    display: none;

}



@media (max-width: 767px) {

    .pw-hct-mobile-injected {

        display: block !important;

        margin: 8px 10px 10px !important;

        width: auto;

        clear: both;

    }



    .pw-hct-mobile-injected .pw-hct-mobile-button {

        width: 100%;

        justify-content: center;

    }



    .pw-hct-mobile-injected .pw-hct-mobile-panel {

        background: #ffffff;

        border: 1px solid #dddddd;

        border-radius: 4px;

        margin-top: 8px;

        overflow: hidden;

    }



    .pw-hct-mobile-injected .pw-home-category-tree-mobile {

        border: 0;

        margin: 0;

    }

}



/* v1.8.1 mobile off-canvas panel: narrower so products remain partly visible */

@media (max-width: 767px) {

    .pw-hct-mobile-injected.is-open .pw-hct-mobile-panel {

        position: fixed !important;

        top: 105px !important;

        left: 0 !important;

        bottom: 0 !important;

        width: 86vw !important;

        max-width: 360px !important;

        margin: 0 !important;

        overflow-y: auto !important;

        z-index: 99999 !important;

        box-shadow: 4px 0 18px rgba(0,0,0,0.22) !important;

        border-radius: 0 4px 0 0 !important;

        -webkit-overflow-scrolling: touch;

    }



    .pw-hct-mobile-injected .pw-hct-mobile-button {

        max-width: 100%;

    }



    body.pw-hct-mobile-open {

        overflow-x: hidden;

    }

}



/* v1.8.7 mobile header alignment: dropdown opens below category button, not as left fixed drawer */
@media (max-width: 767px) {
    #header #search_widget,
    #header .search-widget,
    .header-top #search_widget,
    .header-top .search-widget {
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
    }

    .pw-hct-mobile-injected {
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1002 !important;
    }

    .pw-hct-mobile-injected .pw-hct-mobile-button {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .pw-hct-mobile-injected.is-open .pw-hct-mobile-panel {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 65vh !important;
        margin: 0 !important;
        overflow-y: auto !important;
        z-index: 1003 !important;
        box-shadow: 0 8px 18px rgba(0,0,0,0.22) !important;
        border: 1px solid #dddddd !important;
        border-radius: 4px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.pw-hct-mobile-open {
        overflow-x: hidden !important;
    }
}


/* v1.8.8 mobile width tidy: keep category button full-width but non-sticky */
@media (max-width: 767px) {
    .pw-hct-mobile-injected {
        position: relative !important;
        top: auto !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        box-sizing: border-box !important;
    }

    .pw-hct-mobile-injected .pw-hct-mobile-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
