/* --- ตัวแปรสี Midnight Theme (ฟ้า-ชมพู) --- */
:root {
    --neon-pink: #ff2a85;
    --neon-pink-glow: rgba(255, 42, 133, 0.5);
    --neon-blue: #00d2ff;
    --neon-blue-glow: rgba(0, 210, 255, 0.4);
    --card-bg: rgba(15, 17, 30, 0.65); 
    --border-color: rgba(0, 210, 255, 0.15);
    --text-main: #f0f0f0;
    --text-muted: #9ba1b5;
    --discord-color: #5865F2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
    scroll-behavior: smooth;
}

/* --- พื้นหลังไล่เฉดสีแบบมีอนิเมชั่น --- */
body {
    background: linear-gradient(-45deg, #090a15, #160d2b, #061124, #12091f);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ✨ Ambient Particles (ฝุ่นแสงมินิมอล) ✨ */
#ambient-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0;
    animation: floatUp linear infinite;
}

.particle:nth-child(even) {
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { opacity: 0.3; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-110vh) scale(1.5); opacity: 0; }
}

/* --- Top Navigation Bar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 12, 20, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 1px;
    text-decoration: none;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--neon-pink);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-signin {
    background: var(--discord-color);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
    background-color: #4752C4;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,42,133,0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink-glow);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 5px 5px 20px;
    width: 100%;
    max-width: 500px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.search-box:focus-within {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue-glow);
    transform: scale(1.02);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

.search-box button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 12px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--neon-pink);
    color: #fff;
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink-glow);
}

/* --- Products Section --- */
.content-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 500;
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue-glow);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(60px);
}

.product-card.show {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 15px 35px rgba(255, 42, 133, 0.2);
    transform: translateY(-10px) scale(1.02);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
    transition: color 0.3s;
}

.product-card:hover h3 {
    color: var(--neon-blue);
}

.product-price {
    font-size: 1.3rem;
    color: #ffffff;      /* เปลี่ยนตัวเลขราคาให้เป็นสีขาว */
    margin: 15px 0;
    font-weight: 600;
}

/* เพิ่มส่วนนี้เข้าไปเพื่อคุมสีของคำว่า THB */
.product-price span {
    color: var(--neon-pink);  /* ให้ THB เป็นสีชมพู (ค่าเดิมจากตัวแปร) */
    font-size: 1rem;          /* ปรับขนาดตัวอักษร THB ได้ตามใจชอบ */
    margin-left: 5px;         /* เว้นระยะห่างระหว่างตัวเลขกับ THB นิดหน่อย */
    font-weight: 400;         /* ปรับความหนาให้บางลงกว่าตัวเลขเพื่อให้ดูพรีเมียม */
}

