body.qr-modal-open{
    overflow:hidden;
}

.qr-product-open{
    cursor:pointer;
}

.qr-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
}

.qr-modal.active{
    display:block;
}

.qr-modal-bg{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.72);
    backdrop-filter:blur(8px);
}

.qr-modal-box{
    position:absolute;
    left:50%;
    top:50%;
    width:min(92vw, 520px);
    max-height:88vh;
    transform:translate(-50%, -45%) scale(.92);
    opacity:0;
    overflow:hidden;
    border-radius:28px;
    background:
        radial-gradient(circle at top right, rgba(52,211,153,.20), transparent 35%),
        linear-gradient(135deg,#111827,#1f2937);
    border:1px solid rgba(255,255,255,.16);
    box-shadow:
        0 0 35px rgba(52,211,153,.18),
        0 25px 80px rgba(0,0,0,.55);
    animation:qrModalIn .38s ease forwards;
}

@keyframes qrModalIn{
    0%{
        transform:translate(-50%, -46%) scale(.92);
        opacity:0;
        filter:blur(4px);
    }
    100%{
        transform:translate(-50%, -50%) scale(1);
        opacity:1;
        filter:blur(0);
    }
}

.qr-modal-light{
    position:absolute;
    inset:-45%;
    background:
        linear-gradient(120deg, transparent 34%, rgba(52,211,153,.13), transparent 66%),
        radial-gradient(circle at center, rgba(56,189,248,.08), transparent 42%);
    animation:qrSweep 4.8s ease-in-out infinite alternate;
    pointer-events:none;
}

@keyframes qrSweep{
    from{
        transform:translate(-18%, -10%) rotate(8deg);
    }
    to{
        transform:translate(18%, 10%) rotate(8deg);
    }
}

.qr-modal-close{
    position:absolute;
    right:14px;
    top:12px;
    z-index:5;
    width:38px;
    height:38px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(0,0,0,.35);
    color:white;
    font-size:26px;
    line-height:34px;
}

.qr-modal-img-wrap{
    position:relative;
    height:245px;
    background:#0f172a;
    overflow:hidden;
}

.qr-modal-img-wrap img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.qr-modal-fake-img{
    width:100%;
    height:100%;
    background:
        radial-gradient(circle at 25% 20%, rgba(52,211,153,.45), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(56,189,248,.35), transparent 35%),
        linear-gradient(135deg,#263244,#111827);
}

.qr-modal-content{
    position:relative;
    z-index:2;
    padding:20px;
    max-height:calc(88vh - 245px);
    overflow:auto;
}

.qr-modal-content h2{
    margin:0;
    font-size:25px;
    line-height:1.15;
}

.qr-modal-price{
    margin-top:8px;
    color:#34d399;
    font-size:22px;
    font-weight:900;
}

.qr-modal-section{
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.10);
}

.qr-modal-section h3{
    margin:0 0 6px;
    font-size:14px;
    color:#93c5fd;
}

.qr-modal-section p{
    margin:0;
    color:#dbeafe;
    font-size:14px;
    line-height:1.55;
}

@media (orientation:landscape) and (max-height:520px){
    .qr-modal-box{
        width:min(92vw, 760px);
        display:grid;
        grid-template-columns:42% 58%;
        max-height:86vh;
    }

    .qr-modal-img-wrap{
        height:100%;
        min-height:260px;
    }

    .qr-modal-content{
        max-height:86vh;
    }
}

.qr-modal.active .qr-modal-img-wrap{
    animation:qrImgSlideIn .48s cubic-bezier(.2,.9,.2,1) both;
}

.qr-modal.active .qr-modal-content h2{
    animation:qrTextFromRight .42s ease both;
    animation-delay:.10s;
}

.qr-modal.active .qr-modal-price{
    animation:qrTextFromRight .42s ease both;
    animation-delay:.18s;
}

.qr-modal.active .qr-modal-section{
    opacity:0;
    animation:qrTextFromBottom .42s ease both;
}

.qr-modal.active .qr-modal-section:nth-of-type(1){
    animation-delay:.26s;
}

.qr-modal.active .qr-modal-section:nth-of-type(2){
    animation-delay:.34s;
}

.qr-modal.active .qr-modal-section:nth-of-type(3){
    animation-delay:.42s;
}

@keyframes qrImgSlideIn{
    from{
        opacity:0;
        transform:translateX(-38px) scale(.96);
        filter:blur(3px);
    }
    to{
        opacity:1;
        transform:translateX(0) scale(1);
        filter:blur(0);
    }
}

@keyframes qrTextFromRight{
    from{
        opacity:0;
        transform:translateX(28px);
        filter:blur(2px);
    }
    to{
        opacity:1;
        transform:translateX(0);
        filter:blur(0);
    }
}

@keyframes qrTextFromBottom{
    from{
        opacity:0;
        transform:translateY(22px);
        filter:blur(2px);
    }
    to{
        opacity:1;
        transform:translateY(0);
        filter:blur(0);
    }
}

/* Modal ürün resmi güvenli sınır */
.qr-modal-img-wrap{
    box-sizing:border-box !important;
    padding:6px !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:
        radial-gradient(circle at top left, rgba(52,211,153,.15), transparent 35%),
        radial-gradient(circle at bottom right, rgba(56,189,248,.15), transparent 35%),
        linear-gradient(135deg, #1c2432, #101827) !important;
}

.qr-modal-img-wrap img{
    width:100% !important;
    height:100% !important;
    max-width:calc(100% - 8px) !important;
    max-height:calc(100% - 8px) !important;
    object-fit:contain !important;
    object-position:center center !important;
    display:block !important;
    border-radius:18px !important;
}

/* Mobilde modal resmi biraz daha kontrollü */
@media (max-width:520px){
    .qr-modal-img-wrap{
        height:235px !important;
        padding:8px !important;
    }

    .qr-modal-img-wrap img{
        max-width:calc(100% - 10px) !important;
        max-height:calc(100% - 10px) !important;
    }
}

/* Çok dar telefonlarda */
@media (max-width:390px){
    .qr-modal-img-wrap{
        height:220px !important;
    }
}

.qr-order-box{
    margin-top:16px;
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
}

.qr-order-row{
    display:flex;
    gap:10px;
    align-items:center;
}

.qr-order-row button{
    width:42px;
    height:42px;
    border:0;
    border-radius:12px;
    background:#334155;
    color:white;
    font-size:24px;
    font-weight:900;
}

.qr-order-row input{
    flex:1;
    height:42px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.14);
    background:#111827;
    color:white;
    text-align:center;
    font-size:18px;
    font-weight:900;
}

.qr-order-box textarea{
    width:100%;
    margin-top:10px;
    min-height:70px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.14);
    background:#111827;
    color:white;
    padding:10px;
}

