
/* ===============================
   🧺 Basket Modal
   =============================== */
.basket-modal-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: none;
    justify-content: flex-start;
}
    .basket-modal-container.show {
        opacity: 1;
        transition: opacity 0.3s;
    }

.basket-modal-container {
    opacity: 0;
    pointer-events: none;
}

    .basket-modal-container.show {
        pointer-events: auto;
    }
    .basket-modal-container .basket-modal {
        background: #fff;
        width: 360px;
        height: 100%;
        display: flex;
        flex-direction: column;
        border-radius: 0px 0 0 0px;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .basket-modal.show,
    .basket-modal-container.show {
        display: flex;
    }

.basket-header {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #f6f6f6;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .basket-header .basket-close {
        background: none;
        border: none;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

.basket-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
}

.basket-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

    .basket-item:last-child {
        border-bottom: none;
    }

.basket-item-img img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.basket-item-info {
    flex: 1;
    padding-right: 10px;
}

    .basket-item-info .title {
        display: block;
        font-size: 0.95rem;
        color: #222;
        margin-bottom: 6px;
    }

.count-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .count-control .btn-count {
        width: 28px;
        height: 28px;
        background: #f2f2f2;
        border: 1px solid #ccc;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
        font-size: 16px;
        line-height: 1;
    }

    .count-control .count {
        min-width: 24px;
        text-align: center;
        font-weight: 600;
    }

.btn-remove {
    background: none;
    border: none;
    margin-right: 6px;
    cursor: pointer;
}

    .btn-remove img {
        width: 25px;
        opacity: 0.7;
        transition: 0.2s;
    }

    .btn-remove:hover img {
        opacity: 1;
    }

/* Footer */
.basket-footer {
    border-top: 1px solid #eee;
    padding: 14px 16px;
    background-color: #fafafa;
    text-align: center;
}

    .basket-footer span {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
    }

.go-to-checkout {
    display: inline-block;
    background: #0088cc;
    color: #fff;
    border-radius: 6px;
    padding: 10px 18px;
    text-decoration: none;
    transition: 0.3s;
}

    .go-to-checkout:hover {
        background: #006fa5;
    }

/* Empty basket */
.empty_basket {
    padding: 40px;
}

    .empty_basket img {
        width: 150px;
        margin-bottom: 12px;
    }

/* ===============================
   🔔 Basket Badge
   =============================== */
.basket-badge {
    position: absolute;
    top: -10px;
    right: 5px;
    background: #812a79;
    border-radius: 100%;
    font-size: small !important;
    color: white !important;
    line-height: 1;
    min-width: 20px;
    height: auto;
    text-align: center;
    padding: 3px;
    margin-right: 0 !important;
}

.basket-fig {
    position: relative;
}

/* ===============================
   ✨ Toast Notification
   =============================== */
.basket-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0.95;
}
