/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}

/* ==========================
   ESTRUTURA
========================== */

.phone{
    width:414px;
    height:896px;
    background:#fff;
    overflow:hidden;
    position:relative;
}

main{
    padding: 20px;
    width:100%;
    height:100%;
    overflow-y:auto;
}

main::-webkit-scrollbar{
    width:0px;
}


/* ==========================
   MODELO
========================== */

.model-container{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:20px;
}

.model-image{
    width:200px;
    height:350px;
}

/* ==========================
   DIVISOR
========================== */

.divider{
    width:100%;
    height:2px;
    margin:28px auto 12px;
    background:#ffd0ee;
}

/* ==========================
   BARRA DE PESQUISA
========================== */

.search-box{
    width:100%;
    height:40px;
    display:flex;
    align-items:center;
    background:#fff;
    border:2px solid #ffd0ee;
    border-radius:30px;
    margin-bottom:22px;
}

.search-box input{
    flex:1;
    margin-left:5px;
    padding:0 18px;
    border:none;
    outline:none;
    font-size:15px;
}

.search-box button{
    width:50px;
    height:100%;
    border:none;
    background:none;
    color:#ff9bd4;
    font-size:20px;
    cursor:pointer;
}

/* ==========================
   CATEGORIAS
========================== */

.categories{

    display:flex;
    gap:10px;
    overflow-x:auto;
    padding-bottom:15px;
    scrollbar-width:none;
}

.categories::-webkit-scrollbar{
    display:none;
}

.categories-wrapper{
    position:relative;
    margin-bottom:22px;
}

.categories button{
    white-space:nowrap;
    border:none;
    background:#f8c2e5;
    color:#fff;
    padding:6px 15px;
    border-radius:30px;
    font-size:15px;
    font-weight: bold;
    cursor:pointer;
    box-shadow: 3px 3px 5px #d8d8d8;
}

.categories-wrapper::before,
.categories-wrapper::after{

    content:"";

    position:absolute;

    top:0;
    bottom:0;

    width:35px;

    z-index:5;

    pointer-events:none;
}

.categories-wrapper::before{

    left:0;

    background:linear-gradient(
        to right,
        white 0%,
        rgba(255,255,255,0) 100%
    );
}

.categories-wrapper::after{

    right:0;

    background:linear-gradient(
        to left,
        white 0%,
        rgba(255,255,255,0) 100%
    );
}

.sideStartButton{
    margin-left: 30px;
}

.sideEndButton{
    margin-right: 30px;
}
/* ==========================
   PRODUTOS
========================== */

.products{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.product{
    position:relative;
    aspect-ratio:1;
    border-radius: 10px;
    border-color: #f7b8df;
    border-width: 4px;
    border-style: solid;
}

.product img{
    max-width: 90%;
    max-height: 90%;
    margin: 5%;
}

/* ==========================
   DESIGNS
========================== */

.designs{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px 12px;
}

.card{
    background:#ffc2e7;
    border-radius:12px;
    padding:4px;
    box-shadow: 3px 3px 5px #d8d8d8;
}

.preview{
    width:100%;
    aspect-ratio:0.62;
    background:#fff;
    border:2px solid #ffd0ee;
    border-radius:10px;
}

.card span{
    display:block;
    margin-top:10px;
    text-align:center;
    color:#fff;
    font-size:13px;
    font-weight:bold;
}

/* ==========================
   BARRA INFERIOR
========================== */

.bottom-bar{
    position: fixed;
    left: 50%;
    top: 91%;
    transform: translateX(-50%);
    width: 300px;
    height: 50px;

    display: flex;
    justify-content: space-evenly;
    align-items: center;

    background:
        radial-gradient(
            ellipse at center,
            rgba(247, 184, 223, 0.20) 0%,
            rgba(247, 184, 223, 0.35) 65%,
            rgba(247, 184, 223, 0.50) 100%
        );

    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);

    border-radius: 40px;

    box-shadow:
        0 8px 32px rgba(0,0,0,.15),
        inset 0 1px 1px rgba(255,255,255,.35);
    overflow: hidden;
}

.bottom-bar button{
    background:none;
    border:none;
    color:#ff4fb0;
    font-size:22px;
    cursor:pointer;
    transition:.2s;
}

.bottom-bar button:hover{
    transform:scale(1.15);
}


/* ==========================
   Login
========================== */

.login-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fafafa;
    overflow:hidden;
    position:relative;
}

.background{

    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at top left,#ffd2eb 0%,transparent 35%),
    radial-gradient(circle at bottom right,#f7b8df 0%,transparent 30%),
    #fafafa;

}

.login{

    position:relative;
    z-index:1;
    width:min(90%,400px);
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(15px);
    border-radius:25px;
    padding:40px 35px;
    box-shadow:0 20px 50px rgba(0,0,0,.12);
    display:flex;
    flex-direction:column;

}

.logo{

    width:90px;
    margin:0 auto 15px;
}

.login h1{

    text-align:center;
    margin:0;
    color:#444;
    font-size:34px;
}

.subtitle{

    margin:10px 0 30px;
    text-align:center;
    color:#777;
    font-size:15px;
}

.field{

    display:flex;
    flex-direction:column;
    margin-bottom:18px;

}

.field label{

    margin-bottom:8px;
    font-weight:bold;
    color:#555;

}

.field input{

    height:50px;
    border:2px solid #e4e4e4;
    border-radius:14px;
    padding:0 15px;
    font-size:15px;
    transition:.2s;

}

.field input:focus{

    outline:none;
    border-color:#f7b8df;

}

#loginButton{

    margin-top:10px;
    height:52px;
    border:none;
    border-radius:14px;
    background:#f7b8df;
    color:#fff;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;

}

#loginButton:hover{

    transform:translateY(-2px);
    background:#f39ed2;

}

#loginButton:active{

    transform:scale(.98);

}

#error{

    margin-top:15px;
    text-align:center;
    color:#ff3b30;
    min-height:20px;

}

@media(max-width:500px){

    .login{

        width:92%;
        padding:30px 22px;
        border-radius:20px;

    }

    .login h1{

        font-size:28px;

    }

    .logo{

        width:75px;

    }

}