﻿.cart-area {
    position: relative;
}

#cartDropdown {
    position: absolute;
    top: 45px;
    left: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    display: none;
    z-index: 9999;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
}

    .search-box input {
        width: 230px;
        border: none;
        padding: 12px;
        outline: none;
    }

    .search-box button {
        border: none;
        background: #1f6feb;
        color: white;
        width: 50px;
    }

.cart-wrapper {
    position: relative;
}

#cartButton {
    border: none;
    background: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    cursor: pointer;
    position: relative;
    transition: .3s;
}

    #cartButton:hover {
        transform: translateY(-2px);
    }

    #cartButton i {
        font-size: 22px;
        color: #444;
    }

#cartCount {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff3b30;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}



#cartIcon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}


.cart-area:hover #cartDropdown {
    display: block;
}

.cart-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.cart-container {
    max-width: 1000px;
    margin: 50px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    overflow: hidden;
}

.cart-header {
    background: #0d6efd;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.cart-count {
    background: white;
    color: #0d6efd;
    padding: 6px 15px;
    border-radius: 30px;
    font-weight: bold;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: .3s;
}

    .cart-item:hover {
        background: #fafafa;
    }

.cart-image img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-info {
    flex: 1;
    padding-right: 25px;
}

    .cart-info h4 {
        margin-bottom: 10px;
        color: #333;
    }

.price {
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
}

.cart-action {
    display: flex;
    gap: 12px;
}

.btn-pay {
    background: #198754;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
}

    .btn-pay:hover {
        color: white;
        background: #157347;
    }

.btn-delete {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #dc3545;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
}

    .btn-delete:hover {
        background: #bb2d3b;
        color: white;
    }

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f8f9fa;
    font-size: 20px;
    font-weight: bold;
}

.total-price {
    color: #198754;
    font-size: 24px;
}

.checkout-page{

    background:#f5f7fb;

    padding:60px 0;

    min-height:100vh;

}

.checkout-card{

    max-width:850px;

    margin:auto;

    background:#fff;

    border-radius:20px;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

    overflow:hidden;

}

.checkout-header{

    background:linear-gradient(135deg,#0d6efd,#2f80ed);

    color:#fff;

    padding:30px;

    display:flex;

    align-items:center;

    gap:20px;

}

.checkout-icon{

    width:70px;

    height:70px;

    border-radius:50%;

    background:rgba(255,255,255,.2);

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:34px;

}

.checkout-header h2{

    margin-bottom:8px;

    font-weight:bold;

}

.checkout-header p{

    margin:0;

    opacity:.85;

}

.checkout-card form{

    padding:35px;

}

.checkout-card label{

    font-weight:700;

    margin-bottom:8px;

    display:block;

    color:#444;

}

.input-box{

    position:relative;

}

.input-box i{

    position:absolute;

    right:18px;

    top:50%;

    transform:translateY(-50%);

    color:#0d6efd;

    font-size:18px;

}

.input-box input{

    height:55px;

    padding-right:50px;

    border-radius:12px;

    border:1px solid #ddd;

    transition:.3s;

}

.input-box input:focus{

    border-color:#0d6efd;

    box-shadow:0 0 0 4px rgba(13,110,253,.15);

}

.checkout-footer{

    margin-top:25px;

    text-align:center;

}

.btn-checkout{

    width:100%;

    height:60px;

    border:none;

    border-radius:15px;

    background:linear-gradient(135deg,#198754,#28a745);

    color:white;

    font-size:18px;

    font-weight:bold;

    transition:.3s;

}

.btn-checkout:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 20px rgba(25,135,84,.35);

}

.text-danger{

    font-size:13px;

    margin-top:5px;

    display:block;

}
.card {
    border-radius: 20px;
}

.card-header {
    border-radius: 20px 20px 0 0 !important;
}

.form-control {
    border-radius: 12px;
    height: 55px;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
    }

.btn-success {
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
}

.text-danger {
    font-size: 13px;
    margin-top: 5px;
}

