@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Leckerli+One&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&family=Send+Flowers&display=swap');

:root{
    --background-color-main: white;
    --background-color: #f8f9f9;
    --secondary-background-color: #e5e7e9 ;
    --accent-color: #d055e7 ;
    --text-color-main: #212121;
    --text-color-secondary: #7d7d7d;
    --text-color-third: #d7dbdd;

    --text-regular1: Roboto;
    --text-regular2: Open Sans;
    --text-bold: Cal Sans;                           
    --text-stylish1: Leckerli One;
    --text-stylish2: Send Flowers;
}

*{  
    margin: 0;
    padding: 0;
}
html, body{
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body{
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.desktop{
    position: absolute;
    width: 85%;
    height: 35px;
    border-radius: 30px;
    transform: translate(8.5%, 70%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
   

    .nav-container{
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 35px;
        width: 100%;

        .nav-left{
            display:flex;
            align-items: center;
            margin-left: 10px;
            font-family: var(--text-regular1);
            font-size: 16px;

            .home-link, .productsPge-link{
                margin-left: 40px;

                a{
                    color: var(--text-color-main);
                    text-decoration: none;
                    transition: .2s ease-in-out;
                }
                a:hover{
                    color: var(--accent-color);
                }
                .current-page{
                    color: var(--accent-color);
                }
            }
        }

        .nav-middle{
            position: relative;
            display:flex;
            align-items: center;
            gap: 10px;
            font-family: var(--text-regular1);
            font-size: 22px;

            input{
                height: 29px;
                width: 170px;
                padding-left: 10px;
                padding-right: 51px;
                border-radius: 30px;
                border: none;
                text-align: center;
                font-family: var(--text-regular1);
                font-size: 16px;
                background: none;
                box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15);
            }
            input:focus{
                border: none;
                outline: none;
                background: rgba(255, 255, 255, 0.1); 
                backdrop-filter: blur(10px); 
                -webkit-backdrop-filter: blur(10px);
                border: 1px solid rgba(255, 255, 255, 0.1);
            }
            input::placeholder{
                margin-left: 10px;
                color: var(--text-color-main);
                font-style: italic;
            }
            input:focus::placeholder {
                opacity: 0;
                transition: opacity 0.3s;
            }
            input:-webkit-autofill {
                -webkit-text-fill-color: #000 !important;
                transition: background-color 5000s ease-in-out 0s;
            }

            button{
                position: absolute;
                height: 20px;
                width: 20px;
                top: 5px;
                left: 82%;
                background: none;
                border: none;
                border-left: 1px solid rgba(0, 0, 0, 0.12);
                cursor: pointer;
                z-index: 150;

                svg{
                    width: 21px;
                    height: 21px;
                    margin-left: 8px;
                    fill: var(--text-color-main);
                }

            }
        }

        .nav-right{
            display:flex;
            align-items: center;
            margin-right: 5%;

            .g-profile{
                display: none;
                width: 35px;
                height: 35px;
                border-radius: 100%;
                border: none;
                cursor: pointer;
                box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.13);
                img{
                    width: inherit;
                    height: inherit;
                    object-fit: cover;
                    border-radius: inherit;
                }
            }

            .e-profile{
                display: none;
                width: 35px;
                height: 35px;
                padding: 3px 5px;
                border-radius: 100%;
                background: none;
                border: 1px solid rgba(255, 255, 255, 0.3);
                box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.13);
                cursor: pointer;
            }

            .g-profile-popup{
                visibility: hidden;
                position: absolute;
                top: 130%;
                right: 10%;
                width: fit-content;
                height: 100px;
                padding: 15px 15px;
                font-family: var(--text-regular1);
                border-radius: 20px;
                background: rgba(255, 255, 255, 0.25); 
                backdrop-filter: blur(10px); 
                -webkit-backdrop-filter: blur(10px);
                border: 1px solid rgba(255, 255, 255, 0.35);
                z-index: 100;
                .title{
                    font-size: 20px;
                    color: var(--text-color-main);
                }
                p{
                    color: var(--background-color-main);
                    color: var(--text-color-main);
                }
                .info{
                    display: flex;
                    align-items: center;
                    padding-top: 10px;
                    .left{
                        padding-right: 10px;
                        img{
                            width: 70px;
                            height: 70px;
                            object-fit: cover;
                            border-radius: 100%;
                        }
                    }
                    .right{
                        button{
                            margin-top: 5px;
                            padding: 5px 8px;
                            background: none;
                            border-radius: 20px;
                            border: .5px solid var(--text-color-main);
                        }
                    }
                }
            }

            .e-profile-popup{
                visibility: hidden;
                position: absolute;
                top: 130%;
                right: 10%;
                width: fit-content;
                height: 90px;
                padding: 15px 15px;
                font-family: var(--text-regular1);
                border-radius: 20px;
                background: rgba(255, 255, 255, 0.25); 
                backdrop-filter: blur(10px); 
                -webkit-backdrop-filter: blur(10px);
                border: 1px solid rgba(255, 255, 255, 0.35);
                z-index: 100;
                .title{
                    font-size: 20px;
                    color: var(--text-color-main);
                    
                }
                p{
                    color: var(--background-color-main)
                }
                .info{
                    display: flex;
                    align-items: center;
                    padding-top: 10px;
                    .profile-icon{
                        margin-right: 5px;
                        padding: 1px 3px;
                        border-radius: 100%;
                        border: 1px solid rgba(255, 255, 255, 0.35);
                        svg{
                            width: 40px;
                            height: 40px;
                        }
                    }

                    .right{
                        p{
                            color: var(--text-color-main);
                        }
                        button{
                            margin-top: 5px;
                            padding: 5px 8px;
                            background: none;
                            border-radius: 20px;
                            border: .5px solid var(--text-color-main);
                        }
                    }
                }
            }
            .profile-hide{
                visibility: visible;
            }

            .Sign-in{
                display: none;
                padding: 5px 18px;
                border-radius: 7px;
                font-family: var(--text-regular1);
                font-size: 14px;
                color: var(--text-color-main);
                text-wrap: nowrap;
                border: none;
                box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.29);
                background:linear-gradient(to right, var(--accent-color) 20%, #d693e4);
                cursor: pointer;
                transition: .3s ease-in-out;
            }

            .contact-us{
                margin-left: 10%;
                padding: 5px 5px;
                border-radius: 7px;
                font-family: var(--text-regular1);
                font-size: 14px;
                color: var(--text-color-main);
                text-wrap: nowrap;
                border: none;
                box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.13);
                background-color: var(--background-color-main);
                cursor: pointer;
                transition: all .3s ease-in-out;
            }
            .Sign-in:hover, .contact-us:hover{
                transform: scale(1.01);
            }

            .wishlist-section{
                font-family: var(--text-regular1);

                button{
                    margin-left: 50%;
                    padding: 3px 5px;
                    border-radius: 100%;
                    border: none;
                    cursor: pointer;
                    background: none;
                    border: 1px solid rgba(255, 255, 255, 0.3);
                    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.13);
                }

                p{
                    position: absolute;
                    bottom: -80%;
                    text-wrap: nowrap;
                    font-size: 13px;
                    opacity: 0;
                    transition: all .05s ease-in-out;
                    transition-delay: 1.1s;
                }
            }
            .wishlist-section:hover{
                p{
                    opacity: 1;
                }
            }
        }
    }
}

@media (max-width: 900px){
    .desktop{
        width: 95%;
        transform: translate(2.5%, 70%);
        .nav-container{
            .nav-left{
                .home-link, .productsPge-link{
                    display: none;
                }
            }
            .nav-middle{
                input{
                    height: 30px;
                    width: 140px;
                }
                button{
                    top: 5px;
                }
            }
            .nav-right{
                .e-profile, .g-profile{
                    margin-left: 5px;
                }
                .Sign-in{
                    display: none;
                }
                .contact-us{
                    display: none;
                }
                .wishlist-section{
                    display: none;
                }
            }
        }
    }

}

@media (max-width: 500px){
    .desktop{
        .nav-container{
            .nav-middle{
                input{
                    height: 30px; 
                }
                button{
                    top: 5px;
                    left: 80%;
                }
            }
            .nav-right{
                .g-profile-popup{
                    transform: translateX(6%);
                }
                .e-profile-popup{
                    transform: translateX(6%);
                }
            }
        }
    }

}