.btn-buy {
    width: 100%;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-buy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-buy:hover::before {
    opacity: 1;
}

.btn-buy:hover {
    box-shadow: 0 0 20px rgba(255, 42, 133, 0.5);
    transform: scale(1.05);
}

/* ลบสไตล์พื้นฐานของลิงก์ที่ครอบการ์ด */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* จัดการส่วนรูปภาพในการ์ด */
.card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden; /* กันรูปล้นออกมาเวลาขยาย */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ทำให้รูปเต็มพื้นที่โดยไม่เสียสัดส่วน */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* เอฟเฟคเมื่อ Hover */
.product-card:hover .card-image img {
    transform: scale(1.1); /* รูปขยายขึ้นนิดหน่อย */
}

.product-card:hover .card-image {
    border-color: var(--neon-blue);
}

/* --- Footer Section --- */
footer {
    background: rgba(5, 7, 15, 0.8); /* สีพื้นหลังมืดโปร่งแสงกลืนกับเว็บ */
    border-top: 1px solid var(--border-color);
    padding: 40px 5% 20px 5%;
    margin-top: 60px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 1px;
}

.footer-brand .logo-text {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-slogan {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* เส้นแบ่งบางๆ */
    padding-top: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.3s;
}

/* เอฟเฟคตอนเอาเมาส์ชี้ไอคอนด้านล่าง */
.footer-social a:hover {
    color: var(--neon-blue);
    transform: translateY(-3px); /* ให้เด้งขึ้นนิดหน่อย */
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

/* ปรับให้รองรับหน้าจอมือถือ (Responsive) */
@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- Dashboard & User Profile --- */
.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-badge {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.btn-logged-in {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 6px 15px 6px 6px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-logged-in:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-pink);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Topup Box --- */
.topup-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto 60px auto;
    text-align: center;
    backdrop-filter: blur(10px);
}

.topup-input {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s;
}

.topup-input:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink-glow);
}

.btn-download {
    width: 100%;
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 12px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 15px var(--neon-blue-glow);
}

/* --- History Table Style --- */
.history-section {
    margin-top: 40px;
    width: 100%;
    overflow-x: auto; /* รองรับมือถือ */
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.history-table th {
    background: rgba(255, 42, 133, 0.1);
    color: var(--neon-pink);
    text-align: left;
    padding: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.history-table td {
    padding: 15px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-success {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* ✨ ปุ่มเลื่อนซ้ายขวาใน Modal แบบ Minimal */
.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 35px;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    z-index: 10000;
}

.modal-prev {
    left: 40px;
}

.modal-next {
    right: 40px;
}

/* เอฟเฟคตอนเอาเมาส์ชี้ปุ่ม */
.modal-prev:hover, .modal-next:hover {
    background-color: rgba(0, 210, 255, 0.4);
    color: #fff;
    box-shadow: 0 0 20px var(--neon-blue-glow);
    transform: translateY(-50%) scale(1.15); /* ให้ปุ่มเด้งขยายขึ้นนิดๆ */
}

/* ทำให้รูปตอนเปลี่ยนมีเอฟเฟค Fade (จางแล้วชัด) */
.modal-content {
    transition: opacity 0.2s ease-in-out;
}

/* =========================================
   ระบบ Page Transition (สลับหน้าแบบเบลอ + หมุน)
   ========================================= */
#knx-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 20, 0.3); /* สีพื้นหลังดำโปร่งแสง */
    backdrop-filter: blur(15px); /* เอฟเฟคเบลอ */
    -webkit-backdrop-filter: blur(15px);
    z-index: 999999; /* ให้อยู่บนสุดของทุกสิ่ง */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    visibility: visible;
}

/* คลาสสำหรับซ่อนตอนโหลดเสร็จ */
#knx-transition-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
}

/* แอนิเมชันตัวหมุนๆ (Spinner) */
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 42, 133, 0.2); /* วงแหวนสีชมพูจางๆ */
    border-top-color: var(--neon-blue); /* หัวหมุนสีฟ้าเรืองแสง */
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
    box-shadow: 0 0 20px var(--neon-blue-glow);
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* =========================================
   📱 ระบบ Responsive (รองรับมือถือ & แท็บเล็ต 100%)
   ========================================= */

/* ซ่อนปุ่ม 3 ขีดในจอคอมพิวเตอร์ปกติ */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.mobile-menu-btn:hover {
    color: var(--neon-pink);
}

@media (max-width: 850px) {
    /* 1. จัดการ Navbar และทำเมนูเด้งจากด้านข้าง */
    nav {
        padding: 15px 20px;
    }
    .mobile-menu-btn {
        display: block; /* โชว์ปุ่ม 3 ขีดในมือถือ */
    }
    .nav-links {
        position: absolute;
        top: 65px;
        left: -100%; /* ซ่อนเมนูไว้ทางซ้าย */
        width: 100%;
        background: rgba(10, 12, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 15px 30px rgba(0,0,0,0.8);
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active {
        left: 0; /* เลื่อนเมนูออกมาเมื่อกดปุ่ม */
    }
    
    /* ประหยัดพื้นที่ Navbar ในมือถือ */
    .wallet-badge { display: none; } /* ซ่อนแถบยอดเงิน */
    #user-name { display: none; } /* ซ่อนชื่อไอดีโชว์แค่รูป */
    .btn-signin { padding: 8px 12px; font-size: 13px; }

    /* 2. จัดการระยะห่างและขนาดอักษรในหน้าเว็บ */
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; }
    .content-section { padding: 80px 20px; }
    .page-header { padding: 120px 20px 30px 20px; }
    .page-header h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }

    /* 3. จัดการ Grid สินค้า (ให้แสดง 1 สินค้าต่อ 1 แถว) */
    .grid-container {
        grid-template-columns: 1fr;
    }

    /* 4. จัดการหน้า Detail (รูปกับข้อมูลเรียงบน-ล่าง) */
    .detail-container {
        padding: 120px 20px 30px 20px !important;
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    .preview-main { min-height: 220px; }
    .gallery-thumbnails img { width: 80px; height: 50px; }
    #detail-price-box { font-size: 2rem !important; text-align: center; }
    .info-title { font-size: 2rem; }

    /* 5. ปรับส่วนย่อยอื่นๆ */
    .contact-container { grid-template-columns: 1fr; }
    .topup-section { padding: 25px; margin-bottom: 40px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    
    /* จัดตารางประวัติการเติมเงินให้เลื่อนซ้ายขวาได้ในกล่องตัวเอง */
    .history-section { overflow-x: auto; border-radius: 12px; }
    .history-table { min-width: 600px; } 
}

/* --- ✨ ระบบ Profile Dropdown ✨ --- */
.user-profile-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    /* ✨ ปรับจาก 100% เป็น 90% เพื่อให้เมนูขยับขึ้นไปเกยกับปุ่มเล็กน้อย */
    top: 90%; 
    /* ✨ ลด margin-top ลงเพื่อปิดช่องว่างให้สนิท */
    margin-top: 5px; 
    
    background: rgba(15, 17, 30, 0.98);
    min-width: 180px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    z-index: 1000;
    overflow: hidden;
    padding: 8px;
    animation: dropdownFade 0.3s ease;
}

/* ✨ เพิ่มส่วนนี้เข้าไป: สร้างพื้นที่ล่องหนเชื่อมปุ่มกับเมนู (The Bridge) */
.profile-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px; /* พื้นที่ล่องหนช่วยให้ลากเมาส์ผ่านได้ไม่หลุด */
    display: block;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* โชว์เมนูเมื่อเอาเมาส์ไปชี้ */
.profile-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
    /* ✨ บังคับให้พื้นที่คลิกเต็มความกว้างกล่อง */
    width: 100%; 
}

.dropdown-content a i {
    width: 16px;
    color: var(--neon-blue);
}

.dropdown-content a:hover {
    background: rgba(0, 210, 255, 0.1);
    color: var(--neon-blue);
    padding-left: 20px;
}

/* เส้นคั่นเมนู */
.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* สไตล์พิเศษปุ่ม Logout */
.logout-link:hover {
    background: rgba(255, 42, 133, 0.1) !important;
    color: var(--neon-pink) !important;
}

.logout-link:hover i {
    color: var(--neon-pink) !important;
}

/* =========================================
   ✨ ระบบแสดงส่วนลด (V2 - Premium & Exciting) ✨
   ========================================= */

/* ป้าย Badge ลดราคามุมขวาบน (Cyberpunk Style) */
.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 42, 133, 0.2);
    border: 1px solid var(--neon-pink);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255, 42, 133, 0.5), inset 0 0 10px rgba(255, 42, 133, 0.3);
    z-index: 5;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: electricShake 3s infinite; /* แอนิเมชันสั่นแบบมีพลังงาน */
    text-transform: uppercase;
}