.qr-order-add{
    width:100%;
    margin-top:10px;
    border:0;
    border-radius:14px;
    padding:13px;
    background:#10b981;
    color:white;
    font-weight:900;
}

.qr-cart-float{
    position:fixed;
    right:16px;
    bottom:16px;
    z-index:9990;
    width:58px;
    height:58px;
    border:0;
    border-radius:999px;
    background:linear-gradient(135deg,#10b981,#0ea5e9);
    color:white;
    box-shadow:0 14px 35px rgba(0,0,0,.42);
    display:flex;
    align-items:center;
    justify-content:center;
}

.qr-cart-icon{
    font-size:25px;
}

.qr-cart-count{
    position:absolute;
    right:-4px;
    top:-4px;
    min-width:23px;
    height:23px;
    padding:0 6px;
    border-radius:999px;
    background:#ef4444;
    color:white;
    font-size:12px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid #10141c;
}

.qr-cart-count.empty{
    display:none;
}

.qr-order-cart-link{
    width:100%;
    margin-top:8px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:14px;
    padding:12px;
    background:#334155;
    color:white;
    font-weight:900;
}

.qr-cart-modal{
    position:fixed;
    inset:0;
    display:none;
    z-index:10000;
}

.qr-cart-modal.active{
    display:block;
}

.qr-cart-bg{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.72);
    backdrop-filter:blur(8px);
}

.qr-cart-box{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    width:min(94vw,520px);
    max-height:88vh;
    background:#0f172a;
    border:1px solid rgba(255,255,255,.14);
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 24px 80px rgba(0,0,0,.60);
}

.qr-cart-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    padding:16px;
    background:#1e293b;
    border-bottom:1px solid rgba(255,255,255,.10);
}

.qr-cart-head h2{
    margin:0;
}

.qr-cart-head p{
    margin:4px 0 0;
    color:#94a3b8;
    font-size:13px;
}

.qr-cart-head button{
    width:38px;
    height:38px;
    border:0;
    border-radius:999px;
    background:#334155;
    color:white;
    font-size:24px;
}

.qr-cart-body{
    padding:14px;
    max-height:calc(88vh - 150px);
    overflow:auto;
}

.qr-cart-item{
    background:#111827;
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px;
    padding:12px;
    margin-bottom:10px;
}

.qr-cart-item-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.qr-cart-item strong{
    display:block;
    font-size:16px;
}

.qr-cart-item small{
    display:block;
    margin-top:4px;
    color:#94a3b8;
}

.qr-cart-item-price{
    color:#86efac;
    font-weight:900;
    white-space:nowrap;
}

.qr-cart-controls{
    display:flex;
    gap:8px;
    align-items:center;
    margin-top:10px;
}

.qr-cart-controls button{
    width:34px;
    height:34px;
    border:0;
    border-radius:10px;
    background:#334155;
    color:white;
    font-weight:900;
}

.qr-cart-controls .danger{
    margin-left:auto;
    background:#7f1d1d;
}

.qr-cart-note{
    margin-top:8px;
    color:#fef3c7;
    font-size:13px;
}

