.repairs-section .quantity-wrapper {
    justify-content: start;
}
/* Quantity Design */
.my-bag-quantity-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0;
    gap: 8px;
}
.my-bag-modal {
    font-family: 'Sora', 'neue-haas-grotesk-text', sans-serif;
}

/* ── Desktop: small floating card bottom-right ── */
.my-bag-popup .modal-dialog {
    margin: 0;
    max-width: none;
    width: min(520px, calc(100vw - 96px));
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

.my-bag-popup.modal.fade .modal-dialog {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
}

.my-bag-popup.modal.show .modal-dialog {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

@media (min-width: 768px) {
    .my-bag-popup .modal-dialog {
        position: fixed;
        bottom: 24px;
        right: 32px;
    }
}

/* ── Mobile: full-width bottom sheet ── */
@media (max-width: 767px) {
    /* Use fixed positioning on the dialog so Bootstrap's container flow can't interfere */
    .my-bag-popup .modal-dialog {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        min-height: auto !important;
        z-index: 1056 !important;
    }

    /* Slide up from below viewport */
    .my-bag-popup.modal.fade .modal-dialog {
        transform: translateY(100%) !important;
        opacity: 1 !important;
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    }

    .my-bag-popup.modal.show .modal-dialog {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}

/* ── Modal content ── */
.my-bag-modal .modal-content {
    border-radius: 25px 25px 0 0 !important;
    border: 1px solid #e3e3e3;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    bottom: -25px;
}

.my-bag-modal .modal-header,
.my-bag-modal .modal-body,
.my-bag-modal .modal-footer { padding: 30px !important; }

@media (max-width: 767px) {
    .my-bag-modal .modal-content {
        border-radius: 25px 25px 0 0 !important;
        border: none !important;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12) !important;
        max-height: 88dvh !important;
        max-height: 88vh !important;
        padding-top: 8px;
    }

    /* Drag handle indicator */
    .my-bag-modal .modal-content::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: #d1d1d6;
        border-radius: 2px;
        margin: 0 auto 4px;
        flex-shrink: 0;
    }

    .my-bag-modal .modal-header,
    .my-bag-modal .modal-body,
    .my-bag-modal .modal-footer {
        padding: 16px 20px !important;
    }

    .my-bag-modal .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .my-bag-modal .modal-footer {
        flex-shrink: 0;
        padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
    }

    .my-bag-modal .inn_prdct_img img {
        width: 88px !important;
    }
}

.modal-backdrop.my-bag-backdrop {
    background: rgba(8, 10, 14, 0.6);
    backdrop-filter: blur(2px);
}

body.my-bag-open {
    overflow: hidden;
}

.my-bag-modal .modal-header,
.my-bag-modal .modal-footer {
    border: none;
}

.my-bag-modal .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: #B9B9B9 transparent;
}

.my-bag-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.my-bag-modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.my-bag-modal .modal-body::-webkit-scrollbar-thumb {
    background-color: #B9B9B9;
    border-radius: 3px;
}

.my-bag-modal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1c1c1e;
}

.my-bag-modal .my-bag-item {
    display: flex;
    gap: 16px;
}

.my-bag-modal .inn_prdct_img img {
    width: 120px;
    border-radius: 12px;
}

.my-bag-modal .prct_content_infos h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1e;
    line-height: 20px;
}

.my-bag-modal .product-description h5 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    margin-bottom: 4px;
    color: #8f8f8f;
}

.my-bag-modal .product-description p {
    font-size: 11px;
    line-height: 1.25;
    color: #505050;
    margin-bottom: 0;
}

.my-bag-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.my-bag-qty-btn:hover {
    background-color: #f0f0f0;
}
.my-bag-qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.my-bag-modal .pricing_datas {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.my-bag-modal .price-amount {
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1e;
}

.my-bag-modal .remove-btn {
    font-size: 11px;
    text-transform: lowercase;
    color: #373B3C;
    letter-spacing: 0.5px;
}

.my-bag-modal .modal-footer .btn {
    /* border-radius: 12px; */
    font-weight: 600;
    font-size: 16px;
    padding: 14px 20px;
}

.my-bag-modal .continue-shopping {
    background-color: #EBEDED;
    border-color: #EBEDED;
    color: #373B3C;
}

.my-bag-modal .continue-shopping:hover {
    background-color: #dcdede;
    border-color: #dcdede;
    color: #1c1c1e;
}

.my-bag-modal .go-to-checkout-modal {
    background-color: #373B3C;
    border-color: #373B3C;
    color: #fff;
}

.my-bag-modal .go-to-checkout-modal:hover {
    background-color: #222425;
    border-color: #222425;
}
