/* =========================================
   HOMEPAGE RUNNING NOTE
========================================= */

.homepage-note-bar {

    width: 100%;

    height: 38px;

    background: #FFD700;

    color: #000;

    overflow: hidden;

    position: relative;

    display: flex;

    align-items: center;

    white-space: nowrap;

    z-index: 9999;

}


/* =========================================
   RUNNING TEXT
========================================= */

.homepage-note-track {

    display: inline-block;

    white-space: nowrap;

    padding-left: 100%;

    font-size: 15px;

    font-weight: 700;

    line-height: 38px;

    animation:
        homepageNoteScroll
        18s
        linear
        infinite;

}


/* =========================================
   ANIMATION
========================================= */

@keyframes homepageNoteScroll {

    from {

        transform:
            translateX(0);

    }

    to {

        transform:
            translateX(-100%);

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .homepage-note-bar {

        height: 36px;

    }


    .homepage-note-track {

        font-size: 14px;

        line-height: 36px;

        animation-duration: 15s;

    }

}

/*==================================================
    TOPBAR
==================================================*/

.site-topbar{

    width:100%;

    height:72px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:
        0
        18px;

    background:#050505;

    border-bottom:
        1px solid
        rgba(255,255,255,0.12);

    position:relative;

    z-index:900;

}



/*==================================================
    TOPBAR BUTTON
==================================================*/

.topbar-button{

    width:48px;

    height:48px;

    border:0;

    outline:none;

    background:transparent;

    color:#ffffff;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    font-size:26px;

    flex-shrink:0;

}


.topbar-button:active{

    transform:scale(0.94);

}



/*==================================================
    LOGO
==================================================*/

.topbar-logo{

    flex:1;

    display:flex;

    align-items:center;

    justify-content:center;

    min-width:0;

}


.topbar-logo a{

    display:flex;

    align-items:center;

    justify-content:center;

    max-width:100%;

}


.topbar-logo img{

    display:block;

    max-width:100%;

    max-height:40px;

    width:auto;

    height:auto;

    object-fit:contain;

}



/*==================================================
    SIDEBAR OVERLAY
==================================================*/

.sidebar-overlay{

    position:fixed;

    inset:0;

    background:
        rgba(0,0,0,0.62);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:
        opacity .25s ease,
        visibility .25s ease;

    z-index:9990;

}


.sidebar-overlay.show{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

}



/*==================================================
    SIDEBAR
==================================================*/

.site-sidebar{

    position:fixed;

    top:0;

    left:0;

    width:min(
        320px,
        86vw
    );

    height:100dvh;

    background:#15151a;

    color:#ffffff;

    z-index:10000;

    transform:
        translateX(-105%);

    transition:
        transform .28s ease;

    overflow-y:auto;

    overscroll-behavior:contain;

    box-shadow:
        8px
        0
        30px
        rgba(0,0,0,0.35);

}


.site-sidebar.open{

    transform:
        translateX(0);

}



/*==================================================
    SIDEBAR HEADER
==================================================*/

.sidebar-header{

    min-height:72px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    padding:
        14px
        18px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.10);

}


.sidebar-header strong{

    font-size:18px;

    line-height:1.2;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

}


.sidebar-close-button{

    width:42px;

    height:42px;

    border:0;

    background:transparent;

    color:#ffffff;

    font-size:24px;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

}



/*==================================================
    SIDEBAR LINKS
==================================================*/

.sidebar-link{

    min-height:54px;

    display:flex;

    align-items:center;

    gap:15px;

    padding:
        13px
        18px;

    color:#ffffff;

    text-decoration:none;

    border-bottom:
        1px solid
        rgba(255,255,255,0.055);

    font-size:16px;

    transition:
        background .2s ease;

}


.sidebar-link i{

    width:22px;

    text-align:center;

    flex-shrink:0;

}


.sidebar-link:hover{

    background:
        rgba(255,255,255,0.07);

}



/*==================================================
    SIDEBAR EXPANDABLE
==================================================*/

.sidebar-expandable{

    border-bottom:
        1px solid
        rgba(255,255,255,0.055);

}


.sidebar-expand-button{

    width:100%;

    min-height:54px;

    padding:
        13px
        18px;

    border:0;

    background:transparent;

    color:#ffffff;

    display:flex;

    align-items:center;

    justify-content:space-between;

    font-size:16px;

    cursor:pointer;

}


.sidebar-expand-button > span{

    display:flex;

    align-items:center;

    gap:15px;

}


.sidebar-expand-button > span i{

    width:22px;

    text-align:center;

}


.sidebar-chevron{

    transition:
        transform .25s ease;

}


.sidebar-expand-button.open
.sidebar-chevron{

    transform:
        rotate(180deg);

}



/*==================================================
    SIDEBAR SUBMENU
==================================================*/

.sidebar-submenu{

    max-height:0;

    overflow:hidden;

    transition:
        max-height .28s ease;

    background:
        rgba(0,0,0,0.18);

}


.sidebar-submenu.open{

    max-height:500px;

}


.sidebar-loading{

    padding:
        14px
        54px;

    color:#999;

    font-size:14px;

}



/* Categories */
.sidebar-category-row a {
    color: #fff !important;
    text-decoration: none !important;
}

.sidebar-category-row {
    padding: 12px 20px;
}

.sidebar-category-children a {
    display: block;
    padding: 8px 20px 8px 55px;
    color: #ddd !important;
    text-decoration: none !important;
}

/* Tags dropdown */
#sidebarTags {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px 16px;
    height: auto;
    max-height: none;
    overflow: visible;
}

#sidebarTags.open {
    display: flex;
}

.sidebar-tag-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #29292f;
    border-radius: 20px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
}


