﻿/*
.drawer {
    position: fixed;
    top: 0;
    left: -420px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    border-right: 1px solid rgba(2,6,23,.06);
    box-shadow: 0 20px 60px rgba(2,6,23,.18);
    z-index: 60;
    display: flex;
    flex-direction: column;
    transition: left .25s ease
}

.drawer--open {
    left: 0
}

.drawer__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 50
}

.drawer__overlay--show {
    opacity: 1;
    pointer-events: auto
}

.drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid rgba(2,6,23,.06);
    font-weight: 900
}

.drawer__close {
    border: 0;
    background: transparent;
    font-size: 22px
}

.drawer__body {
    padding: 12px;
    overflow: auto;
    flex: 1
}

.cart-row {
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid rgba(2,6,23,.06);
    padding: 8px 0
}

    .cart-row .thumb {
        width: 56px;
        height: 56px;
        border-radius: 10px;
        overflow: hidden;
        background: #f1f5f9
    }

        .cart-row .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover
        }

    .cart-row .meta {
        flex: 1
    }

    .cart-row .name {
        font-weight: 800
    }

    .cart-row .unit {
        font-size: 12px;
        color: #475569
    }

    .cart-row .line {
        font-weight: 900;
        color: #16a34a
    }

    .cart-row .rm {
        border: 0;
        background: #f1f5f9;
        border-radius: 10px;
        height: 32px;
        padding: 0 10px
    }

.drawer__foot {
    padding: 12px;
    border-top: 1px solid rgba(2,6,23,.06)
}

    .drawer__foot .sum {
        display: flex;
        justify-content: space-between;
        font-weight: 900;
        margin-bottom: 10px
    }

.cod-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-weight: 900
}
    */


/*----------commneted 24 jan*/
/*.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 70
}

.modal--open {
    display: flex
}

.modal__panel {
    width: 520px;
    max-width: 90vw;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(2,6,23,.25);
    overflow: hidden
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid rgba(2,6,23,.06);
    font-weight: 900
}

.modal__close {
    border: 0;
    background: transparent;
    font-size: 22px
}

.modal__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px
}

    .modal__body input, .modal__body textarea {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 10px
    }

.modal__foot {
    padding: 12px;
    border-top: 1px solid rgba(2,6,23,.06);
    display: flex;
    justify-content: flex-end
}*/


.drawer {
    padding-top: 20px;
    position: fixed;
    top: 0;
    right: -420px;
    width: 380px;
    max-width: 90vw;
    height: 88vh;
    background: #fff;
    border-left: 1px solid rgba(2,6,23,.06);
    box-shadow: 0 20px 60px rgba(2,6,23,.18);
    z-index: 60;
    display: flex;
    flex-direction: column;
    transition: right .25s ease;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px
}

.drawer--open {
    right: 0
}

.drawer__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 50
}

.drawer__overlay--show {
    opacity: 1;
    pointer-events: auto
}

.drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid rgba(2,6,23,.06);
    font-weight: 900
}

.drawer__close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1
}

.drawer__body {
    padding: 12px;
    overflow: auto;
    flex: 1
}

.cart-row {
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid rgba(2,6,23,.06);
    padding: 8px 0
}

    .cart-row .thumb {
        width: 56px;
        height: 56px;
        border-radius: 10px;
        overflow: hidden;
        background: #f1f5f9
    }

        .cart-row .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block
        }

    .cart-row .meta {
        flex: 1
    }

    .cart-row .name {
        font-weight: 800
    }

    .cart-row .unit {
        font-size: 12px;
        color: #475569
    }

    .cart-row .line {
        font-weight: 900;
        color: #16a34a
    }

    .cart-row .rm {
        border: 0;
        background: #f1f5f9;
        border-radius: 10px;
        height: 32px;
        padding: 0 10px;
        cursor: pointer
    }

.drawer__foot {
    padding: 12px;
    border-top: 1px solid rgba(2,6,23,.06)
}

    .drawer__foot .sum {
        display: flex;
        justify-content: space-between;
        font-weight: 900;
        margin-bottom: 10px
    }

.cod-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-weight: 900;
    cursor: pointer
}
/*
Shake animation input button*/

.cod-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

    .cod-btn i {
        font-size: 18px;
    }

    /* disabled থাকলে shake বন্ধ + cursor change */
    .cod-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
        animation: none;
    }

/* Shake animation */
.shake {
    animation: shake 1.1s ease-in-out infinite;
}

@keyframes shake {
    0%,100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-2px) rotate(-1deg);
    }

    20% {
        transform: translateX(3px) rotate(1deg);
    }

    30% {
        transform: translateX(-4px) rotate(-1deg);
    }

    40% {
        transform: translateX(4px) rotate(1deg);
    }

    50% {
        transform: translateX(-3px) rotate(-1deg);
    }

    60% {
        transform: translateX(3px) rotate(1deg);
    }

    70% {
        transform: translateX(-2px) rotate(-1deg);
    }

    80% {
        transform: translateX(2px) rotate(1deg);
    }

    90% {
        transform: translateX(-1px);
    }
}

/*
order final*/


.bn-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px
}

.bn-label {
    font-weight: 800;
    color: #0f172a
}

.bn-input {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px
}

.radio-list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.radio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    background: #fff
}

    .radio-item input {
        margin-right: 8px
    }

    .radio-item .fee {
        font-weight: 900;
        color: #0f172a
    }

