/* Overlay nền tối */
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    overflow: hidden;
    position: fixed;
    background: #000; /* Nền đen rõ */
    opacity: 0.8;
}

/* Bao quanh popup */
.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
    position: fixed;
    outline: none !important;
    -webkit-backface-visibility: hidden;
}

/* Phần popup hiển thị */
.mfp-content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
}

/* Bộ tải trước (preloader) */
.mfp-preloader {
    color: #ccc;
}
.mfp-preloader a {
    color: #ccc;
}
.mfp-preloader a:hover {
    color: #fff;
}

/* Nút đóng popup */
.mfp-close {
    color: #fff;
}
.mfp-close:hover,
.mfp-close:focus {
    opacity: 1;
}
.mfp-close-btn-in .mfp-close {
    color: #333;
}

/* Hình ảnh hiển thị trong popup */
img.mfp-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    box-sizing: border-box;
    padding: 40px 0 40px;
    margin: 0 auto;
}

/* Bóng đổ và caption ảnh */
.mfp-figure {
    line-height: 0;
}
.mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
    background: #444;
}
.mfp-figure small {
    color: #bdbdbd;
    display: block;
    font-size: 12px;
    line-height: 14px;
}
.mfp-title {
    text-align: left;
    line-height: 18px;
    color: #f3f3f3;
    word-wrap: break-word;
    padding-right: 36px;
}

/* Nút điều hướng trái/phải */
.mfp-arrow {
    position: absolute;
    opacity: 0.65;
    margin: 0;
    top: 50%;
    margin-top: -55px;
    padding: 0;
    width: 90px;
    height: 110px;
    -webkit-tap-highlight-color: transparent;
}
.mfp-arrow:after, .mfp-arrow:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: medium inset transparent;
}
.mfp-arrow-left:after {
    border-right: 17px solid #fff;
    left: 31px;
}
.mfp-arrow-left:before {
    border-right: 27px solid #3f3f3f;
    left: 25px;
}
.mfp-arrow-right:after {
    border-left: 17px solid #fff;
    left: 39px;
}
.mfp-arrow-right:before {
    border-left: 27px solid #3f3f3f;
    left: 33px;
}

/* Nút "Mua ngay" đẹp */
a.devvn_buy_now_style {
    display: inline-block;
    padding: 10px 20px;
    color: #fff !important;
    text-align: center;
    background: linear-gradient(to bottom, #f59000, #fd6e1d);
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}
a.devvn_buy_now_style:hover,
a.devvn_buy_now_style:focus {
    background: linear-gradient(to bottom, #fd6e1d, #f59000);
    color: #fff;
}
a.devvn_buy_now_style span {
    color: #fff;
}

/* Popup tổng thể */
.devvn-popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.75);
}
.devvn-popup-inner {
    max-width: 100%;
    width: 700px;
    padding: 15px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}
.devvn-popup-content {
    padding: 10px 0;
}
.devvn-popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.devvn-popup-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(to bottom, #c69a39 0%, #c19a4b 100%);
    padding: 10px;
}
.devvn-popup-desc {
    text-align: center;
    font-size: 13px;
    padding: 10px;
}
a.devvn_close {
    position: absolute;
    right: -10px;
    top: -10px;
    background: #000;
    color: #fff;
    padding: 2px 5px;
    border-radius: 50%;
    font-size: 16px;
    text-decoration: none;
}
