/* ล้างค่าพื้นฐาน */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
}

/* พื้นหลังตอน Popup เด้งขึ้นมา */
.popup-overlay {
    display: none; /* เริ่มต้นซ่อนไว้ */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* กล่องเนื้อหา Popup */
.popup-box {
    background-color: #fff;
    width: 90%;
    max-width: 520px;
    border-radius: 15px;
    position: relative;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    text-align: center;
    animation: popupScale 0.4s ease-out;
}

/* เอฟเฟกต์ตอนเด้งออกมา */
@keyframes popupScale {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ปุ่มปิด (X) */
.close-x {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.close-x:hover { color: #333; }

/* รูปภาพโปรโมชั่น */
.promo-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

h2 { margin: 10px 0; color: #333; }
p { color: #666; font-size: 16px; margin-bottom: 20px; }

/* ปุ่มกดด้านล่าง */
.action-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}
.action-btn:hover { background-color: #0056b3; }