/*==================================================
CHECKOUT.CSS
Anna Amui Shop
==================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f5f5f5;
    color:#222;
    padding-bottom:95px;
}

a{
    text-decoration:none;
    color:inherit;
}

/* =========================
   HEADER
========================= */

.topbar{
    position:sticky;
    top:0;
    z-index:999;
    height:60px;
    background:#ffffff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 18px;
    border-bottom:1px solid #ececec;
}

.topbar-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.back-btn{
    width:38px;
    height:38px;
    border-radius:50%;
    background:#f3f3f3;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
}

.topbar h2{
    font-size:20px;
    font-weight:700;
}

.logo img{
    width:42px;
    height:42px;
    border-radius:50%;
}

/* =========================
   CONTAINER
========================= */

.container{
    max-width:650px;
    margin:18px auto;
    padding:0 14px;
}

/* =========================
   CARD
========================= */

.card{
    background:#ffffff;
    border-radius:16px;
    padding:18px;
    margin-bottom:16px;
    box-shadow:0 3px 10px rgba(0,0,0,.05);
}

.card-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:18px;
    font-weight:700;
    color:#ee4d2d;
    margin-bottom:18px;
}

/* =========================
   FORM
========================= */

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    font-size:14px;
    font-weight:600;
    margin-bottom:8px;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    border:1px solid #ddd;
    border-radius:10px;
    padding:12px 14px;
    font-size:15px;
    background:#fff;
    transition:.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border-color:#ee4d2d;
    box-shadow:0 0 0 3px rgba(238,77,45,.15);
}

textarea{
    resize:none;
}
/* =========================
   VARIANT PRODUK
========================= */

.variant{
    border:1px solid #ececec;
    border-radius:14px;
    padding:15px;
    margin-bottom:14px;
    transition:.25s;
}

.variant:hover{
    border-color:#ee4d2d;
}

.variant-info{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.variant-name{
    display:flex;
    align-items:center;
    gap:12px;
}

.variant-name h4{
    font-size:17px;
    margin-bottom:3px;
}

.variant-name p{
    font-size:14px;
    color:#777;
}

.dot{
    width:16px;
    height:16px;
    border-radius:50%;
}

.original{
    background:#34c759;
}

.pedas{
    background:#ff3b30;
}

/* =========================
   QTY BUTTON
========================= */

.qty-box{
    display:flex;
    align-items:center;
    gap:12px;
}

.qty-box button{
    width:38px;
    height:38px;
    border:none;
    border-radius:10px;
    background:#ee4d2d;
    color:#fff;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
}

.qty-box button:hover{
    transform:scale(1.05);
}

.qty-box button:active{
    transform:scale(.95);
}

.qty-box span{
    min-width:30px;
    text-align:center;
    font-size:18px;
    font-weight:700;
}

/* =========================
   PROMO
========================= */

.promo-box{
    margin-top:15px;
    background:#fff4ef;
    border:1px solid #ffd8cb;
    border-radius:12px;
    padding:12px;
    font-size:14px;
    line-height:1.6;
    color:#ee4d2d;
}

/* =========================
   SUMMARY
========================= */

.summary-row{
    display:flex;
    justify-content:space-between;
    margin-bottom:12px;
    font-size:15px;
}

.summary-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:20px;
    font-weight:700;
    color:#ee4d2d;
    margin-top:15px;
}

/* =========================
   STICKY CHECKOUT
========================= */

.checkout-bar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#fff;
    border-top:1px solid #e5e5e5;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 18px;
    box-shadow:0 -5px 15px rgba(0,0,0,.08);
    z-index:999;
}

.checkout-bar small{
    color:#666;
}

.checkout-bar h3{
    color:#ee4d2d;
    margin-top:4px;
    font-size:24px;
}

#checkoutBtn{
    border:none;
    background:#ee4d2d;
    color:#fff;
    padding:14px 28px;
    border-radius:12px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
}

#checkoutBtn:hover{
    background:#d93f21;
}

#checkoutBtn:active{
    transform:scale(.98);
}

/* =========================
   MOBILE
========================= */

@media(max-width:480px){

    .topbar h2{
        font-size:18px;
    }

    .card{
        padding:15px;
        border-radius:14px;
    }

    .variant-name h4{
        font-size:16px;
    }

    .checkout-bar{
        padding:12px 14px;
    }

    #checkoutBtn{
        padding:13px 20px;
        font-size:15px;
    }

}