.qr-cart-empty{
    padding:18px;
    border-radius:16px;
    background:rgba(255,255,255,.06);
    color:#94a3b8;
    text-align:center;
}

.qr-cart-footer{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    padding:14px;
    background:#1e293b;
    border-top:1px solid rgba(255,255,255,.10);
}

.qr-cart-footer span{
    display:block;
    color:#94a3b8;
    font-size:12px;
}

.qr-cart-footer strong{
    display:block;
    color:#86efac;
    font-size:20px;
}

.qr-cart-footer button{
    border:0;
    border-radius:14px;
    padding:13px 16px;
    background:#10b981;
    color:white;
    font-weight:900;
}

.qr-modal-buy-head{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:flex-start;
}

.qr-modal-cart-mini{
    border:0;
    border-radius:999px;
    padding:10px 13px;
    background:#1ecea2;
    color:#0f172a;
    font-weight:900;
    box-shadow:0 8px 24px rgba(30,206,162,.22);
}

.qr-start-order-btn{
    width:100%;
    margin-top:14px;
    border:0;
    border-radius:14px;
    padding:13px;
    background:linear-gradient(135deg,#1ecea2,#00b7ff);
    color:#07111f;
    font-weight:900;
    font-size:16px;
}

.qr-suggestion-box{
    margin-top:12px;
    padding:12px;
    border-radius:16px;
    background:rgba(30,206,162,.08);
    border:1px solid rgba(30,206,162,.20);
}

.qr-suggestion-box h3{
    margin:0 0 8px;
    color:#a7f3d0;
    font-size:14px;
}

.qr-current-cart-summary{
    margin-top:14px;
    padding:12px;
    border-radius:16px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.10);
}

.qr-current-cart-summary h3{
    margin:0 0 10px;
    color:#93c5fd;
    font-size:14px;
}

.qr-current-cart-line,
.qr-current-cart-total{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:5px 0;
    color:#dbeafe;
}

.qr-current-cart-total{
    margin-top:8px;
    border-top:1px solid rgba(255,255,255,.10);
    padding-top:10px;
    color:#86efac;
    font-weight:900;
}

.qr-cart-float,
.qr-modal-cart-mini{
    background:#1ecea2 !important;
    color:#0098ff !important;
    border:2px solid rgba(255,255,255,.22) !important;
    box-shadow:
        0 0 18px rgba(30,206,162,.55),
        0 12px 30px rgba(0,0,0,.38) !important;
}

.qr-cart-float{
    width:50px !important;
    height:50px !important;
    right:14px !important;
    bottom:14px !important;
}

.qr-cart-icon{
    font-size:25px !important;
    line-height:1 !important;
    filter:drop-shadow(0 2px 2px rgba(0,0,0,.35));
}

.qr-modal-cart-mini{
    min-width:54px !important;
    height:42px !important;
    padding:8px 10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    font-size:21px !important;
}

.qr-modal-cart-mini span,
.qr-cart-count{
    color:#fff !important;
    background:#ef4444 !important;
}

.qr-cart-group-title{
    margin:12px 0 8px;
    padding:8px 10px;
    border-radius:12px;
    font-size:13px;
    font-weight:900;
}

.qr-cart-group-title.pending{
    background:rgba(251,191,36,.16);
    color:#fde68a;
    border:1px solid rgba(251,191,36,.25);
}

.qr-cart-group-title.confirmed{
    background:rgba(30,206,162,.14);
    color:#a7f3d0;
    border:1px solid rgba(30,206,162,.28);
}

.pending-item{
    border-color:rgba(251,191,36,.25) !important;
}

.confirmed-item{
    border-color:rgba(30,206,162,.22) !important;
}

.qr-cart-footer strong{
    color:#1ecea2 !important;
}

.qr-cart-footer button{
    display:none !important;
}

.qr-pending-confirm-box{
    margin:12px 0 16px;
    padding:12px;
    border-radius:16px;
    background:rgba(251,191,36,.12);
    border:1px solid rgba(251,191,36,.28);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.qr-pending-confirm-box span,
.qr-confirmed-total-box span{
    display:block;
    color:#94a3b8;
    font-size:12px;
}

.qr-pending-confirm-box strong{
    display:block;
    margin-top:4px;
    color:#fde68a;
    font-size:18px;
}

.qr-pending-confirm-box button{
    border:0;
    border-radius:14px;
    padding:12px 14px;
    background:#f59e0b;
    color:#111827;
    font-weight:900;
    white-space:nowrap;
}

.qr-confirmed-total-box{
    margin:12px 0;
    padding:12px;
    border-radius:16px;
    background:rgba(30,206,162,.10);
    border:1px solid rgba(30,206,162,.25);
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
}

.qr-confirmed-total-box strong{
    color:#1ecea2;
    font-size:18px;
}

@media(max-width:520px){
    .qr-pending-confirm-box{
        align-items:stretch;
        flex-direction:column;
    }

    .qr-pending-confirm-box button{
        width:100%;
    }
}