@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;900&display=swap');

:root {
    --bg-color: #e8eaed; 
    --primary-color: #0984e3; 
    --primary-hover: #076ebc;
    --text-dark: #2d3436;
    --header-bg: #1c1e22; 
    --gold-main: #f1c40f; 
    --gold-dark: #d4af37; 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Kanit', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-dark); overflow-x: hidden; }

/* =========================================
   🌟 Header & Navbar (Sticky)
========================================= */
.main-header { 
    background-color: var(--header-bg); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    transition: box-shadow 0.3s ease; 
}
.top-bar { display: flex; justify-content: space-between; align-items: center; max-width: 1600px; margin: 0 auto; padding: 15px 20px; border-bottom: 1px solid #333; }
.logo { font-size: 1.8rem; font-weight: 700; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--primary-color); }

.search-box { display: flex; background: #fff; border-radius: 4px; overflow: hidden; width: 450px; }
.search-box input { flex: 1; padding: 10px 15px; border: none; outline: none; font-family: 'Kanit'; }
.search-box button { background: var(--primary-color); color: white; border: none; padding: 0 15px; cursor: pointer; transition: 0.2s; }
.search-box button:hover { background: var(--primary-hover); }

/* --- User Actions & Profile Dropdown --- */
.user-actions { display: flex; align-items: center; gap: 20px; }
.keypark-gift { color: #fff; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; transition: 0.2s; }
.keypark-gift i { font-size: 1.1rem; color: var(--primary-color); }
.keypark-gift:hover { color: var(--primary-hover); transform: translateY(-2px); }

.btn-login { color: #fff; text-decoration: none; background: var(--primary-color); padding: 8px 18px; border-radius: 4px; font-weight: 500; transition: 0.2s; cursor: pointer; border: none; font-family: 'Kanit'; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.btn-login i { font-size: 1.1rem; }
.btn-login:hover { background: var(--primary-hover); }

.user-dropdown-wrap { position: relative; display: inline-block; }
.user-dropdown-wrap::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; background: transparent; }

.user-profile-btn { background: #2b323b; color: #fff; border: none; padding: 8px 15px; border-radius: 4px; font-family: 'Kanit'; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 500; transition: 0.2s; }
.user-profile-btn i.fa-user-circle { color: var(--primary-color); font-size: 1.2rem; }
.user-profile-btn:hover { background: #3a434d; }

.user-dropdown-menu { position: absolute; top: calc(100% + 10px); right: 0; background: #23262b; min-width: 200px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.6); display: none; flex-direction: column; overflow: hidden; z-index: 2000; border: 1px solid #333; animation: fadeInDropdown 0.2s ease; }
.user-dropdown-menu::before { content: ''; position: absolute; top: -6px; right: 20px; width: 12px; height: 12px; background: #23262b; border-top: 1px solid #333; border-left: 1px solid #333; transform: rotate(45deg); }
.user-dropdown-wrap:hover .user-dropdown-menu { display: flex; }
@keyframes fadeInDropdown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.user-dropdown-menu a { color: #ccc; text-decoration: none; padding: 12px 20px; font-size: 0.95rem; transition: 0.2s; border-bottom: 1px solid #2b2e33; display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.user-dropdown-menu a:last-child { border-bottom: none; }
.user-dropdown-menu a i { width: 20px; text-align: center; color: #888; transition: 0.2s; }
.user-dropdown-menu a:hover { background: #1c1e22; color: #fff; padding-left: 25px; border-left: 3px solid var(--primary-color); }
.user-dropdown-menu a:hover i { color: var(--primary-color); }
.user-dropdown-menu a.logout-link:hover i { color: #ff4757; }

.btn-cart { color: #fff; text-decoration: none; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }

/* --- Navbar Menu --- */
.nav-bar { max-width: 1600px; margin: 0 auto; padding: 10px 20px; display: flex; gap: 20px; align-items: center; }
.nav-bar a { color: #aaa; text-decoration: none; font-weight: 500; font-size: 0.95rem; text-transform: uppercase; transition: 0.2s; }
.nav-bar a:hover, .nav-bar a.active { color: #fff; }
.btn-menu-trigger { background: var(--primary-color); color: #fff !important; padding: 8px 20px; border-radius: 4px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: 0.2s; }
.btn-menu-trigger:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* เมนูกล่องขาวมินิมอล */
.nav-bundle-tag {
    background-color: #fff !important;
    color: #000 !important;
    font-family: 'Kanit', sans-serif;
    font-weight: 600 !important;
    font-size: 0.9rem !important; 
    padding: 4px 10px !important; 
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: 0.2s ease;
}
.nav-bundle-tag:hover { background-color: var(--primary-color) !important; color: #fff !important; }

/* ดันเมนูไปขวา */
.nav-explore { margin-left: auto; color: #aaa !important; font-weight: 500; font-size: 0.95rem; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.nav-explore:hover { color: #fff !important; }
.nav-help-center { margin-left: 0; color: #aaa !important; font-weight: 500; font-size: 0.95rem; transition: 0.2s; }
.nav-help-center:hover { color: #fff !important; }

/* =========================================
   🌟 Layout Container & General
========================================= */
.container { max-width: 1600px; margin: 30px auto; padding: 0 20px; }
.section-title { margin-bottom: 20px; font-size: 1.5rem; font-weight: 700; color: #2d3436; display: flex; justify-content: space-between; align-items: center; border-left: 5px solid var(--primary-color); padding-left: 15px; }

/* =========================================
   🌟 Banner Slider
========================================= */
.banner-slider { position: relative; width: 100%; margin: 0 auto 30px; height: 500px; overflow: hidden; display: flex; justify-content: center; align-items: center; background: var(--header-bg); }
.slide { position: absolute; width: 70vw; max-width: 1400px; height: 95%; border-radius: 12px; overflow: hidden; opacity: 0; pointer-events: none; transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.slide.active { left: 50%; transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; pointer-events: auto; }
.slide.prev { left: calc(50% - min(35vw, 700px) - 25px); transform: translateX(-100%) scale(0.85); transform-origin: right center; opacity: 0.4; z-index: 1; }
.slide.next { left: calc(50% + min(35vw, 700px) + 25px); transform: translateX(0) scale(0.85); transform-origin: left center; opacity: 0.4; z-index: 1; }

.slide-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px 40px; display: flex; justify-content: space-between; align-items: flex-end; background: linear-gradient(transparent, rgba(0,0,0,0.8)); z-index: 2; }
.slide-platform { background: rgba(0,0,0,0.7); color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 0.9rem; font-weight: 600; backdrop-filter: blur(5px); }
.slide-buy-box { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.7); padding: 8px 10px 8px 20px; border-radius: 50px; backdrop-filter: blur(5px); }
.slide-price { color: #fff; font-size: 1.5rem; font-weight: 700; }
.btn-slide-buy { background: var(--primary-color); color: #fff; border: none; padding: 10px 30px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: 0.2s; text-decoration: none; }
.btn-slide-buy:hover { background: var(--primary-hover); transform: scale(1.05); }

.slide-center-box { position: absolute; bottom: 55px; left: 50%; transform: translateX(-50%); z-index: 2; text-align: center; }
.btn-view-all { background: var(--gold-main); color: #2d3436; padding: 10px 40px; font-size: 1.1rem; font-weight: 700; border-radius: 50px; text-decoration: none; display: inline-block; transition: 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.5); text-transform: uppercase; }
.btn-view-all:hover { transform: scale(1.05); background: var(--gold-dark); }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); color: var(--primary-color); width: 50px; height: 50px; border-radius: 50%; border: none; font-size: 1.3rem; cursor: pointer; z-index: 5; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.3s; }
.slider-btn:hover { transform: translateY(-50%) scale(1.1); color: var(--primary-hover); background: #fff; }
.slider-btn.prev { left: 3vw; } 
.slider-btn.next { right: 3vw; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active, .dot:hover { background: #fff; transform: scale(1.3); }

/* =========================================
   🌟 โซน Flash Sale & Event
========================================= */
.promo-section { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; max-width: 1600px; margin: 0 auto 40px; padding: 0 20px; }
.fs-container { background: linear-gradient(145deg, #1f1b0c, #0a0800); border: 1px solid rgba(241, 196, 15, 0.3); border-radius: 12px; padding: 25px; box-shadow: 0 10px 30px rgba(241, 196, 15, 0.08), inset 0 0 20px rgba(241, 196, 15, 0.05); position: relative; overflow: hidden; }
.fs-container::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(241, 196, 15, 0.05) 0%, transparent 60%); pointer-events: none; }
.fs-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(241, 196, 15, 0.2); padding-bottom: 15px; margin-bottom: 20px; position: relative; z-index: 1; }
.fs-title { color: #fff; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 10px; text-shadow: 0 0 10px rgba(241, 196, 15, 0.3); }
.fs-title i { color: var(--gold-main); font-size: 1.8rem; filter: drop-shadow(0 0 8px rgba(241, 196, 15, 0.8)); }
.fs-timer-wrapper { display: flex; align-items: center; gap: 15px; }
.fs-timer { display: flex; align-items: center; gap: 6px; }
.fs-time-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fs-time-box { background: linear-gradient(180deg, rgba(241, 196, 15, 0.2), rgba(241, 196, 15, 0.05)); border: 1px solid rgba(241, 196, 15, 0.5); color: var(--gold-main); padding: 8px 10px; border-radius: 6px; font-weight: 700; font-family: monospace; font-size: 1.4rem; min-width: 45px; text-align: center; box-shadow: 0 0 10px rgba(241, 196, 15, 0.2); line-height: 1; }
.fs-time-label { font-size: 0.7rem; color: rgba(241, 196, 15, 0.8); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.fs-colon { color: var(--gold-main); font-size: 1.5rem; font-weight: bold; transform: translateY(-10px); animation: blink 1s infinite; text-shadow: 0 0 8px rgba(241, 196, 15, 0.6); }

.fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 15px; position: relative; z-index: 1; }
.fs-card { background-color: #151515; border: 1px solid rgba(241, 196, 15, 0.4); border-radius: 8px; padding: 12px; text-decoration: none; color: #fff; transition: all 0.3s ease; position: relative; display: flex; flex-direction: column; }
.fs-card:hover { transform: translateY(-5px); border-color: var(--gold-main); box-shadow: 0 8px 20px rgba(241, 196, 15, 0.3); }
.fs-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.fs-discount-tag { position: absolute; top: 18px; left: 18px; background: linear-gradient(45deg, #ff4757, #ff6b81); color: white; padding: 4px 8px; border-radius: 4px; font-weight: 800; font-size: 0.85rem; }
.fs-card-platform { display: flex; justify-content: space-between; align-items: center; color: #aaa; font-size: 0.8rem; margin-bottom: 5px; }
.fs-type-tag { background: #fff; color: #000; padding: 2px 6px; border-radius: 12px; font-weight: 700; font-size: 0.65rem; }
.fs-card h4 { font-size: 1.05rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 10px; color: #e0e0e0; }
.fs-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.fs-card-price-box { display: flex; flex-direction: column; }
.fs-card .old-price { color: #888; text-decoration: line-through; font-size: 0.85rem; line-height: 1; }
.fs-card .price { color: var(--gold-main); font-size: 1.3rem; font-weight: 700; text-shadow: 0 0 5px rgba(241, 196, 15, 0.3); line-height: 1.2;}
.btn-fs-cart { background: linear-gradient(135deg, var(--gold-dark), var(--gold-main)); color: #000; border: none; padding: 8px 12px; border-radius: 6px; font-size: 1rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(241, 196, 15, 0.3); }
.btn-fs-cart:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(241, 196, 15, 0.5); }

/* สถานะหมดเวลา */
.fs-expired-badge { background: #ff4757; color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.5px; }
.fs-card.expired { filter: grayscale(100%); opacity: 0.5; pointer-events: none; border-color: #333; }
.ue-live-badge { background: #00e676; color: #000; padding: 6px 15px; border-radius: 6px; font-size: 0.95rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 0 15px rgba(0, 230, 118, 0.4); animation: pulseLive 2s infinite; }
@keyframes pulseLive { 0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); } }

.ue-container { background: linear-gradient(145deg, #16181b, #0f1013); border: 1px solid rgba(9, 132, 227, 0.2); border-radius: 12px; padding: 25px; box-shadow: 0 10px 30px rgba(9, 132, 227, 0.1), inset 0 0 20px rgba(9, 132, 227, 0.05); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.ue-container::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(9,132,227,0.1) 0%, transparent 60%); pointer-events: none; }
.ue-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 15px; margin-bottom: 20px; position: relative; z-index: 1; }
.ue-title { color: #fff; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 8px; text-shadow: 0 0 10px rgba(9, 132, 227, 0.5); }
.ue-title i { color: var(--primary-color); font-size: 1.4rem; filter: drop-shadow(0 0 8px rgba(9, 132, 227, 0.8)); }
.ue-timer-wrapper { background: rgba(9, 132, 227, 0.1); border: 1px solid rgba(9, 132, 227, 0.3); border-radius: 8px; padding: 12px; display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 15px; position: relative; z-index: 1; box-shadow: 0 0 10px rgba(9, 132, 227, 0.15); }
.ue-timer-wrapper span { color: var(--primary-color); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }
.ue-timer { display: flex; gap: 5px; color: #fff; align-items: center; font-size: 0.95rem; }
.ue-time-box { color: #fff; font-weight: 700; font-family: monospace; font-size: 1.2rem; }

.ue-card { border: 1px solid rgba(9, 132, 227, 0.2); border-radius: 8px; overflow: hidden; position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; background: #1c1e22; transition: 0.3s; text-decoration: none; }
.ue-card:hover { border-color: var(--primary-color); box-shadow: 0 8px 20px rgba(9, 132, 227, 0.25); transform: translateY(-3px); }
.ue-card img { width: 100%; height: 150px; object-fit: cover; border-bottom: 1px solid #2b2e33; }
.ue-info { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.ue-badge { display: inline-block; align-self: flex-start; background: linear-gradient(45deg, var(--primary-color), #0abde3); color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; margin-bottom: 10px; box-shadow: 0 4px 10px rgba(9, 132, 227, 0.3); }
.ue-info h4 { font-size: 1.1rem; color: #fff; margin-bottom: 8px; font-weight: 600; }
.ue-info p { font-size: 0.85rem; color: #aaa; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }

/* =========================================
   🌟 โซนคูปองส่วนลด
========================================= */
.coupon-section { max-width: 1600px; margin: 0 auto 40px; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.coupon-card { background: linear-gradient(145deg, #1c1e22, #151619); border-radius: 12px; display: flex; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.15); border: 1px solid #333; transition: 0.3s ease; position: relative; }
.coupon-card:hover { border-color: var(--primary-color); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(9, 132, 227, 0.15); }
.coupon-img-box { width: 40%; position: relative; }
.coupon-img-box img { width: 100%; height: 100%; object-fit: cover; }
.coupon-img-overlay { position: absolute; inset: 0; background: linear-gradient(to right, transparent, #1c1e22 95%); }
.coupon-content { width: 60%; padding: 20px; display: flex; flex-direction: column; justify-content: center; border-left: 2px dashed #444; position: relative; }
.coupon-content::before, .coupon-content::after { content: ''; position: absolute; left: -11px; width: 20px; height: 20px; background: var(--bg-color); border-radius: 50%; border: 1px solid #333; }
.coupon-content::before { top: -11px; border-bottom: none; border-left: none; transform: rotate(45deg); }
.coupon-content::after { bottom: -11px; border-top: none; border-left: none; transform: rotate(-45deg); }
.coupon-discount { color: var(--gold-main); font-size: 1.6rem; font-weight: 800; line-height: 1; margin-bottom: 5px; text-shadow: 0 0 10px rgba(241, 196, 15, 0.3); }
.coupon-title { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.coupon-code-box { background: #000; border: 1px solid #444; padding: 8px 12px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: relative; overflow: hidden; }
.coupon-code-text { color: var(--primary-color); font-family: monospace; font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; }
.coupon-copy-btn { background: none; border: none; color: #888; cursor: pointer; transition: 0.2s; font-size: 1.1rem; display: flex; align-items: center; gap: 5px; }
.coupon-copy-btn:hover { color: #fff; }
.coupon-copy-btn.copied { color: #00e676; }
.coupon-expiry { color: #777; font-size: 0.8rem; display: flex; align-items: center; gap: 5px; }
.coupon-expiry i { color: #ff4757; }

/* =========================================
   🌟 การ์ดสินค้าหลัก (เอา Video ข้างในออก ให้ภาพปกอยู่นิ่งๆ)
========================================= */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-card { 
    background-color: #1c1e22; border-radius: 6px; overflow: hidden; 
    position: relative; transition: 0.2s; color: #fff; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 15px rgba(0,0,0,0.2); }

.product-image-container { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.product-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.3s ease; }
/* เมื่อ hover ให้รูปสว่างขึ้นนิดหน่อย */
.product-card:hover .product-image { filter: brightness(1.1); } 

.product-platform { background-color: #2b323b; padding: 5px 15px; text-align: center; font-size: 0.75rem; font-weight: 600; color: #e0e0e0; display: flex; justify-content: center; align-items: center; gap: 6px; position: relative; }
.product-platform i { font-size: 1rem; }
.product-type-badge { position: absolute; right: 10px; background-color: #fff; color: #000; padding: 2px 8px; border-radius: 12px; font-size: 0.65rem; font-weight: 700; }
.product-info { padding: 15px; background-color: #1c1e22; }
.price-container { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.discount-badge { background-color: #cc0000; color: white; padding: 3px 6px; font-weight: 700; border-radius: 3px; font-size: 1rem; }
.old-price { text-decoration: line-through; color: #888; font-size: 0.9rem; }
.current-price { font-size: 1.3rem; font-weight: 700; color: #fff; margin-left: auto; }
.card-actions { display: flex; gap: 2px; }
.btn-add-cart { flex: 1; background-color: #454a51; color: #fff; border: none; padding: 10px; border-radius: 4px 0 0 4px; cursor: pointer; font-weight: 600; font-family: 'Kanit'; transition: 0.2s; font-size: 0.95rem; }
.btn-wishlist { background-color: #454a51; color: #fff; border: none; width: 45px; border-radius: 0 4px 4px 0; cursor: pointer; transition: 0.2s; font-size: 1.1rem; }
.btn-add-cart:hover, .btn-wishlist:hover { background-color: var(--primary-color); }


/* =========================================
   🌟 ระบบ Hover Video Preview (Keypark Style / อิง Ref ใหม่)
========================================= */
.game-hover-popup {
    position: absolute;
    width: 340px;
    background-color: #16181b; /* สีเข้มเข้ากับธีมเว็บ */
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid #333;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
    pointer-events: none;
    font-family: 'Kanit', sans-serif;
    overflow: hidden;
}
.game-hover-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ส่วนวิดีโอด้านบนสุด ไร้ขอบ */
.hp-video-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}
.hp-video-box video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
/* เลเยอร์ไล่สีดำทับวิดีโอด้านล่างนิดๆ ให้เนียนเข้ากับเนื้อหา */
.hp-video-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(to bottom, transparent, #16181b);
}

/* ส่วนเนื้อหาด้านล่าง */
.hp-content { padding: 15px 20px 20px; }

/* หัวข้อและไอคอนแพลตฟอร์ม */
.hp-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 5px; }
.hp-title { color: #fff; font-size: 1.2rem; font-weight: 600; line-height: 1.3; margin: 0; }
.hp-platforms { display: flex; gap: 8px; color: #888; font-size: 1.1rem; padding-top: 3px; }
.hp-platforms i { transition: 0.2s; }
.hp-platforms i:hover { color: #fff; }

.hp-date { color: #777; font-size: 0.85rem; margin-bottom: 15px; }

/* กล่องยอดขาย และ รีวิว */
.hp-stats-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 15px; }

/* ยอดขาย */
.hp-sales { display: flex; align-items: center; gap: 8px; color: #aaa; font-size: 0.9rem; }
.hp-sales i { color: var(--gold-main); font-size: 1rem; }
.hp-sales-count { color: #fff; font-weight: 600; }

/* รีวิวสินค้า & อวตารซ้อนกัน */
.hp-reviews { display: flex; align-items: center; gap: 12px; background: #23262b; padding: 10px 12px; border-radius: 8px; border: 1px solid #2b2e33; }
.hp-avatars { display: flex; align-items: center; }
.hp-avatar { 
    width: 28px; height: 28px; border-radius: 50%; 
    border: 2px solid #23262b; object-fit: cover; 
    margin-left: -10px; /* ทำให้รูปซ้อนกัน */
}
.hp-avatar:first-child { margin-left: 0; }
.hp-review-text { display: flex; flex-direction: column; line-height: 1.2; }
.hp-review-status { color: #00e676; font-weight: 600; font-size: 0.9rem; } /* สีเขียวสดใส */
.hp-review-count { color: #888; font-size: 0.75rem; }

/* แท็กแนวเกม */
.hp-tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-tag { background-color: #2b323b; color: #ccc; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }

/* =========================================
   🌟 การ์ดสินค้ามาแรง (ทรง Portrait)
========================================= */
.trend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; margin-bottom: 40px; }
.trend-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; text-decoration: none; display: block; box-shadow: 0 10px 25px rgba(0,0,0,0.15); transition: 0.3s; }
.trend-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.trend-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.trend-card:hover .trend-img { transform: scale(1.08); }
.trend-top-badge { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.trend-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%); padding: 35px 20px 20px; display: flex; flex-direction: column; justify-content: flex-end; height: 50%; }
.trend-title { color: #fff; font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.trend-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.trend-tag-pill { background: rgba(255,255,255,0.15); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.1); color: #e0e0e0; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.5px; }

/* =========================================
   🌟 โซนรีวิว (Trustpilot Style)
========================================= */
.reviews-section { background-color: #1a1c20; padding: 60px 20px; border-top: 1px solid #2b2e33; border-bottom: 1px solid #2b2e33; }
.reviews-header { text-align: center; margin-bottom: 30px; }
.reviews-header h2 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; }
.reviews-header p { color: #aaa; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.tp-star { color: #00b67a; font-size: 1.2rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1600px; margin: 0 auto; }
.review-card { background: #23262b; padding: 25px; border-radius: 8px; border: 1px solid #333; transition: 0.3s; }
.review-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); border-color: #00b67a; }
.review-stars { color: #00b67a; font-size: 1rem; margin-bottom: 12px; display: flex; gap: 2px; }
.review-title { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.review-text { color: #aaa; font-size: 0.9rem; line-height: 1.6; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-author { display: flex; justify-content: space-between; color: #777; font-size: 0.85rem; font-weight: 600; border-top: 1px solid #333; padding-top: 15px; }

/* =========================================
   🌟 โซนทำไมต้องซื้อกับเรา
========================================= */
.features-banner { background: linear-gradient(135deg, #091929, #040b12); padding: 50px 20px; color: #fff; border-top: 1px solid rgba(9, 132, 227, 0.2); border-bottom: 1px solid rgba(9, 132, 227, 0.2); }
.features-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 40px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.features-inner { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-box { display: flex; align-items: center; gap: 20px; }
.feature-icon { font-size: 3.5rem; color: rgba(9, 132, 227, 0.9); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4)); transition: 0.3s; }
.feature-box:hover .feature-icon { transform: scale(1.1) rotate(5deg); color: var(--gold-main); }
.feature-text h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.feature-text p { font-size: 0.9rem; color: #aaa; line-height: 1.5; }

/* =========================================
   🌟 Footer & โลโก้ธนาคาร
========================================= */
.main-footer { background-color: #0f1013; padding: 70px 20px 30px; color: #ccc; font-family: 'Kanit'; }
.footer-inner { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; border-bottom: 1px solid #222; padding-bottom: 40px; margin-bottom: 30px; }
.footer-col h3 { color: #fff; font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--primary-color); border-radius: 2px; }
.footer-logo { font-size: 1.8rem; font-weight: 700; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-logo span { color: var(--primary-color); }
.footer-vision { font-size: 0.95rem; line-height: 1.7; color: #999; margin-bottom: 20px; }
.footer-stats { display: flex; gap: 15px; font-weight: 600; font-size: 0.9rem; color: #fff; }
.footer-stats span { color: var(--primary-color); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #999; text-decoration: none; transition: 0.2s; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--primary-color); transform: translateX(5px); }
.footer-links a i { font-size: 0.7rem; }
.payment-methods { display: flex; flex-direction: column; gap: 15px; }
.pay-method { display: flex; align-items: center; gap: 15px; background: #1c1e22; padding: 10px 15px; border-radius: 8px; border: 1px solid #2b2e33; }
.pay-method i { font-size: 1.8rem; }
.pay-method i.fa-qrcode { color: #00a8ff; } 
.pay-method i.fa-wallet { color: #ff9f43; } 
.pay-method i.fa-university { color: #10ac84; } 
.pay-details h4 { color: #fff; font-size: 0.95rem; font-weight: 600; }
.pay-details p { color: #777; font-size: 0.8rem; }

/* โลโก้ธนาคารขอบมนสีขาว */
.bank-logos-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; align-items: center; }
.bank-logo {
    width: 65px; height: 42px; background-color: #ffffff; border-radius: 8px; 
    object-fit: contain; padding: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); 
    border: 1px solid transparent; transition: 0.3s ease;
}
.bank-logo:hover { transform: translateY(-3px); box-shadow: 0 5px 12px rgba(9, 132, 227, 0.4); border-color: var(--primary-color); }

.social-links { display: flex; gap: 15px; margin-top: 10px; }
.social-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.3rem; color: #fff; text-decoration: none; transition: 0.3s; background: #23262b; }
.social-btn.fb:hover { background: #1877f2; transform: translateY(-5px); }
.social-btn.line:hover { background: #00c300; transform: translateY(-5px); }
.social-btn.yt:hover { background: #ff0000; transform: translateY(-5px); }
.footer-bottom { max-width: 1600px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #666; }
.footer-bottom-links a { color: #666; text-decoration: none; margin-left: 15px; transition: 0.2s; }
.footer-bottom-links a:hover { color: #fff; }

/* =========================================
   🌟 ระบบ Popup Login/Register
========================================= */
.auth-modal { visibility: hidden; opacity: 0; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(5px); transition: all 0.3s ease; }
.auth-modal.show { visibility: visible; opacity: 1; }
.auth-modal-content { background: #1c1e22; width: 100%; max-width: 420px; border-radius: 12px; position: relative; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.4); transform: scale(0.9) translateY(20px); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.auth-modal.show .auth-modal-content { transform: scale(1) translateY(0); opacity: 1; }
.close-modal { position: absolute; top: 15px; right: 20px; color: #888; font-size: 1.5rem; cursor: pointer; transition: 0.2s; z-index: 10; }
.close-modal:hover { color: #fff; transform: scale(1.1); }
.auth-tabs { display: flex; border-bottom: 1px solid #333; }
.auth-tab { flex: 1; background: #23262b; color: #888; border: none; padding: 18px; font-size: 1.1rem; cursor: pointer; font-family: 'Kanit'; font-weight: 500; transition: 0.3s; }
.auth-tab.active { background: #1c1e22; color: #fff; border-bottom: 3px solid var(--primary-color); }
.auth-form-container { display: none; padding: 30px 40px; height: 520px; overflow-y: auto; animation: fadeInForm 0.3s ease; }
.auth-form-container.active { display: block; }
@keyframes fadeInForm { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.auth-form-container::-webkit-scrollbar { width: 5px; }
.auth-form-container::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
.auth-form-group { margin-bottom: 18px; text-align: left; }
.auth-form-group label { display: block; margin-bottom: 8px; color: #ccc; font-size: 0.9rem; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i { position: absolute; left: 15px; color: #888; font-size: 1.1rem; transition: 0.2s; }
.auth-form-group input { width: 100%; padding: 12px 15px 12px 45px; border: 1px solid #333; background: #2b2e33; color: #fff; border-radius: 6px; font-family: 'Kanit'; outline: none; transition: 0.2s; }
.auth-form-group input:focus { border-color: var(--primary-color); background: #33373d; box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1); }
.input-wrapper:focus-within i { color: var(--primary-color); }
.auth-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.85rem; }
.auth-options label { display: flex; align-items: center; gap: 8px; color: #aaa; cursor: pointer; }
.auth-options a { color: var(--primary-color); text-decoration: none; font-weight: 500; transition: 0.2s; }
.auth-options a:hover { text-decoration: underline; color: #fff; }
.btn-auth-submit { width: 100%; background: var(--primary-color); color: #fff; border: none; padding: 14px; border-radius: 6px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: 0.2s; font-family: 'Kanit'; }
.btn-auth-submit:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(9, 132, 227, 0.3); }
.auth-divider { text-align: center; margin: 20px 0; color: #666; font-size: 0.85rem; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: #333; }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.social-login-box { display: flex; gap: 10px; }
.btn-social { flex: 1; padding: 12px; border-radius: 6px; border: none; font-family: 'Kanit'; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; transition: 0.2s; font-size: 0.95rem; }
.btn-social.facebook { background: #1877f2; }
.btn-social.facebook:hover { background: #155bb5; }
.btn-social.google { background: #ea4335; }
.btn-social.google:hover { background: #c53023; }

/* =========================================
   🌟 ระบบ Mega Menu
========================================= */
.mega-menu-overlay { position: fixed; top: 130px; left: 0; width: 100%; height: calc(100vh - 130px); background: rgba(0,0,0,0.5); z-index: 1400; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.mega-menu-overlay.show { opacity: 1; visibility: visible; }
.mega-menu-container { position: absolute; top: 100%; left: 0; width: 100%; z-index: 1500; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.mega-menu-container.show { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-inner { max-width: 1600px; margin: 0 auto; display: flex; min-height: 450px; max-height: 600px; background: #ffffff; box-shadow: 0 15px 30px rgba(0,0,0,0.15); border-top: 3px solid var(--primary-color); border-radius: 0 0 8px 8px; overflow: hidden; }
.mega-col-1 { width: 260px; background: #f8f9fa; border-right: 1px solid #eaeaea; padding: 0; overflow-y: auto; }
.mega-l1-btn { width: 100%; text-align: left; background: none; border: none; padding: 15px 25px; font-size: 1.05rem; font-weight: 600; color: #2d3436; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-family: 'Kanit'; transition: 0.2s; border-bottom: 1px solid #eaeaea; }
.mega-l1-btn:last-child { border-bottom: none; }
.mega-l1-btn i.icon { width: 25px; color: #888; font-size: 1.1rem; }
.mega-l1-btn:hover, .mega-l1-btn.active { background: #fff; color: var(--primary-color); box-shadow: -3px 0 0 var(--primary-color) inset; }
.mega-l1-btn:hover i.icon, .mega-l1-btn.active i.icon { color: var(--primary-color); }
.mega-col-2 { width: 240px; background: #ffffff; border-right: 1px solid #eaeaea; padding: 15px 0; overflow-y: auto; }
.mega-l2-btn { width: 100%; text-align: left; background: none; border: none; padding: 12px 25px; font-size: 1rem; font-weight: 500; color: #555; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-family: 'Kanit'; transition: 0.2s; border-bottom: 1px solid #f1f2f6; }
.mega-l2-btn:last-child { border-bottom: none; }
.mega-l2-btn:hover, .mega-l2-btn.active { color: var(--primary-color); font-weight: 600; background: #fdfdfd; }
.mega-l2-btn i.fa-chevron-right { font-size: 0.7rem; color: #ccc; }
.mega-col-3 { flex: 1; background: #ffffff; padding: 25px 40px; overflow-y: auto; }
.mega-col-3 h3 { font-size: 1.4rem; color: #2d3436; margin-bottom: 20px; border-bottom: 2px solid #f1f2f6; padding-bottom: 10px; }
.mega-l3-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.mega-l3-card { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid #eee; border-radius: 8px; text-decoration: none; color: #333; transition: 0.2s; background: #fff; }
.mega-l3-card:hover { border-color: var(--primary-color); box-shadow: 0 4px 10px rgba(9, 132, 227, 0.1); transform: translateY(-2px); color: var(--primary-color); }
.mega-l3-card i { font-size: 1.5rem; color: #555; width: 30px; text-align: center; }
.mega-l3-card:hover i { color: var(--primary-color); }
.mega-l3-card span { font-weight: 600; font-size: 0.95rem; }
.mega-col-1::-webkit-scrollbar, .mega-col-2::-webkit-scrollbar, .mega-col-3::-webkit-scrollbar { width: 6px; }
.mega-col-1::-webkit-scrollbar-thumb, .mega-col-2::-webkit-scrollbar-thumb, .mega-col-3::-webkit-scrollbar-thumb { background: #ddd; border-radius: 6px; }

/* =========================================
   🌟 ระบบ Live Chat Pop-up
========================================= */
.chat-widget-btn {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--primary-color); border-radius: 50%; color: #fff; font-size: 1.8rem;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
    box-shadow: 0 5px 15px rgba(9, 132, 227, 0.4); z-index: 9999; transition: 0.3s; border: none;
}
.chat-widget-btn:hover { transform: scale(1.1); background: var(--primary-hover); }

.chat-box {
    position: fixed; bottom: 100px; right: 30px; width: 340px; background: #fff;
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 9999;
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(20px); opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.chat-box.show { transform: translateY(0); opacity: 1; visibility: visible; }
.chat-header { background: var(--primary-color); color: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; font-family: 'Kanit'; }
.chat-header-title { font-weight: 600; font-size: 1.1rem; }
.chat-status { font-size: 0.8rem; display: flex; align-items: center; gap: 6px; font-weight: 400; margin-top: 2px;}
.status-dot { width: 8px; height: 8px; background: #00e676; border-radius: 50%; box-shadow: 0 0 5px #00e676; }
.status-dot.offline { background: #ff4757; box-shadow: 0 0 5px #ff4757; }
.close-chat { cursor: pointer; font-size: 1.2rem; transition: 0.2s; }
.close-chat:hover { color: #ff4757; }

#onlineChatUI { display: flex; flex-direction: column; }
.chat-body { padding: 15px; height: 280px; overflow-y: auto; background: #f8f9fa; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; font-family: 'Kanit'; line-height: 1.4; }
.msg-admin { background: #e1f0ff; align-self: flex-start; border-bottom-left-radius: 2px; color: #333; }
.msg-user { background: var(--primary-color); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-footer { padding: 15px; border-top: 1px solid #eee; background: #fff; }
.chat-input-group { display: flex; gap: 10px; }
.chat-input-group input { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 20px; outline: none; font-family: 'Kanit'; transition: 0.2s; }
.chat-input-group input:focus { border-color: var(--primary-color); }
.chat-input-group button { background: var(--primary-color); color: #fff; border: none; width: 42px; height: 40px; border-radius: 50%; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center; }
.chat-input-group button:hover { background: var(--primary-hover); transform: scale(1.05); }

#offlineChatUI { display: none; flex-direction: column; gap: 12px; padding: 20px; background: #fff; height: 350px; }
#offlineChatUI p { font-size: 0.9rem; color: #666; margin-bottom: 5px; font-family: 'Kanit'; line-height: 1.5; }
#offlineChatUI input, #offlineChatUI textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-family: 'Kanit'; outline: none; transition: 0.2s; }
#offlineChatUI input:focus, #offlineChatUI textarea:focus { border-color: var(--primary-color); }
#offlineChatUI button { background: var(--primary-color); color: #fff; border: none; padding: 12px; border-radius: 6px; font-family: 'Kanit'; cursor: pointer; transition: 0.2s; font-weight: 600; font-size: 1rem; margin-top: 5px; }
#offlineChatUI button:hover { background: var(--primary-hover); }

/* =========================================
   🌟 ปุ่ม Scroll to Top 
========================================= */
.scroll-top-btn {
    position: fixed; bottom: 100px; right: 35px; width: 45px; height: 45px; 
    background: #333; color: #fff; border: none; border-radius: 50%; font-size: 1.2rem;
    cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; 
    z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.scroll-top-btn.show { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--primary-color); transform: translateY(-5px); }

/* =========================================
   🌟 อัปเดต: โลโก้ธนาคาร (ย่อขนาดให้เล็กลง สะอาดตาขึ้น)
========================================= */
.bank-logos-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; align-items: center; }
.bank-logo {
    width: 55px;         /* ย่อขนาดความกว้างลง */
    height: 35px;        /* ย่อขนาดความสูงลง */
    background-color: #ffffff; 
    border-radius: 6px;  
    object-fit: contain; 
    padding: 4px;        /* ลดขอบด้านในลง */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); 
    border: 1px solid transparent;
    transition: 0.3s ease;
}
.bank-logo:hover { transform: translateY(-3px); box-shadow: 0 5px 12px rgba(9, 132, 227, 0.4); border-color: var(--primary-color); }

/* =========================================
   🌟 แท็ก Influencer Choice & Mystery Box (Minimal Magic Effect)
========================================= */
.influencer-badge {
    position: absolute; top: 10px; left: 10px;
    background: linear-gradient(45deg, #8a2be2, #ff0055);
    color: white; padding: 4px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; z-index: 5;
    display: flex; align-items: center; gap: 5px;
    box-shadow: 0 4px 10px rgba(255, 0, 85, 0.4);
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); }
}

.product-card.mystery-box { border: 1px solid #8a2be2; box-shadow: 0 0 15px rgba(138, 43, 226, 0.3); }

/* เอฟเฟกต์ดาวเวทมนตร์ลอยขึ้นตอน Hover (แทนที่ภาพสั่น) */
.product-card.mystery-box .product-image-container::before,
.product-card.mystery-box .product-image-container::after {
    content: '✨'; position: absolute; color: #f1c40f;
    font-size: 1.5rem; opacity: 0; z-index: 10; pointer-events: none;
}
.product-card.mystery-box:hover .product-image-container::before {
    animation: floatMagic1 1.5s infinite ease-in-out;
    left: 20%; top: 70%;
}
.product-card.mystery-box:hover .product-image-container::after {
    animation: floatMagic2 2s infinite ease-in-out;
    right: 25%; top: 80%; font-size: 1rem;
}
@keyframes floatMagic1 {
    0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-30px) scale(1.2) rotate(15deg); opacity: 1; }
    100% { transform: translateY(-60px) scale(0.5) rotate(30deg); opacity: 0; }
}
@keyframes floatMagic2 {
    0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-40px) scale(1) rotate(-15deg); opacity: 1; }
    100% { transform: translateY(-80px) scale(0.5) rotate(-30deg); opacity: 0; }
}

/* =========================================
   🌟 ระบบ Cart Pop-up (ปรับสีเป็นเทาสว่างตรงกับ Profile)
========================================= */
.cart-dropdown-wrap { position: relative; display: inline-block; }
.cart-dropdown-wrap::after { content: ''; position: absolute; top: 100%; right: 0; width: 100%; height: 20px; background: transparent; }

.cart-dropdown-menu {
    position: absolute; top: calc(100% + 15px); right: 0; 
    width: 320px; 
    background: #23262b; /* 🌟 อัปเดต: สีเดียวกับกล่องโปรไฟล์ */
    border-radius: 8px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.6); display: none; 
    flex-direction: column; z-index: 2000; border: 1px solid #333; 
    animation: fadeInDropdown 0.2s ease; cursor: default;
    font-family: 'Kanit';
}
.cart-dropdown-wrap:hover .cart-dropdown-menu { display: flex; }
.cart-dropdown-menu::before {
    content: ''; position: absolute; top: -6px; right: 20px; 
    width: 12px; height: 12px; 
    background: #23262b; /* 🌟 อัปเดต: สามเหลี่ยมสีเดียวกับกล่อง */
    border-top: 1px solid #333; border-left: 1px solid #333; transform: rotate(45deg);
}

.cart-header { padding: 15px; border-bottom: 1px solid #333; color: #fff; font-weight: 600; font-size: 1rem; }
.cart-items { padding: 15px; max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.cart-empty-msg { color: #888; text-align: center; font-size: 0.9rem; padding: 20px 0; }

.cart-total-box { padding: 15px; border-top: 1px solid #333; display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 700; font-size: 1.1rem; }
.cart-btn-checkout { display: block; width: calc(100% - 30px); margin: 0 auto 15px; background: var(--primary-color); color: #fff; text-align: center; padding: 10px; border-radius: 4px; text-decoration: none; font-weight: 600; transition: 0.2s; }
.cart-btn-checkout:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* Progress Bar 5 ระดับ ด้านล่างสุด */
.cart-progress-container { background: #1c1e22; padding: 15px; border-top: 1px solid #333; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.cart-progress-title { font-size: 0.8rem; color: #aaa; margin-bottom: 15px; text-align: center; }
.cart-progress-title span { color: var(--gold-main); font-weight: bold; }

.cp-track-wrapper { position: relative; width: 100%; }
.cp-tiers { position: relative; display: flex; justify-content: space-between; z-index: 3; }
.cp-track { position: absolute; top: 50%; left: 0; right: 0; height: 6px; background: #333; transform: translateY(-50%); z-index: 1; border-radius: 3px; }
.cp-fill { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(90deg, var(--primary-color), #0abde3); border-radius: 3px; z-index: 2; transition: width 0.5s ease; }

.cp-tier-dot { width: 18px; height: 18px; background: #333; border: 2px solid #1c1e22; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.cp-tier-dot.active { background: var(--primary-color); box-shadow: 0 0 8px var(--primary-color); border-color: var(--primary-color); }
.cp-tier-dot.gift { background: var(--gold-main); box-shadow: 0 0 8px var(--gold-main); border-color: var(--gold-main); }
.cp-tier-dot i { font-size: 0.55rem; color: #fff; display: none; }
.cp-tier-dot.active i { display: block; }
.cp-tier-dot.gift i { display: block; color: #000; }

/* =========================================
   🌟 โซนทำไมต้องซื้อกับเรา (ปรับกลับเป็นสีฟ้าสว่าง)
========================================= */
.features-banner { background: linear-gradient(135deg, var(--primary-color), #055ba6); padding: 50px 20px; color: #fff; border: none; }
.features-title { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 40px; text-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.features-inner { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.feature-box { display: flex; align-items: center; gap: 20px; }
.feature-icon { font-size: 3.5rem; color: rgba(255,255,255,0.9); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); transition: 0.3s; }
.feature-box:hover .feature-icon { transform: scale(1.1) rotate(5deg); color: var(--gold-main); }
.feature-text h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.feature-text p { font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.5; }

/* =========================================
   🌟 ระบบตะกร้าสินค้า (Cart Badge & Item List)
========================================= */
.btn-cart { position: relative; display: flex; align-items: center; gap: 5px; }

/* 🌟 อัปเดต: ป้ายวงกลมตัวเลขสีน้ำเงิน */
.cart-badge {
    position: absolute; top: -8px; right: -12px;
    background-color: var(--primary-color); color: #fff;
    font-size: 0.75rem; font-weight: 700; width: 20px; height: 20px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    border: 2px solid var(--header-bg);
    opacity: 0; transform: scale(0); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-badge.active { opacity: 1; transform: scale(1); }

.cart-actions-row { display: flex; gap: 10px; padding: 0 15px 15px; }
.cart-btn-view { flex: 1; background: #3a3f47; color: #fff; text-align: center; padding: 10px; border-radius: 4px; text-decoration: none; font-weight: 500; transition: 0.2s; }
.cart-btn-view:hover { background: #4a515a; }
.cart-btn-checkout { flex: 1; margin: 0; width: auto; }
.cart-dropdown-menu.show-cart { display: flex !important; }

/* 🌟 อัปเดต: Layout สินค้าในตะกร้า & Scrollbar */
.cart-items { 
    padding: 10px 15px; 
    max-height: 250px; /* จำกัดความสูง */
    overflow-y: auto;  /* ให้เลื่อน Scroll ได้ */
    display: flex; flex-direction: column; gap: 10px; 
}
.cart-items::-webkit-scrollbar { width: 5px; }
.cart-items::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }

.cart-item-row { 
    display: flex; align-items: center; gap: 12px; 
    padding-bottom: 10px; border-bottom: 1px solid #333; position: relative; 
}
.cart-item-row:last-child { border-bottom: none; padding-bottom: 0; }
.cart-item-img { width: 50px; height: 30px; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.cart-item-info { flex: 1; overflow: hidden; }
.cart-item-title { font-size: 0.85rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.cart-item-price { color: var(--gold-main); font-weight: 700; font-size: 0.9rem; }

/* ปุ่มถังขยะ */
.cart-item-remove { 
    background: none; border: none; color: #666; font-size: 0.9rem;
    cursor: pointer; transition: 0.2s; padding: 5px; border-radius: 4px;
}
.cart-item-remove:hover { color: #ff4757; background: rgba(255, 71, 87, 0.1); }

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--primary-color); }
}
.cart-bump { animation: cartBounce 0.4s ease; }


/* =========================================
   🌟 โซน Bestsellers & Most Wishlisted (ดีไซน์ใหม่ อิง Ref Last Download)
========================================= */
.dual-list-section { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; 
    margin-bottom: 60px; 
    max-width: 1100px; /* 🌟 ย่อขนาดความกว้างให้สั้นลง สะอาดตา */
    margin-left: auto; margin-right: auto; padding: 0 20px;
}
.list-col h2 { 
    color: #fff; font-size: 1.25rem; text-transform: uppercase; 
    margin-bottom: 15px; font-weight: 700; letter-spacing: 1px; 
    border-bottom: none; padding-bottom: 0; text-align: left;
}

.list-item { 
    display: flex; align-items: center; 
    background: #1c1e22; /* สีพื้นหลังสว่างขึ้นนิดนึงให้ป๊อปอัปมา */
    border-radius: 12px; /* ขอบโค้งมนตาม Ref */
    margin-bottom: 10px; padding: 8px 12px;
    transition: 0.3s ease; border: 1px solid #2b2e33; 
    cursor: pointer; text-decoration: none; 
}
.list-item:hover { 
    background: #23262b; transform: translateX(5px); 
    border-color: var(--primary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.list-rank { 
    width: 30px; font-size: 1.1rem; font-weight: 800; color: #5c6d7a; 
    text-align: center; margin-right: 5px; transition: 0.2s;
}
.list-item:hover .list-rank { color: var(--primary-color); }

/* รูปสี่เหลี่ยมจัตุรัสเล็กๆ ตาม Ref */
.list-img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; margin-right: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }

.list-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-title { color: #fff; font-size: 0.95rem; font-weight: 600; line-height: 1.2; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.list-edition { color: #888; font-size: 0.75rem; font-weight: 400; }

.list-price-box { text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-right: 5px; }
.list-old-price { color: #777; text-decoration: line-through; font-size: 0.7rem; line-height: 1; margin-bottom: 2px; }
.list-current-price { color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1; }

.list-discount { 
    background: rgba(255, 71, 87, 0.1); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.3);
    padding: 3px 6px; border-radius: 6px; font-weight: 800; font-size: 0.85rem; margin-left: 10px; 
}