
/*==================================================
    PROMMINER CART
==================================================*/

:root{

--pm-blue:#7086FC;
--pm-blue-hover:#5E74F2;

    --pm-bg:#ffffff;

    --pm-border:#E8EDF3;

    --pm-text:#232323;

    --pm-text-light:#7B8794;

    --pm-shadow:
        0 20px 60px rgba(0,0,0,.18);

    --pm-radius:18px;

}

/*==================================================
    RESET
==================================================*/

#pm-cart,
#pm-cart *{

    box-sizing:border-box;

    font-family:Inter,Arial,sans-serif;

}

/*==================================================
    OVERLAY
==================================================*/

.pm-cart-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(2px);

    opacity:0;

    visibility:hidden;

    transition:.25s;

    z-index:99998;

}

.pm-cart-overlay.active{

    opacity:1;

    visibility:visible;

}

/*==================================================
    DRAWER
==================================================*/

.pm-cart{

    position:fixed;

    top:0;

    right:-520px;

    width:520px;

    max-width:100%;

    height:100vh;

    background:#fff;

    display:flex;

    flex-direction:column;

    box-shadow:var(--pm-shadow);

    transition:right .28s ease;

    z-index:99999;

}

.pm-cart.active{

    right:0;

}

/*==================================================
    HEADER
==================================================*/

.pm-cart__header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    padding:28px;

    border-bottom:1px solid var(--pm-border);

    background:#fff;

}

.pm-cart__header-left{

    display:flex;

    flex-direction:column;

    flex:1;

}
.pm-cart__title{

    font-size:30px;

    font-weight:700;

    color:var(--pm-text);

    line-height:1;

}

.pm-cart__subtitle{

    margin-top:8px;

    font-size:14px;

    color:var(--pm-text-light);

}

.pm-cart__close{

    width:42px;

    height:42px;

    border:none;

    border-radius:12px;

    background:#F5F7FA;

    cursor:pointer;

    transition:.2s;

    color:#444;

}

.pm-cart__close:hover{

    background:#EAEFF5;

}

/*==================================================
    BODY
==================================================*/

.pm-cart__body{

    flex:1;

    overflow:auto;

    padding:24px;

    background:#FAFBFD;

}

.pm-cart__body::-webkit-scrollbar{

    width:7px;

}

.pm-cart__body::-webkit-scrollbar-thumb{

    background:#D7DEE8;

    border-radius:20px;

}

.pm-cart-empty{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:80px 30px;

}

.pm-cart-empty > .pm-cart-empty__popular-grid{
    margin-top:40px;
}

.pm-cart-empty__icon{

    font-size:54px;

}

.pm-cart-empty__title{

    margin-top:20px;

    font-size:22px;

    font-weight:700;

}

.pm-cart-empty__text{

    margin-top:8px;

    color:#8B97A7;

    font-size:15px;

}

/*==================================================
    CART ITEM
==================================================*/

.pm-cart-item{

    display:flex;

    align-items:flex-start;

    gap:18px;

    background:#fff;

    border:1px solid var(--pm-border);

    border-radius:20px;

    padding:18px;

    margin-bottom:18px;

    transition:.2s;

}

.pm-cart-item:hover{

    border-color:#D5E5F9;

    box-shadow:0 8px 24px rgba(0,0,0,.06);

}

.pm-cart-item__image{

    flex:0 0 100px;

    width:100px;

    height:100px;

    border-radius:16px;

    overflow:hidden;

    background:#fff;

    border:1px solid #EEF2F6;

    display:flex;

    align-items:center;

    justify-content:center;

}

.pm-cart-item__image img{

    width:100%;

    height:100%;

    object-fit:contain;

    display:block;

}

.pm-cart-item__content{

    flex:1;

    min-width:0;

    display:flex;

    flex-direction:column;

}

.pm-cart-item__title{

    font-size:18px;

    font-weight:700;

    color:#1F2937;

    line-height:1.35;

}

.pm-cart-item__offer{

    margin-top:6px;

    color:#7B8794;

    font-size:14px;

}

.pm-cart-item__price{

    margin-top:16px;

    font-size:26px;

    font-weight:700;

    color:#1F2937;

    line-height:1;

}
.pm-cart-item__bottom{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:20px;

}

/*==================================================
    COUNTER
==================================================*/

.pm-counter{

    display:flex;

    align-items:center;

    gap:10px;

}

.pm-counter button{

    width:36px;

    height:36px;

    border:none;

    background:#EDF4FD;

    border-radius:10px;

color:var(--pm-blue);


    font-size:20px;

    font-weight:700;

    cursor:pointer;

    transition:.2s;

}

.pm-counter button:hover{

    background:#DCEBFD;

}

.pm-counter span{

    width:28px;

    text-align:center;

    font-size:17px;

    font-weight:700;

}

/*==================================================
    REMOVE
==================================================*/

.pm-remove{

    border:none;

    background:none;

    color:#B0B7C3;

    font-size:14px;

    cursor:pointer;

    transition:.2s;

}

.pm-remove:hover{

    color:#E53935;

}

