﻿.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

    .cart-bar.hidden {
        display: none;
    }

.cart-btn {
    background: #22c55e;
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff;
    border: none;
}

/* MODAL */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

    .cart-modal.hidden {
        display: none;
    }

.cart-box {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 20px;
    border-radius: 12px;
    position: relative;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.qty-btn {
    padding: 4px 10px;
    border: none;
    background: #ddd;
    border-radius: 6px;
}

.cart-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-complete {
    padding: 10px 20px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
}

.cart-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 8px;
    border-radius: 6px;
    margin-top: 10px;
    display: block;
}

    .cart-error.hidden {
        display: none;
    }

#miniCartList .mini-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

#miniCartList .mini-cart-name {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#miniCartList .mini-cart-qty {
    font-weight: 600;
}
