* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scrollbar-width: none;
}

*::selection {
    background-color: rgba(128, 128, 128, 0.468);
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.nav {
    width: 100%;
    height: 80px;
    display: flex;
    top: 0;
    z-index: 999;
    position: fixed;
    background-color: rgb(227, 227, 0);
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    user-select: none;
}

.nav-container {
    display: flex;
    width: 100%;
    height: 80px;
    max-width: 1300px;
    justify-content: space-between;
    z-index: 1;
    margin: 0 auto;
    padding: 0 50px;
}

#nav-logo {
    font-size: 2.5rem;
    padding-right: 3rem;
    display: flex;
    background-color: #ff8177;
    background-size: 100%;
    background-image: linear-gradient(to top, rgb(255, 77, 0) 0%, orange 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    text-decoration: none;
    cursor: pointer;
    align-items: center;
}

.fa-gem {
    margin-right: 0.5rem;
}

.search {
    width: 50%;
}

#search {
    width: 90%;
    height: 35px;
    margin-top: 25px;
    border: 1px solid #cacccf;
    border-radius: 24px;
    font-size: 19px;
    outline: none;
    text-align: center;
}

.search {
    display: none;
}

#search:focus {
    /*when the input field is focused*/
    box-shadow: 0 0 5px rgba(81, 203, 238, 1);
    border: 1px solid rgba(81, 203, 238, 1);
}

.nav-menu {
    display: flex;
    align-items: center;
    text-align: center;
    list-style: none;
}

.nav-items {
    height: 80px;
}

.nav-links {
    color: #fff;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 0 1rem;
    transition: all 0.3 ease-in;
    font-size: 1.5rem;
}

.nav-links:hover {
    background-image: linear-gradient(to top, rgb(255, 77, 0) 0%, orange 100%);
    background-color: #ff8177;
    transition: all 0.3 ease-in;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.buy {
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    height: 20px;
    width: 20px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -1000px;
    transition: transform 0.4s ease-in-out;
    z-index: -1;
}

.buy.active {
    display: block;
    height: 20px;
    width: 20px;
    background-color: #cda52d;
    margin: 3px 0;
    border-radius: 50%;
    transition: all 0.4s ease-in-out;
    position: absolute;
    top: 10px;
    right: 12rem;
    z-index: 1;
}

@media screen and (max-width: 960px) {
    .nav-container {
        display: flex;
        width: 100%;
        height: 80px;
        max-width: 1300px;
        justify-content: space-between;
        z-index: 1;
        padding: 0;
    }

    #search {
        display: grid;
        grid-template-columns: auto;
        align-content: center;
        margin: 0;
        width: 100%;
        position: absolute;
        right: -1000px;
        top: 100%;
        transition: all 0.5s ease;
        height: auto;
        z-index: -1;
        background: rgb(227, 227, 0);
    }

    #search.active {
        right: 0;
        top: 100%;
        opacity: 0.6;
        transition: all 0.5s ease;
        z-index: 1;
        height: auto;
        font-size: 1.6rem;
    }

    .fa-search {
        width: 30px;
        height: 24px;
        transition: all 0.3s ease-in-out;
        background: transparent;
        border: none;
        display: flex;
        cursor: pointer;
        position: absolute;
        right: 60px;
        top: 30px;
        color: white;
        display: block;
        position: absolute;
        top: 30%;
        right: 4%;
        transform: translate(5%, 20%);
    }

    .fa-search:active {
        transform: scale(1.05);
    }

    .search {
        display: block;
    }

    .nav-menu {
        width: 100%;
        height: 60px;
        display: flex;
        bottom: 0;
        z-index: -999;
        position: fixed;
        background-color: rgb(227, 227, 0);
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        user-select: none;
        align-items: self-end;
    }

    .nav-items {
        display: flex;
        width: 100%;
        height: 50px;
        max-width: 1300px;
        justify-self: center;
        align-items: center;
        z-index: 1;
        margin: 0 auto;
        padding: 0 10px;
    }

    .nav-links {
        text-align: center;
        padding: 0;
        font-size: 1.4rem;
        width: 100%;
        display: table;
    }

    .buy {
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        height: 20px;
        width: 20px;
        background: transparent;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 1000px;
        transition: all 0.5s ease-in-out;
        z-index: -1;
        display: none;
    }

    .buy.active {
        display: none;
        height: 20px;
        width: 20px;
        background-color: #cda52d;
        margin: 3px 0;
        border-radius: 50%;
        transition: all 0.7s ease-in-out;
        position: absolute;
        top: -3px;
        right: 30%;
        z-index: 1;
    }
}

.product {
    width: 100%;
    height: auto;
    background-color: #f0f0f0;
    display: flex;
    position: absolute;
    top: 80px;
}

.product-container {
    padding: 0 20px;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-self: center;
    justify-content: center;
    justify-items: center;
    align-items: center;
    align-content: center;
    padding-bottom: 60px;
}

.products {
    width: 100%;
    display: contents;

}

.products div {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
    height: auto;
    width: 9rem;
    align-items: center;
    max-height: 280px;
}

.products div:hover {
    transform: scale(1.05);
    transition: transform 0.3s;
}

.products div:active {
    transform: scale(0.9);
    transition: transform 0.3s;
}

.img {
    width: 6rem;
    height: 8rem;
    user-select: none;
    -moz-user-select: none;
}

h2 {
    font-size: 1.4rem;
}

span {
    font-size: 1.2rem;
}

#redmi-note-14 {
    height: 266px;
    padding: 20px;
}

#laptops div {
    padding: 10px;
}

.contact-container {
    display: grid;
    grid-template-columns: auto;
    align-content: center;
    margin: 0;
    width: 100%;
    position: absolute;
    right: -1000px;
    top: 100%;
    transition: all 0.5s ease;
    height: auto;
    z-index: -1;
    background-color: #fff;
}