.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: "Freight Display Pro", "Libre Baskerville", serif !important;
}

/* Content uses the display serif. Target the text elements directly — they carry
   their own font-family from the theme, which would otherwise beat inheritance
   from .my-bag-modal. */
.my-bag-modal .modal-title,
.my-bag-modal .prct_content_infos h3,
.my-bag-modal .product-description h5,
.my-bag-modal .product-description p,
.my-bag-modal .price-amount,
.my-bag-modal .remove-btn {
    font-family: "Freight Display Pro", "Libre Baskerville", serif !important;
}

/* ── 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 #2a2a2a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background-color: #1E1E1E !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: #ffffff;
}

.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: #ffffff;
    line-height: 20px;
}

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

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

.my-bag-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #3a3a3a;
    background-color: #2a2a2a;
    color: #f5f5f5;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.my-bag-qty-btn:hover {
    background-color: #363636;
}
.my-bag-qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #3a3a3a;
    background-color: #2a2a2a;
    color: #f5f5f5;
    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: #ffffff;
}

.my-bag-modal .remove-btn {
    font-size: 11px;
    text-transform: lowercase;
    color: #9a9488;
    letter-spacing: 0.5px;
    text-decoration: underline;
}

/* Footer buttons: full modal width, stacked. Drop the footer's horizontal
   padding so the w-100 buttons reach the modal edges (keep top/bottom padding
   for spacing). */
.my-bag-modal .modal-footer {
    flex-direction: column;
    gap: 10px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.my-bag-modal .modal-footer .btn {
    /* border-radius: 12px; */
    font-family: "Myriad Pro", "Roboto", sans-serif !important;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 20px;
    text-decoration: underline;
    width: 100%;
    margin: 0 !important;
}

/* Buttons (footer CTAs + quantity controls) use the sans-serif face, not the
   content serif. */
.my-bag-modal .my-bag-qty-btn,
.my-bag-modal .my-bag-qty-input {
    font-family: "Myriad Pro", "Roboto", sans-serif !important;
}

.my-bag-modal .continue-shopping {
    background-color: #121212;
    border-color: #121212;
    color: #C8C8C8;
}

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

.my-bag-modal .go-to-checkout-modal {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #1E1E1E;
}

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

/* ── Light theme: item dividers span the full drawer width ──
   Break the .section-divider out of the modal-body's horizontal padding
   (30px desktop / 20px mobile) so it runs edge-to-edge. */
.my-bag-modal .modal-body .section-divider {
    width: auto;
    margin-left: -30px;
    margin-right: -30px;
    border-bottom-color: #FFFFFF;
}

/* Dividers in the footer / around the buttons also need the light colour on the
   dark background. */
.my-bag-modal .section-divider {
    border-bottom-color: #FFFFFF;
}

/* Close (✕) button — light on dark. */
.my-bag-modal .btn-close {
    filter: invert(1) grayscale(1) brightness(1.6);
}

@media (max-width: 767px) {
    .my-bag-modal .modal-body .section-divider {
        margin-left: -20px;
        margin-right: -20px;
    }
}