/*==================================================
    LOADER
==================================================*/

.pm-loader{

    text-align:center;

    padding:70px 0;

    color:#7B8794;

    font-size:15px;

}

/*==================================================
    SUMMARY
==================================================*/

.pm-cart__summary{

    background:#fff;

    border-top:1px solid var(--pm-border);

    border-bottom:1px solid var(--pm-border);

    padding:22px 24px;

}

.pm-summary__title{

    font-size:22px;

    font-weight:700;

    color:#232323;

    margin-bottom:18px;

}

.pm-summary__row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:14px;

    font-size:15px;

}

.pm-summary__row span{

    color:#7B8794;

}

.pm-summary__row strong{

    color:#111;

    font-size:18px;

    font-weight:700;

}

#pm-cart-total{

    color:#1F2937;

    font-size:26px;

    font-weight:700;

    line-height:1;

}
/*==================================================
    FOOTER
==================================================*/

.pm-cart__footer{

    background:#fff;

    padding:24px;

    flex-shrink:0;

    height:auto;

    min-height:220px;

    overflow:visible;

}
/*==================================================
    FORM
==================================================*/

#pm-cart-form{

    display:flex;

    flex-direction:column;

    gap:16px;

    width:100%;

    height:auto;

}


/* INPUT — БЕЗ ВЫСОТЫ И БЕЗ РАМКИ */
.pm-cart-input,
.pm-textarea{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    color:#232323;

}

/* focus */
.pm-cart-field:focus-within{
    background:#EEF2F6;
    box-shadow:0 0 0 1px #D0D7DE;
}

.pm-textarea{

    height:120px;

    resize:none;

    padding:16px 18px;

}


.pm-cart-input::placeholder,
.pm-textarea::placeholder{

    color:#9AA6B2;

}

/*==================================================
    BUTTON
==================================================*/


.pm-submit:hover{

background:var(--pm-blue-hover);

    transform:translateY(-2px);

}

.pm-submit:active{

    transform:translateY(0);

}
.pm-cart__header-top{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:28px;

    padding-right:16px;

}
.pm-cart__clear{

    display:none;

    margin-right:10px;

    border:none;

    background:none;

    padding:0;

    color:#A8B0BD;

    font-size:13px;

    font-weight:500;

    cursor:pointer;

    transition:.2s;

    white-space:nowrap;

}
.pm-cart__clear:hover{

    color:#F44336;

}
/*=============================
    POPUP
=============================*/

.pm-popup{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    align-items:center;

    justify-content:center;

    z-index:999999;

}

.pm-popup.active{

    display:flex;

}

.pm-popup__box{

    width:420px;

    max-width:calc(100% - 40px);

    background:#fff;

    border-radius:22px;

    padding:40px;

    text-align:center;

}

.pm-popup__icon{

    width:72px;

    height:72px;

    margin:0 auto 20px;

    border-radius:50%;

    background:#E8F8EE;

    color:#27AE60;

    font-size:42px;

    display:flex;

    align-items:center;

    justify-content:center;

}

.pm-popup__title{

    font-size:26px;

    font-weight:700;

}

.pm-popup__text{

    margin-top:12px;

    color:#7B8794;

    line-height:1.6;

}

.pm-popup__btn{

    width:100%;

    margin-top:30px;

    height:54px;

    border:none;

    border-radius:14px;

background:var(--pm-blue);
    color:#fff;

    cursor:pointer;

    font-size:16px;

    font-weight:700;

}



/* =========================
   CARD STYLE
========================= */

.pm-popular-card{
    position:relative;
    background:#F9FAFC;
    border:1px solid #EEF2F6;
    border-radius:14px;
    overflow:hidden;
    transition:.2s ease;
}
.pm-popular-card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
    border-color:#D6E2F0;
}
/* =========================
   LINK LAYOUT
========================= */

.pm-popular-card a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    text-decoration:none;
    color:#111;
}
/* =========================
   IMAGE
========================= */

.pm-popular-img{
    width:52px;
    height:52px;
    border-radius:12px;
    background:#fff;
    border:1px solid #E9EDF3;
    overflow:hidden;
    flex-shrink:0;
}

.pm-popular-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}
/* =========================
   TEXT
========================= */

.pm-popular-name{
    font-size:14px;
    font-weight:700;
    line-height:1.2;
}

.pm-popular-price{
    font-size:12px;
    color:#6B7280;
    margin-top:3px;
    white-space:nowrap;
}