/*==================================================
    SEARCH OVERLAY

    IMPORTANT:
    HIDDEN BY DEFAULT
==================================================*/

.search-overlay{

    position:fixed;

    inset:0;

    background:
        rgba(0,0,0,0.78);

    z-index:11000;

    display:none;

    align-items:flex-start;

    justify-content:center;

    padding:
        15px;

    overflow-y:auto;

}


.search-overlay.open{

    display:flex;

}



/*==================================================
    SEARCH PANEL
==================================================*/

.search-panel{

    width:100%;

    max-width:700px;

    margin-top:8px;

    background:#17171c;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius:18px;

    overflow:hidden;

    box-shadow:
        0
        20px
        60px
        rgba(0,0,0,0.5);

}



/*==================================================
    SEARCH HEADER
==================================================*/

.search-header{

    min-height:58px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:
        8px
        14px
        8px
        18px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.08);

}


.search-title{

    color:#ffffff;

    font-size:18px;

    font-weight:700;

}


.search-close-button{

    width:42px;

    height:42px;

    border:0;

    border-radius:50%;

    background:
        rgba(255,255,255,0.08);

    color:#ffffff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:20px;

    cursor:pointer;

}



/*==================================================
    SEARCH INPUT
==================================================*/

.search-input-wrapper{

    margin:14px;

    height:54px;

    display:flex;

    align-items:center;

    gap:10px;

    padding:
        0
        12px;

    background:#ffffff;

    border-radius:12px;

}


.search-input-icon{

    color:#555;

    font-size:18px;

    flex-shrink:0;

}


.search-input{

    flex:1;

    min-width:0;

    height:100%;

    border:0;

    outline:0;

    background:transparent;

    color:#111111;

    font-size:17px;

}


.search-input::placeholder{

    color:#777;

}


.clear-search-button{

    width:36px;

    height:36px;

    border:0;

    border-radius:50%;

    background:#eeeeee;

    color:#333;

    display:none;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    flex-shrink:0;

}


.clear-search-button.show{

    display:flex;

}



/*==================================================
    SEARCH RESULTS
==================================================*/

.search-results{

    max-height:
        calc(100dvh - 180px);

    overflow-y:auto;

    padding:
        0
        14px
        14px;

}



/*==================================================
    SEARCH MESSAGE
==================================================*/

.search-message{

    min-height:120px;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:20px;

    color:#999;

    font-size:15px;

}



/*==================================================
    SEARCH RESULT
==================================================*/

.search-result{

    width:100%;

    border:0;

    border-radius:12px;

    background:
        rgba(255,255,255,0.045);

    color:#ffffff;

    display:flex;

    align-items:center;

    gap:12px;

    padding:10px;

    margin-bottom:8px;

    text-align:left;

    cursor:pointer;

    transition:
        background .18s ease,
        transform .18s ease;

}


.search-result:hover{

    background:
        rgba(255,255,255,0.09);

}


.search-result:active{

    transform:scale(0.985);

}



/*==================================================
    SEARCH RESULT IMAGE
==================================================*/

.search-result-image{

    width:62px;

    height:62px;

    flex-shrink:0;

    border-radius:10px;

    overflow:hidden;

    background:#29292f;

    display:flex;

    align-items:center;

    justify-content:center;

}


.search-result-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}


.search-result-no-image{

    color:#888;

    font-size:10px;

    text-align:center;

}



/*==================================================
    SEARCH RESULT INFO
==================================================*/

.search-result-info{

    flex:1;

    min-width:0;

}


.search-result-name{

    color:#ffffff;

    font-size:15px;

    font-weight:600;

    line-height:1.3;

    overflow:hidden;

    display:
        -webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

}


.search-result-price{

    margin-top:5px;

    color:#00e5a0;

    font-size:14px;

    font-weight:700;

}


.search-result-arrow{

    color:#888;

    font-size:14px;

    flex-shrink:0;

}



/*==================================================
    MOBILE
==================================================*/

@media(
    max-width:600px
){

    .site-topbar{

        height:68px;

        padding:
            0
            10px;

    }


    .topbar-button{

        width:48px;

        height:48px;

        font-size:25px;

    }


    .topbar-logo img{

        max-height:44px;

        max-width:
            calc(
                100vw - 160px
            );

    }


    .search-overlay{

        padding:
            10px;

    }


    .search-panel{

        margin-top:2px;

        border-radius:16px;

    }

}



/*==================================================
    DESKTOP
==================================================*/

@media(
    min-width:768px
){

    .site-topbar{

        height:76px;

        padding:
            0
            24px;

    }


    .topbar-button{

        width:50px;

        height:50px;

    }


    .search-panel{

        margin-top:20px;

    }

}



/*==================================================
    BODY LOCK
==================================================*/

body.sidebar-open,
body.search-open{

    overflow:hidden;

}






/*==================================================
    CART BUTTON
==================================================*/

.cart-button{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;

    width:52px;

    height:52px;

    flex-shrink:0;

    color:#fff;

    text-decoration:none;

    cursor:pointer;

}


.cart-button i{

    color:#fff;

    font-size:24px;

}


/*==================================================
    CART COUNT BADGE
==================================================*/

.cart-count{

    position:absolute;

    top:2px;

    right:0;

    min-width:21px;

    height:21px;

    padding:0 5px;

    display:flex;

    align-items:center;

    justify-content:center;

    box-sizing:border-box;

    border-radius:50%;

    background:#ff8a00;

    border:2px solid #111;

    color:#fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:10px;

    font-weight:900;

    line-height:1;

}


/*==================================================
    CART COUNT ANIMATION
==================================================*/

.cart-count.bump{

    animation:
        cartBadgeBump
        .25s
        ease;

}


@keyframes cartBadgeBump{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.3);

    }

    100%{

        transform:scale(1);

    }

}
