/* ================================================================= */
/* ========================= NAV WRAPPER =========================== */
/* ================================================================= */

.nav-wrapper {
    width: 100%;
    position: relative;
}

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

.menu.desktop {
    display: flex;
    align-items: center;
    float: right;
}

.menu.desktop ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu.desktop li {
    border-right-color: rgba(0, 0, 0, 0.1);
    border-right-style: dotted;
    border-right-width: 0.5px;
}

.menu.desktop li a {
    color: var(--mork);
    padding: 0 15px;
    text-decoration: none;
    display: inline-block;
    line-height: 80px;
    transition: color 0.2s ease;
}

.menu.desktop li a:hover {
    color: var(--bla);
}

.dropbtn {
    cursor: pointer;
}

/* ========================= DESKTOP MEGA MENU ========================= */

@media (min-width: 769px) {
    .mega-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 20px;
        z-index: 999;
    }

    .dropdown:hover .mega-dropdown {
        display: flex;
        justify-content: center;
    }

    .mega-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        max-width: 1400px;
        width: 100%;
        padding: 0 20px;
        list-style: none;
        margin: 0;
        box-sizing: border-box;
    }

    .mega-category {
        flex: 1 1 200px;
    }

    .mega-category h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .mega-category ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mega-category ul li {
        margin-bottom: 5px;
    }
}

/* ================================================================= */
/* ============================ NAVBAR ============================= */
/* ================================================================= */

.navbar {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--gul);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

.navbar.hidden {
    transform: translateY(-100%);
}

/* LOGO */

.logo {
    position: absolute;
    width: 220px;
    height: 80px;
    z-index: 2;
    display: block;
}

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

.hamburger {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--mork);
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 49;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    font-size: 18px;
    text-decoration: none;
    color: #f1f1f1;
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 15px 20px;
}

/* ================================================================= */
/* =========================== RESPONSIVE ========================== */
/* ================================================================= */

@media (max-width: 768px) {
    .menu.desktop {
        display: none;
    }

    .hamburger {
        display: flex;
        width: 40px;
        height: 40px;
        background: #151515;
        color: white;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 5px;
        font-size: 40px;
        position: fixed;
        top: 15px;
        left: 20px;
        z-index: 60;
        transition: all 0.3s ease-in-out;
    }

    .logo {
        display: none;
    }
    
    }

/* ================================================================= */
/* ======================= MEGA DROP DOWN ========================= */
/* ================================================================= */

li.mega-item {
    height: 80px;
    border-bottom: dotted 0.1rem gray;
}

p.mega-title {
    margin: 0;
    padding: 0;
    line-height: 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    letter-spacing: -0.01em;
}

p.mega-count {
    font-size: 14px;
    color: grey;
    margin: 0 0 20px 0;
    line-height: 2rem;
}

ul.mega-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 80px !important;
}

.spacer_nav {
    height: 80px;
}

/* ================================================================= */
/* ======================== DESKTOP SÖKFÄLT ======================== */
/* ================================================================= */

.product-search-wrapper {
    position: absolute;
    z-index: 999;
    left: 200px;
    display: flex;
    align-items: center;
    width: 260px;
}

.product-search-form {
    position: relative;
    width: 100%;
}

.product-search-form .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.product-search-form .search-icon svg {
    width: 100%;
    height: 100%;
    color: var(--mork);
}

.product-search-form input#product-search {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 46px;
    border-radius: 24px;
    border: 1px solid #ccc;
    background: #f3f3f3;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.product-search-form input#product-search:focus {
    box-shadow: inset 0 0 0 2px var(--gron);
}

#product-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    z-index: 999;
    display: none;
}

#product-search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#product-search-results li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

#product-search-results li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mork);
    font-size: 14px;
}




#product-search-results li img {
    width: 30px;
    height: 30px;
    object-fit: cover;
}

/* ================================================================= */
/* ======================== MOBIL SÖKFUNKTION ====================== */
/* ================================================================= */

@media (max-width: 768px) {
	.product-search-wrapper {
	    position: relative;
	    left: 100px;
    }
}


#product-search-results p { padding-left: 10px;}