.coupon-row {
    display: flex;
    gap: 8px;
    margin: 8px 0
}

.apply-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    background: #f59e0b;
    color: #111827;
    font-weight: 900;
    cursor: pointer
}

.summary {
    margin-top: 6px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px
}

    .summary .row {
        display: flex;
        justify-content: space-between;
        margin: 6px 0;
        font-weight: 700
    }

        .summary .row.total {
            font-size: 18px;
            color: #16a34a
        }

.btn-cta {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-weight: 900;
    cursor: pointer
}
/*
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000
}

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 1000
}

.modal__panel {
    position: relative;
    z-index: 1001;
    width: 520px;
    max-width: 90vw;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(2,6,23,.25);
    overflow: hidden
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 900
}

.modal__close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer
}

.modal__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px
}

.modal__foot {
    padding: 12px;
    border-top: 1px solid #e2e8f0
}
*/


.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow: auto;
    padding: 24px 16px; /* NEW: space so panel isn't glued to edges */
    -webkit-overflow-scrolling: touch;
}

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 1000
}

.modal__panel {
    position: relative;
    z-index: 1001;
    display: block;
    flex-direction: column;
    width: 620px;
    max-width: 92vw;
    max-height: none;
    min-height: 0;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(2,6,23,.25);
    background: #fff;
    overflow: hidden
}

.modal__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 900
}

.modal__body {
    min-height: 0;
    flex: 1 1 auto !important;
    overflow: visible;
    padding: 14px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch
}

.modal__foot {
    flex: 0 0 auto;
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff
}

.btn-cta {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-weight: 900;
    cursor: pointer
}

@media (max-width:300px) {
    .modal__panel {
        max-height: calc(100dvh - 20px);
        width: 96vw
    }
}

body.modal-open {
    overflow: hidden
}


body:has(.modal.modal--open) {
    overflow: hidden;
}
/* ----------------------------order success*/


.os-panel {
    max-width: 880px
}

.os-head {
    font-size: 18px;
    font-weight: 900
}

.os-body {
    padding: 16px
}

.os-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px
}

    .os-steps .step {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 120px
    }

        .os-steps .step i {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            display: grid;
            place-items: center;
            background: #e5f5ea;
            color: #16a34a
        }

        .os-steps .step.done i {
            background: #16a34a;
            color: #fff
        }

        .os-steps .step.active i {
            box-shadow: 0 0 0 3px rgba(22,163,74,.18)
        }

        .os-steps .step small {
            color: #64748b
        }

    .os-steps .bar {
        flex: 1;
        height: 3px;
        background: #e2e8f0;
        border-radius: 999px
    }

        .os-steps .bar.active {
            background: linear-gradient(90deg,#22c55e,#16a34a)
        }

.os-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 6px
}

.os-order-id {
    font-size: 18px;
    font-weight: 900
}

.os-date {
    color: #64748b
}

.os-total-badge {
    background: #d9f99d;
    color: #1a2e05;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 900
}

.os-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px
}

.block-title {
    font-weight: 900;
    margin: 6px 0 10px
}

.mt16 {
    margin-top: 16px
}

.kv {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    margin: 5px 0
}

    .kv div:first-child {
        color: #64748b
    }

.pill {
    display: inline-block;
    background: #fbbf24;
    color: #111827;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800
}

.os-table {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 6px
}

    .os-table .thead, .os-table .trow {
        display: grid;
        grid-template-columns: 1fr 140px 140px;
        gap: 10px;
        padding: 10px 12px
    }

    .os-table .thead {
        background: #f8fafc;
        font-weight: 900
    }

    .os-table .trow:nth-child(odd) {
        background: #fff
    }

    .os-table .trow:nth-child(even) {
        background: #fdfdfd
    }

    .os-table .pname {
        font-weight: 800
    }

    .os-table .punit {
        color: #64748b;
        font-size: 12.5px
    }

.os-summary {
    margin-top: 10px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px
}

    .os-summary .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 6px 0;
        font-weight: 700
    }

        .os-summary .row.total {
            font-size: 18px;
            color: #16a34a
        }

.os-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #fff
}

.btn-ghost {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-weight: 800;
    color: #0f172a
}

@media (max-width:720px) {
    .os-cols {
        grid-template-columns: 1fr
    }

    .os-table .thead, .os-table .trow {
        grid-template-columns: 1fr 100px 100px
    }
}

.pd-thumb.active img {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* ----------------------------Cart Drawer*/


.cart-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 10px 12px;
    border-bottom: 1px solid rgba(2,6,23,.06);
    padding: 10px 0;
}

    .cart-row .thumb {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 56px;
        height: 56px;
        border-radius: 10px;
        overflow: hidden;
        background: #f1f5f9;
    }

        .cart-row .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    .cart-row .meta {
        grid-column: 2;
        grid-row: 1;
    }

        .cart-row .meta .name {
            font-weight: 800;
            line-height: 1.25;
        }

        .cart-row .meta .unit {
            font-size: 12.5px;
            color: #475569;
            margin-top: 2px;
        }

        .cart-row .meta .line {
            font-weight: 900;
            color: #16a34a;
            margin-top: 4px;
        }

    .cart-row .actions {
        grid-column: 2;
        grid-row: 2;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

.qty-form {
    margin: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.qty-val {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

.rm {
    border: 0;
    background: #f1f5f9;
    border-radius: 10px;
    height: 32px;
    padding: 0 10px;
    cursor: pointer;
}

/* ----------------------------End*/