/* แอนิเมชันสั่นกระตุกเหมือนสายฟ้า (ดึงดูดสายตามาก) */
@keyframes electricShake {
    0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 15px rgba(255, 42, 133, 0.5); }
    5% { transform: scale(1.15) rotate(-5deg); box-shadow: 0 0 30px var(--neon-pink); border-color: #fff; }
    10% { transform: scale(1.1) rotate(5deg); }
    15% { transform: scale(1.15) rotate(-5deg); border-color: var(--neon-pink); }
    20% { transform: scale(1) rotate(0deg); box-shadow: 0 0 15px rgba(255, 42, 133, 0.5); }
}

/* การ์ดที่มีโปรโมชั่น จะเรืองแสงกรอบชมพูอ่อนๆ ล่อตาล่อใจ */
.product-card.sale-active {
    border-color: rgba(255, 42, 133, 0.4);
    box-shadow: 0 0 25px rgba(255, 42, 133, 0.05);
}

.product-card.sale-active:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 15px 45px rgba(255, 42, 133, 0.3);
}

/* ราคาเดิม (ขีดฆ่า) ปรับให้ดูเนียนตาขึ้น */
.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 10px;
    font-weight: 400;
    opacity: 0.6;
}

/* ราคาใหม่ (สีขาว สว่างเตะตา) */
.price-sale {
    color: #ffffff; /* ✨ เปลี่ยนเป็นสีขาวตามรีเควส */
    font-size: 1.6rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 0 20px var(--neon-pink-glow); /* แสงเงาชมพูด้านหลัง */
}

/* ป้ายลดราคาในหน้า Detail (เสริมให้เข้ากัน) */
.detail-sale-badge {
    display: inline-block;
    background: var(--neon-pink);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 15px;
    vertical-align: middle;
    box-shadow: 0 0 15px var(--neon-pink-glow);
    animation: pulseBadge 2s infinite ease-in-out;
}

/* =========================================
   ✨ แก้บัคสีราคา: บังคับตัวเลขให้เป็นสีขาว (ป้องกัน CSS ทับกัน) ✨
   ========================================= */

/* บังคับราคาลดให้เป็นสีขาวสว่าง */
.product-price span.price-sale {
    color: #ffffff !important; 
}

/* บังคับราคาเดิม (ขีดฆ่า) ให้เป็นสีเทา */
.product-price span.price-original {
    color: var(--text-muted) !important;
}

