
/* finance-projects.css - Generated */
.project-store{padding:70px 0;background:#f7f9fc}
.project-store .container{max-width:1200px;margin:auto;padding:0 15px}
.project-store .section-title{text-align:center;margin-bottom:30px}
.project-store .section-title h2{color:#0b2d5c;font-size:34px}
.project-store .section-title p{color:#666;line-height:2}
.project-filter{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:25px 0 40px}
.project-filter button{display:inline-block!important;width:auto!important;background:#0b63ce;color:#fff;border:none;border-radius:30px;padding:10px 22px;font-weight:700;cursor:pointer}
.project-filter button:hover,.project-filter .active{background:#083f86}
.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:25px}
.project-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,.08);transition:.3s;position:relative}
.project-card:hover{transform:translateY(-6px)}
.project-card img{width:100%;height:220px;object-fit:cover}
.project-content{padding:20px}
.project-content h3{margin:0 0 10px;color:#0b2d5c}
.project-content p{line-height:1.9;color:#666;min-height:90px}
.price{font-size:24px;font-weight:bold;color:#0b63ce;margin:15px 0}
.buttons{display:flex;gap:10px}
.buttons a{flex:1;text-align:center;padding:12px;border-radius:8px;text-decoration:none;font-weight:bold}
.buttons a:first-child{background:#ececec;color:#333}
.buttons .buy{background:#0b63ce;color:#fff}
.badge{position:absolute;top:12px;right:12px;background:#ff6b00;color:#fff;padding:6px 12px;border-radius:20px;font-size:12px}
.badge.new{background:#16a34a}
@media(max-width:768px){
.project-filter button{flex:none!important;width:auto!important}
.buttons{flex-direction:column}
}


function updateCartUI() {
    const cartCount = document.getElementById("cartCount");
    if (cartCount) {
        cartCount.innerText = cart.length;
    }

    const cartBox = document.getElementById("cartBox");

    if (cartBox) {
        renderCart();
    }
}



/* CART BAR */
.cart-bar{
position:fixed;
left:20px;
top:20px;
background:#0b63ce;
color:#fff;
padding:12px 20px;
border-radius:30px;
cursor:pointer;
z-index:9999;
}

#cartCount{
background:red;
padding:4px 10px;
border-radius:50%;
margin-right:8px;
}

/* MODAL */
.cart-modal{
position:fixed;
top:0;
right:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
display:none;
justify-content:center;
align-items:center;
z-index:99999;
}

.cart-modal.active{
display:flex;
}

.cart-box{
background:#fff;
width:350px;
max-height:500px;
overflow:auto;
border-radius:12px;
padding:20px;
}

.cart-item{
display:flex;
justify-content:space-between;
margin:10px 0;
font-size:13px;
}

.cart-item button{
background:red;
color:#fff;
border:none;
padding:4px 8px;
border-radius:6px;
cursor:pointer;
}

.cart-total{
font-weight:bold;
margin-top:10px;
}

.checkout-btn{
width:100%;
padding:10px;
background:#0b63ce;
color:#fff;
border:none;
border-radius:8px;
margin-top:10px;
cursor:pointer;
}

.close-btn{
width:100%;
padding:10px;
background:#999;
color:#fff;
border:none;
border-radius:8px;
margin-top:10px;
cursor:pointer;
}