/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

body{
    background:#000;
    color:#fff;
}

/* ===========================
   CONTAINER
=========================== */

.container{
    width:100%;
    max-width:500px;
    margin:auto;
    min-height:100vh;
    padding:20px;
}

/* ===========================
   HEADER
=========================== */

header{
    text-align:center;
    margin-bottom:30px;
}

.logo{
    font-size:70px;
    margin-bottom:10px;
}
.logo img{width: 100%; max-width: 400px;}

header h1{
    font-size:32px;
    margin-bottom:10px;
    font-weight:700;
    color: #afca27;
}

header p{
    color:#fff;
    line-height:1.6;
}

/* ===========================
   FORM
=========================== */

.picker{
    background:#2f2f2f;
    padding:20px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.field{
    margin-bottom:18px;
}

.field label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.field select{
    width:100%;
    height:52px;
    border:1px solid #ddd;
    border-radius:14px;
    padding:0 15px;
    font-size:16px;
    background:#fff;
    outline:none;
    transition:.25s;
}

.field select:focus{
    border-color:#0071e3;
}

/* ===========================
   BUTTON
=========================== */

#search{
    width:100%;
    height:55px;
    border:none;
    border-radius:16px;
    background:#0071e3;
    color:#fff;
    font-size:17px;
    cursor:pointer;
    transition:.25s;
}

#search:hover{
    background:#0060c9;
}

#search:active{
    transform:scale(.98);
}

/* ===========================
   INFO
=========================== */

#info{
    margin-top:25px;
}

.message{
    background:#fff;
    border-radius:18px;
    padding:18px;
    text-align:center;
    color:#666;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

/* ===========================
   RESULTS
=========================== */

#results{
    margin-top:25px;
}

/* ===========================
   CARD
=========================== */

.card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    margin-bottom:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    animation:fade .35s;
}

.image{
    background:#fafafa;
    padding:25px;
    text-align:center;
}

.image img{
    width:180px;
    max-width:100%;
}

.content{
    padding:20px;
}

.title{
    font-size:24px;
    margin-bottom:10px;
}

.specs{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:15px;
}

.specs span{
    background:#f2f2f2;
    border-radius:50px;
    padding:8px 15px;
    font-size:14px;
    color: #000;
}

.price{
    font-size:28px;
    font-weight:bold;
    color:#0071e3;
    margin-bottom:15px;
}

.stock{
    font-weight:600;
    margin-bottom:20px;
}

.instock{
    color:#18a558;
}

.outstock{
    color:#ff3b30;
}

/* ===========================
   BUTTON CARD
=========================== */

.choose{
    width:100%;
    height:50px;
    border:none;
    border-radius:14px;
    background:#000;
    color:#fff;
    font-size:16px;
    cursor:pointer;
    transition:.25s;
}

.choose:hover{
    background:#333;
}

/* ===========================
   LOADER
=========================== */


/* ===========================
   EMPTY
=========================== */

.empty{
    background:#fff;
    border-radius:20px;
    padding:35px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.empty h2{
    margin-bottom:10px;
}

.empty p{
    color:#666;
}

/* ===========================
   ANIMATIONS
=========================== */

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

@keyframes fade{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ===========================
   MOBILE
=========================== */

@media(max-width:500px){

    .container{
        padding:15px;
    }

    header h1{
        font-size:28px;
    }

    .image img{
        width:150px;
    }

    .title{
        font-size:21px;
    }

    .price{
        font-size:24px;
    }

}