:root {
    --header-top-height: 69px;
    --header-bottom-height: 55px;
    --bottom-nav-height: 57px;
    --top-nav-height: 64px;
    
}

body {
    padding-top: calc(var(--header-top-height) + var(--header-bottom-height));
    
}


/* ===== HEADER NÄSTLAD ===== */
header.site-menu {

    
    --text: #0b1220;
    --muted: #6b7280;
    --line: rgba(15,23,42,0.08);
    --primary-dark: #111827;
   

    font-family: 'Inter', sans-serif;
    background: white;
    width: 100%;

    &.hidden {
        transform: translateY(-100%);
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    ul {
        list-style: none;
    }

    * {
        box-sizing: border-box;
    }

    .menu-trigger {
        cursor: pointer;
        display: flex;
        gap: 3px;
        margin-right: 3px;
        margin-left: 94px;
        border: none;
        background: none;
        padding: 6px 8px;
        border-radius: 7px;
        transition: 0.2s;
        display: none;
        
        &:hover {
            background: #f1f5f9;
            background: none;
        }
    }
    
    .top {
        
        max-width: var(--page-max-width);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        height: var(--header-top-height);
        padding: 0px var(--page-padding-x);
        margin: auto;
        
        
        


        .logo {
            display: flex;

            img {
                width: 106px;
            }
        }

        .search-container {
            flex: 1;
            position: relative;
            margin-left: 13px;
            margin-right: 24px;

            svg {
                position: absolute;
                left: 10px;
                top: 50%;
                transform: translateY(-50%);
                width: 16px;
                height: 16px;
                color: #666666;
            }

            input {
                width: 100%;
                padding: 12px 36px;
                padding-right: 9px !important;
                border-radius: 14px;
                border: 1px solid var(--line);
                background: white;
                outline: none;
                transition: .2s;
                font-size: 14px;
                font-family: inherit;

                &:focus {
                    box-shadow: 0 0 0 4px rgba(17, 24, 39, .08);
                }
            }
        }

        .actions {
            display: flex;
            align-items: center;
            flex-grow: 1;

            

            .icon {
                width: 35px;
                height: 35px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 10px;
                cursor: pointer;
                transition: .15s;
                color: var(--text);
                background: none;
                border: none;
                position: relative;
                margin: 0px 2px;


                

                &:hover {
                    background: #f1f5f9;
                }

                .notifier {
                    background: red;
                    color: white;
                    width: 16px;
                    aspect-ratio: 1;
                    position: absolute;
                    border-radius: 33px;
                    position: absolute;
                    top: 0;
                    right: 0;
                    font-size: 11px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }


            .btn {
                padding: 10px 12px;
                border-radius: 12px;
                border: 1px solid var(--line);
                background: white;
                font-size: 13px;
                font-weight: 500;
                cursor: pointer;
                transition: 0.2s;
                margin-left: 14px;

                &.primary-action {
                    background: var(--primary-dark);
                    background: #0c5659;
                    color: white;
                    border: none;
                    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);

                    &:hover {
                        opacity: .92;
                    }
                }
            }
        }
    }

    

    /* Responsivitet för Header */
    @media (max-width: 768px) {
        .top {
            .search-container {
                display: none;
            }
            .btn:not(.primary-action) {
                display: none;
            }
        }
    }
}

.categories-bar {
    
        background: #f9f9fb;
        backdrop-filter: blur(10px);
        

        
            

        .cat_inner {
            height: var(--header-bottom-height);
            max-width: var(--page-max-width);
            padding: 0px var(--page-padding-x);
            margin: auto;
            overflow-x: auto;
            scrollbar-width: none;
            position: relative;
            left: -5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: 0.3s ease-in-out; /* Smooth slide effect */

            &.hidden {
                height: 0;
                overflow: hidden;
            }

            .nav-right li:first-of-type a {
                background: #ececec;
                
                border-radius: 33px;
            }
            .nav-right li a {
                color: #111111;
                font-weight: 400;
            }

            &::-webkit-scrollbar {
                display: none;
            }

            ul {
                display: flex;
                gap: 10px;
                padding: 0;
            }

            li {
                flex: 0 0 auto;
                border-radius: 999px;
                font-size: 13px;
                color: #71717a;
                cursor: pointer;
                transition: .2s;
                white-space: nowrap;
                border: 1px solid transparent;
                font-weight: 500;

                &:hover {
                    color: var(--text);
                    background: #fff;
                    border: 1px solid var(--line);
                }

                &.active {
                    /*background-color: white;*/
                    background-color: #ececec;
                    color: #1a1a1a;
                    /*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);*/
                    font-weight: 500;
                }

                a {
                    padding: 9px 14px;
                    display: flex;
                    align-items: center;
                    gap: 8px;
                }
            }
        }
    }



.header-left nav {
    display: none;
}




/* ================================
   Desktop header — former inline styles
   ================================ */

/* Menu button text */
.menu-trigger > span {
    font-size: 12.5px;
    text-transform: uppercase;
    font-weight: 500;

    /* Your original had 3 declarations.
       The last one wins, so 1px is the effective value. */
    letter-spacing: 1px;

    color: #000000b0;
}

/* Menu icon */
.menu-trigger > img {
    width: 16px;
    opacity: 80%;
}


/* ================================
   Header action icons
   ================================ */

.actions > .icon > img {
    width: 20px;
}


/* ================================
   Categories bar
   ================================ */

/* Support icon */
.categories-bar .nav-right a > img {
    width: 15px;
}

.desktop-nav {
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 100;
    background: white;
}

.desktop-nav .search-container form label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.mobile-top-nav a, .mobile-bottom-nav a, .side-menu a {
    
    text-decoration: none;
    
}




/*

@media (max-width: 1050px) {
    header.site-menu {
        .top, .categories-bar {
            display: none;
        }

        .top-nav {
            display: flex;
        }
    }

    .bottom-nav {
        display: flex;
    }
    
}*/


@media (max-width: 1050px) {

    body {
        padding-top: var(--top-nav-height);
        padding-bottom: var(--bottom-nav-height);
    }
    
    .desktop-nav {
        display: none;
    }

    .mobile-top-nav, .mobile-bottom-nav {
        display: flex !important;
    }

    body > footer .scroll-top {
        bottom: calc(15px + var(--bottom-nav-height)) !important;
    }

    .side-menu-footer {}

    .side-menu-content {
        padding: 22px 20px calc(var(--bottom-nav-height) + 5px) !important;
    }
}
