.pm-popular-card{
    position:relative;
    overflow:hidden;
}
.pm-cart-empty__popular{
    margin-top:60px;
    padding:18px;
    background:#fff;
    border:1px solid #E9EDF3;
    border-radius:18px;
    box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.pm-cart-empty__popular-title{
    display:flex;
    align-items:center;
    gap:10px;

    font-size:18px;
    font-weight:700;
    color:#1F2937;

    margin-bottom:16px;
}
.pm-cart-empty__popular-title::before{
    content:"";
    width:4px;
    height:18px;
    border-radius:2px;
    background:#7086FC;
}
.pm-cart-empty__popular-grid{
    display:grid;
    gap:10px;
}
/*==================================================
    ANIMATION
==================================================*/

.pm-cart{

    will-change:right;

}

.pm-cart-item{

    animation:pmFade .25s ease;

}
/* ===== INPUTS ===== */

.pm-cart-field{
    background:#F3F5F7;
    border-radius:12px;
    padding:12px 12px;   /* ВАЖНО — это даёт высоту */
    display:flex;
    align-items:center;
    gap:10px;
    min-height:52px;     /* 👈 делаем чуть выше */
    box-sizing:border-box;
}

/* input */
.pm-cart-input,
.pm-textarea{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:15px;
    padding:0;
    margin:0;
    line-height:1.4;
}

/* ===== PHONE PREFIX ===== */

.pm-phone-prefix{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
}

/* ===== BUTTON ===== */

.pm-cart-submit{
    width:100%;          /* 👈 ВАЖНО */
    height:52px;         /* как поля */
    border:none;
    border-radius:12px;
    background:#7086FC;
    color:#fff;
    font-size:16px;
    font-weight:700;
}
@keyframes pmFade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.pm-cart-submit:hover{

    background:#5E74F2;

}
.pm-phone-wrap{
    display:flex;
    align-items:center;
    gap:8px;
}

.pm-cart-empty__btn{
    display:inline-flex;
    margin-top:18px;
    padding:12px 18px;
    border-radius:12px;
    background:#7086FC;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    font-size:14px;
    transition:.2s;
}

.pm-cart-empty__btn:hover{
    background:#5E74F2;
}


.pm-badge-ribbon{
    position:absolute;

    top:2px;
    left:-12px;

    width:55px;
    height:14px;

    background:#ff3b30;
    color:#fff;

    font-size:8px;
    font-weight:700;
    line-height:14px;
    text-align:center;

    transform:rotate(-25deg);

    border-radius:3px;

    z-index:10;
}
/*==================================================
    MOBILE
==================================================*/

/*==================================================
    MOBILE
==================================================*/

@media (max-width:768px){

    .pm-cart{

        width:100%;
        right:-100%;
        height:100dvh;

        display:flex;
        flex-direction:column;

        overflow:hidden;
    }

    .pm-cart.active{

        right:0;

    }

    /* HEADER */

    .pm-cart__header{

        flex-shrink:0;

    padding:20px;

    }

    .pm-cart__title{

        font-size:22px;

    }

    .pm-cart__subtitle{

        margin-top:4px;

        font-size:12px;

    }

    /* BODY */

    .pm-cart__body{

        flex:1;

        min-height:0;

        overflow-y:auto;

        padding:10px;

    }

    .pm-cart-item{

        gap:10px;

        padding:10px;

        margin-bottom:10px;

        border-radius:14px;

    }

    .pm-cart-item__image{

        width:70px;
        height:70px;
        flex:0 0 70px;

    }

    .pm-cart-item__title{

        font-size:14px;
        line-height:1.3;

    }

    .pm-cart-item__offer{

        margin-top:3px;
        font-size:12px;

    }

    .pm-cart-item__price{

        margin-top:6px;
        font-size:18px;

    }

    .pm-cart-item__bottom{

        margin-top:10px;

    }

    /* COUNTER */

    .pm-counter{

        gap:6px;

    }

    .pm-counter button{

        width:30px;
        height:30px;

        font-size:18px;

    }

    .pm-counter span{

        font-size:14px;

    }

    .pm-remove{

        font-size:12px;

    }

    /* SUMMARY */

    .pm-cart__summary{

        flex-shrink:0;

    padding:16px 18px;

    }

    .pm-summary__title{

        margin-bottom:10px;

        font-size:17px;

    }

    .pm-summary__row{

        margin-top:8px;

        font-size:13px;

    }

    #pm-cart-total{

        font-size:20px;

    }

    /* FOOTER */

    .pm-cart__footer{

        flex-shrink:0;

    padding:18px;

    }

    #pm-cart-form{

        gap:8px;

    }


    .pm-textarea{
        resize:none;
        min-height:44px;
    }

.pm-cart-submit{

        height:46px;

        font-size:15px;

        border-radius:12px;

    }

    /* POPUP */

    .pm-popup{

        align-items:flex-end;

    }

    .pm-popup__box{

        width:100%;

        max-width:none;

        margin:0;

        border-radius:24px 24px 0 0;

        padding:24px 20px calc(24px + env(safe-area-inset-bottom));

    }

}

@media (max-width:480px){

    .pm-cart__body{

        padding:8px;

    }

    .pm-cart-item{

        padding:8px;

    }

    .pm-cart-item__image{

        width:64px;
        height:64px;
        flex:0 0 64px;

    }

    .pm-cart-item__title{

        font-size:13px;

    }

    .pm-cart-item__offer{

        font-size:11px;

    }

    .pm-cart-item__price{

        font-size:16px;

    }

    .pm-summary__title{

        font-size:16px;

    }

    .pm-summary__row{

        font-size:12px;

    }

    #pm-cart-total{

        font-size:18px;

    }

}
