@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-main: #faf9f6;
    --background-sec: #F0F2F5;
    --background-third: #F7F6F3;
    --accent-black: #121212;
    --accent-gold: #CCac00;
    --box-shadow: 0px 8px 15px rgba(0.1, 0.1, 0.1, 0.1);

    --text-regular1: Roboto;
    --text-regular2: Open Sans;
    --text-bold: Cal Sans;
    --text-stylish: Leckerli One;
}

main{
    .windows-container{
        .wishlist{
            position: relative;
            display: flex;
            align-items: flex-start;
            width: 97.5%;
            min-height: 95%;
            height: fit-content;
            padding: 15px 15px;
            color: var(--background-third);
            font-family: var(--text-regular1);

            .close-button{
                position: absolute;
                top: 2%;
                right: 1%;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 15px 15px;
                background: rgba(87, 94, 85, .4);
                backdrop-filter: blur(10px);
                color: var(--background-third);
                box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
                border: 1px solid rgba(255, 255, 255, .15);
                border-radius: 100%;
                cursor: pointer;
                transition: all .4s ease-in-out;
                svg{
                    fill:  var(--background-third);
                    transform: rotate(45deg);
                }
                &:hover{
                    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.35),
                    -0px -.1px 2px rgba(0, 0, 0, 0.15);
                }
            }

            .left{
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                gap: 10px;
                width: 35%;
                h2{
                    margin-top: 10%;
                    font-family: var(--text-bold);
                    font-size: 3.8rem;
                }
                .text{
                    font-size: 1.1rem;
                }
                img{
                    height: 350px;
                    object-fit: cover;
                }
            }

            .right{
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 65%;
                height: 80%;
                /* overflow-y: scroll;
                scrollbar-width: none;
                -webkit-scrollbar-width: none; */

                .wishlist-results-screen{
                    display: flex;
                    align-items: center;
                    flex-direction: column;
                    width: 100%;

                    .w-product-card{
                        display: flex;
                        width: 70%;
                        height: 250px;
                        color: var(--background-third);
                        margin-bottom: 3%;
                        border-radius: 20px;
                        /* background: rgba(255, 255, 255, 0.05); */
                        border: 1px solid rgba(255, 255, 255, 0.45);
                        transition: all .35s ease-in-out;

                        .left{
                            width: 45%;
                            border-bottom-left-radius: 20px;
                            border-top-left-radius: 20px;

                            img{
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                box-sizing: border-box;
                                border-bottom-left-radius: inherit;
                                border-top-left-radius: inherit;
                            }
                        }

                        .right{
                            display: flex;
                            /* justify-content: center; */
                            align-items: flex-start;
                            flex-direction: column;
                            gap: 8%;
                            padding: 12px 12px;
                            width: 55%;
                            height: 90%;
                            border-bottom-right-radius: inherit;
                            border-top-right-radius: inherit;

                            .w-product-name{
                                font-family: var(--text-bold);
                                font-size: 1.6rem;
                            }

                            .w-description{
                                height: 70px;
                                font-size: 1.1rem;
                                display: -webkit-box;
                                line-clamp: 4;
                                -webkit-line-clamp: 4;
                                -webkit-box-orient: vertical;
                                overflow: hidden;
                                text-overflow: ellipsis;
                            }

                            .ctas{
                                display: flex;
                                align-items: flex-end;
                                justify-content: space-around;
                                width: 100%;
                                height: 95%;

                                .right{
                                    display: flex;
                                    flex-direction: column;
                                    align-items: flex-end;
                                    justify-content: flex-end;
                                    padding: 0;
                                    margin: 0;
                                    height: 100%;
                                    width: fit-content;

                                    .remove-from-wishlist{
                                        width: 90px;
                                        height: 35px;
                                        color: var(--background-third);
                                        background: rgba(87, 94, 85, .4);
                                        backdrop-filter: blur(10px);
                                        -webkit-backdrop-filter: blur(10px);
                                    }
                                }

                                button{
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;
                                    gap: 5px;
                                    width: 110px;
                                    height: 50px;
                                    color: var(--accent-black);
                                    white-space: nowrap;
                                    font-family: var(--text-regular1);
                                    font-size: .8rem;
                                    background: var(--background-third);
                                    font-weight: bold;
                                    backdrop-filter: blur(10px);
                                    -webkit-backdrop-filter: blur(10px);
                                    border-radius: 20px;
                                    border: 1px solid rgba(255, 255, 255, 0.2);
                                    box-shadow: var(--box-shadow);
                                    transition: all .4s ease-in-out;
                                    cursor: pointer;
                                    svg{
                                        fill: var(--accent-black);
                                        transition: .4s ease-in-out;
                                    }
                                    &:hover{
                                        color: var(--background-third);
                                        background: rgba(255, 255, 255, 0.35);
                                        box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15),
                                        -0px -.1px 3px rgba(0, 0, 0, 0.15);
                                        svg{
                                            fill: var(--background-third);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                .empty-wishlist-screen{
                    display: none;
                    align-items: center;
                    justify-content: center;
                    flex-direction: column;
                    height: 100%;
                    width: 100%;
                    font-size: 1.3rem;
                    white-space: nowrap;

                    svg{
                        margin-bottom: 50px;
                    }
                    a{
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        gap: 5px;
                        margin-top: 10px;
                        width: 140px;
                        height: 50px;
                        color: var(--accent-black);
                        text-decoration: none;
                        white-space: nowrap;
                        font-family: var(--text-regular1);
                        font-size: .8rem;
                        background: var(--background-third);
                        font-weight: bold;
                        backdrop-filter: blur(10px);
                        -webkit-backdrop-filter: blur(10px);
                        border-radius: 20px;
                        border: 1px solid rgba(255, 255, 255, 0.2);
                        box-shadow: var(--box-shadow);
                        transition: all .4s ease-in-out;
                        cursor: pointer;
                        svg{
                            margin-bottom: 0;
                            fill: var(--accent-black);
                            transition: .4s ease-in-out;
                        }
                        &:hover{
                            color: var(--background-third);
                            background: rgba(255, 255, 255, 0.35);
                            box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15),
                            -0px -.1px 3px rgba(0, 0, 0, 0.15);
                            svg{
                                fill: var(--background-third);
                            }
                        }
                    }
                }
            }
        }
    }
}

@media (max-width: 1060px){
    main{
        .windows-container{
            .wishlist{
                flex-direction: column;
                gap: 30px;
                .close-button{
                    top: 1%;
                    right: 7%;
                }

                .left{
                    justify-content: center;
                    h2{
                        font-size: 3.5rem;
                        white-space: nowrap;
                    }
                    .text{
                        display: none;
                    }
                    /* img{
                        display: none;
                    } */
                }
                .right{
                    width: 95%;
                    .wishlist-results-screen{
                        justify-content: center;
                        .w-product-card{
                            margin-bottom: 5%;
                            width: 100%;
                            .right{
                                .w-product-name{
                                    font-size: 1.2rem;
                                }
                                .w-description{
                                    font-size: 1rem;
                                    font-weight: bold;
                                }
                                .ctas{
                                    justify-content: space-between;
                                    button{
                                        width: 90px;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
