*{
    --header-font: "Roboto Mono", monospace;
    --main-font: "Poppins", monospace;
    /* --main-font: "Montserrat", serif; */
    --text-color: #000000;
    --white-color: #ffffff
}

@keyframes dropdown-transistion {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 100%;
    }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

h1, h2, h3, h4, p{
    margin: 0;
    padding: 0;
}

body{
    margin: 0 auto;
    font-family: var(--main-font);
    overflow-x: hidden;
}

header{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 3em 0;
    position: fixed;
    width: 100vw;
    background: #fff;
    z-index: 12;
    box-shadow: 0 0 5px hsl(0, 0%, 0%, 50%);
}

.fake-header{
    width: 100vw;
    height: 140px;
    z-index: -1;
}

/* Navigation */

nav{
    display: flex;
    position: relative;
    gap: 30px;
}

nav a{
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 500;
}

/* Shop Dropdown Menu */
.shop{
    position: relative;
}

.shop-link,
.more-link{
    position: relative;
}

.shop-link::after,
.more-link::after{
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0; /* Start from the left */
    width: 0; /* Start with no width */
    height: 3px;
    background: #000;
    z-index: 10;
    border-radius: 20px;
    opacity: 0; /* Start fully transparent */
    transition: width 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Animate width and opacity */
}

.shop-link:hover::after,
.more-link:hover::after{
    width: 100%; /* Expand to full width */
    opacity: 1; /* Fully visible */
    
}

.shop-dropdown{
    display: flex;
    width: 400px;
    gap: 120px;
    position: absolute;
    padding: 3em 0;
    animation: dropdown-transistion 1s;
    background-color: #fff;
    z-index: 9;
    left: 0;
    box-shadow: 5px 5px 5px hsl(0, 0%, 0%, 25%);
}


.shop .shop-dropdown{
    display: none;
}

.shop:hover .shop-dropdown{
    display: flex;
}

.nav-heading{
    margin: 0 0 15px 0;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

.shop-dropdown ul{
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 10px;
}

.shop-dropdown ul li{
    padding: 5px 0;
}

.shop-dropdown ul li a{
    margin: 0;
    padding: 5px 0;
    text-transform: none;
    width: 100%;
}

/* More Dropdown Menu */

.more{
    position: relative;
}

.more-dropdown{
    display: flex;
    width: 400px;
    justify-content: space-between;
    position: absolute;
    padding: 3em 0;
    animation: dropdown-transistion 1s;
    background-color: #fff;
    z-index: 9;
    box-shadow: 5px 5px 5px hsl(0, 0%, 0%, 25%);
}

.more .more-dropdown{
    display: none;
}

.more:hover .more-dropdown{
    display: flex;
}

.more-dropdown ul{
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 10px;
}

.more-dropdown ul li{
    padding: 5px 0;
}

.more-dropdown ul li a{
    margin: 0;
    padding: 5px 0;
    text-transform: none;
    width: 100%;
}

.shop-dropdown ul li a:hover,
.more-dropdown ul li a:hover{
    text-decoration: underline;
}

/* Logo */

.logo{
    font-family: var(--header-font);
    font-weight: 500;
    font-size: 2em;
    z-index: 10;
}

.logo a{
    text-decoration: none;
    color: var(--text-color);
}


/* Search & Cart Buttons */

.search-cart{
    display: flex;
    gap: 20px;
    z-index: 10;
}

.search-cart a,
.search-cart button{
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

.search-cart a img,
.search-cart button img{
    width: 100%;
}

/* Search-bar */

.search-bar{
    align-items: center;
    width: 100%;
    padding: 1em 5em 2em 5em;
    margin-top: -5px;
    position: fixed;
    display: none;
    animation: dropdown-transistion 0.2s;
    z-index: 12;
    background-color: #fff;
}

.search-btn{
    background: none;
    border: none;
    cursor: pointer;
}

.search-bar .search-bar-icon{
    width: 80px;
    margin-right: 80px;
    opacity: 50%;
}

.search-bar input{
    height: 100px;
    font-size: 4em;
    border: none;
    width: 100%;
    padding: 10px 0;
    max-width: 1900px;
}

.search-bar input:focus{
    outline: none;
}

.search-bar.active{
    display: flex;
}

.mobile-header{
    display: none;
}

/* Mobile Header */

@media (max-width: 590px){

    .desktop-header{
        display: none;
    }

    .mobile-header{
        display: flex;
    }

    header{
        padding: 3em 0em;
        justify-content: space-around;
    }

    .search-cart a,
    .search-cart button{
        margin: 5px;
    }

    .logo{
        font-size: 1.2em;
    }

    .search-cart{
        gap: 0px;
    }

}

.hamburger{
    width: 35px;
}

.hamburger img{
    width: 100%;
}

/* Hamburger Menu */

.ham-menu{
    position: absolute;
    z-index: 20;
    top: 0;
    left: -100%;
    padding: 3.5em 0;
    background: #fff;
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    transition: 0.8s ease-in-out;
   
}

.ham-menu.active{
    left: 0;
}

.shop-items ul,
.more-items ul{
    list-style: none;
    position: relative;
    animation: ham-menu 0.5s ease-in forwards;
}

.shop-items ul li,
.more-items ul li{
    margin: 15px 0;
}

.shop-items ul li a,
.more-items ul li a{
    text-decoration: none;
    color: #000;
}

.shop-items ul li a:hover,
.more-items ul li a:hover{
    text-decoration: underline;
}

.more-mobile{
    padding-top: 10px;
}

.exit-btn{
    width: 100%;
    position: relative;
}

.exit-btn img{
    width: 20px;
    right: 40px;
    position: absolute;
}

@keyframes ham-menu{
    0%{
        opacity: 0;
        transform: translateX(-20px);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}