/* MenBeauty Popup – Frontend Styles */

#mbp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

#mbp-overlay.mbp-active {
    display: flex;
}

/* Positions */
#mbp-overlay.mbp-pos-center        { align-items: center;     justify-content: center;     }
#mbp-overlay.mbp-pos-top-left      { align-items: flex-start; justify-content: flex-start; padding: 20px; }
#mbp-overlay.mbp-pos-top-right     { align-items: flex-start; justify-content: flex-end;   padding: 20px; }
#mbp-overlay.mbp-pos-bottom-left   { align-items: flex-end;   justify-content: flex-start; padding: 20px; }
#mbp-overlay.mbp-pos-bottom-right  { align-items: flex-end;   justify-content: flex-end;   padding: 20px; }
#mbp-overlay.mbp-pos-top-center    { align-items: flex-start; justify-content: center;     padding: 20px; }
#mbp-overlay.mbp-pos-bottom-center { align-items: flex-end;   justify-content: center;     padding: 20px; }

#mbp-popup {
    position: relative;
    background: #fff;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    overflow: hidden;
}

#mbp-popup-inner {
    padding: 24px;
}

#mbp-popup-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

#mbp-popup-img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}

a > #mbp-popup-img {
    transition: opacity .2s;
}
a:hover > #mbp-popup-img {
    opacity: .9;
}

#mbp-popup-text {
    margin: 12px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

.mbp-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
}
.mbp-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

#mbp-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0,0,0,.55);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
#mbp-close:hover { background: rgba(0,0,0,.8); }

/* ── Animations ── */
@keyframes mbp-fadeIn    { from { opacity: 0; }                to { opacity: 1; } }
@keyframes mbp-slideDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mbp-slideUp   { from { opacity: 0; transform: translateY(40px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes mbp-zoomIn    { from { opacity: 0; transform: scale(.7); }         to { opacity: 1; transform: scale(1); } }
@keyframes mbp-bounceIn  {
    0%   { opacity: 0; transform: scale(.3); }
    50%  { opacity: 1; transform: scale(1.05); }
    70%  { transform: scale(.9); }
    100% { transform: scale(1); }
}

#mbp-popup.mbp-anim-fadeIn    { animation: mbp-fadeIn    .4s ease; }
#mbp-popup.mbp-anim-slideDown { animation: mbp-slideDown .4s ease; }
#mbp-popup.mbp-anim-slideUp   { animation: mbp-slideUp   .4s ease; }
#mbp-popup.mbp-anim-zoomIn    { animation: mbp-zoomIn    .35s ease; }
#mbp-popup.mbp-anim-bounceIn  { animation: mbp-bounceIn  .6s ease; }

@media (max-width: 480px) {
    #mbp-popup-title { font-size: 18px; }
    #mbp-popup-inner { padding: 16px; }
}
