/* นำเข้าฟอนต์สไตล์เกม/โมเดิร์น */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;600;700&display=swap');

/* ตั้งค่าเริ่มต้น (Reset & Variables) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

:root {
    --bg-main: #0b0e14;       /* สีพื้นหลังหลัก (ดาร์กโทนเว็บเติมเกม) */
    --bg-card: #161b26;       /* สีกล่องข้อความ/การ์ด */
    --color-neon: #ff0055;    /* สีชมพู/แดงนีออน (ตัวชูโรงความเป็น DFS) */
    --color-neon-glow: rgba(255, 0, 85, 0.5);
    --text-muted: #8a96a3;
    --text-light: #f5f6f7;
    --gradient-btn: linear-gradient(135deg, #ff0055 0%, #ff5500 100%);
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    overflow-x: hidden;
}

/* แถบเมนูด้านบน (Navbar) */
.navbar {
    background-color: rgba(22, 27, 38, 0.95);
    border-bottom: 2px solid #222b3d;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-neon);
    letter-spacing: 1px;
}

.text-white { color: #fff; }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    transition: 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-neon);
    text-shadow: 0 0 10px var(--color-neon-glow);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--gradient-btn);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ส่วนคอนเทนเนอร์หลัก */
.main-container {
    max-width: 1200px;
    margin: 100px auto 40px auto;
    padding: 0 20px;
}

/* แบนเนอร์ไฮไลต์ (Hero Banner) */
.hero-banner {
    background: linear-gradient(rgba(11, 14, 20, 0.4) 0%, rgba(11, 14, 20, 1) 100%),
            url('/Dance%20Full%20System/img/banner_01.png') no-repeat center center / cover;
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    border: 1px solid #222b3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 25px;
}

/* ปุ่มแบบเว็บเกม */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 4px 15px var(--color-neon-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.7);
}

/* ส่วนหน้าร้านค้าและกริดสินค้า */
.shop-section {
    margin-top: 20px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 25px;
    border-left: 4px solid var(--color-neon);
    padding-left: 10px;
    letter-spacing: 0.5px;
}

.text-neon { color: var(--color-neon); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* ตัวการ์ดสินค้า */
.product-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #222b3d;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-neon);
    box-shadow: 0 10px 20px rgba(255, 0, 85, 0.15);
}

/* รูปภาพปกสินค้า (สุ่มสีแนวเท่ๆ แทนรูปภาพจริงไปก่อน) */
.product-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.img-pack-1 { 
    background-image: url('../img/PD-1.png'); 
    background-size: cover;      
    background-position: center;  
    background-repeat: no-repeat;  
}
.img-pack-2 { 
    background-image: url('../img/PD-1.png'); 
    background-size: cover;      
    background-position: center;  
    background-repeat: no-repeat;  
}
.img-pack-3 { 
    background-image: url('../img/PD-1.png'); 
    background-size: cover;      
    background-position: center;  
    background-repeat: no-repeat;  
}

/* ป้าย Tag มุมซ้ายบน */
.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-neon);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.tag.new {
    background-color: #00e5ff;
}

/* ข้อมูลในการ์ด */
.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    color: var(--text-muted);
    font-size: 13px;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ราคากับปุ่มซื้อ */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 12px;
    color: #556273;
    text-decoration: line-through;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #00ff66; /* สีเขียวสไตล์เว็บเติมเกมบอกราคาเงิน */
}

.btn-buy {
    background-color: transparent;
    border: 2px solid var(--color-neon);
    color: var(--color-neon);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.product-card:hover .btn-buy {
    background: var(--gradient-btn);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px var(--color-neon-glow);
}

/* ส่วนท้ายเว็บ */
.main-footer {
    text-align: center;
    padding: 30px;
    background-color: #080a0f;
    border-top: 1px solid #161b26;
    color: #556273;
    font-size: 13px;
    margin-top: 60px;
}

/* สำหรับหน้าจอโทรศัพท์มือถือ */
@media (max-width: 768px) {
    .nav-links { display: none; } /* ซ่อนเมนูแบบธรรมดาบนมือถือเพื่อทำแฮมเบอร์เกอร์เพิ่มในอนาคต */
    .hero-banner { padding: 40px 20px; }
    .hero-content h1 { font-size: 32px; }
}