/* ==========================================
   NanGamePlays - Main Stylesheet
   Theme: White & Deep Blue
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    /* 🎨 โทนหลัก (White/Light) */
    --dark: #ffffff;
    --darker: #ffffff;
    --secondary: #ffffff;

    /* 🔵 น้ำเงินเข้ม */
    --primary: #0EA5E9;
    --primary-dark: #0EA5E9;
    --primary-light: #0EA5E9;

    /* 🔷 สีฟ้ากลาง */
    --blue-mid: #1e4d8c;

    /* 🟠 ส้ม (accent) */
    --accent: #ff6b35;
    --accent-dark: #e55a25;

    /* 🧱 การ์ด */
    --card-bg: #ffffff;
    --card-border: #dde7f5;

    /* ✍️ ข้อความ */
    --text: #47494d;        /* เทาเข้ม */
    --text-muted: #4b5563;  /* เทากลาง */
    --text-light: #6b7280;  /* เทาอ่อน */

    /* 🌈 ไล่สี */
    --gradient: linear-gradient(135deg, #1a3a6b, #2563eb);
    --gradient-warm: linear-gradient(135deg, #2563eb, #ff6b35);

    --shadow: 0 8px 32px rgba(26,58,107,0.15);
    --shadow-card: 0 4px 20px rgba(26,58,107,0.1);
    --shadow-hover: 0 12px 40px rgba(26,58,107,0.2);

    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif;
    background-color: #f2f3f7;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

footer {
    margin-top: auto;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e8eef9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #dde7f5;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(26,58,107,0.08);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Kanit', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.navbar-brand i {
    color: #1a3a6b;
    font-size: 1.6rem;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 600;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background: var(--primary);
}

.navbar-toggler {
    border-color: rgba(26,58,107,0.3);
    color: var(--primary);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-logo{
    font-size:3.5rem;
    font-weight:900;
    letter-spacing:3px;
    font-family:'Kanit',sans-serif;
}

.hero{
    position:relative;
    padding:200px 0;
    overflow:hidden;
    display:flex;
    align-items:center;
}

/* video background */
.hero-video{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;

    transform:translateZ(0);
    backface-visibility:hidden;
}

/* overlay มืด */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.55);
    z-index:1;
}

/* ให้เนื้อหาอยู่บน */
.hero .container{
    position:relative;
    z-index:2;
}

/* dark overlay */
.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.6); /* ความมืด */
    z-index:1;
}

/* decorative effects */
.hero::after{
    content:'';
    position:absolute;
    inset:0;

    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37,99,235,0.25) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255,107,53,0.15) 0%, transparent 40%),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

    background-size:
        auto,
        auto,
        auto,
        40px 40px,
        40px 40px;

    z-index:2;
}

/* content */
.hero .container{
    position:relative;
    z-index:3;
}

/* ===== Mobile ===== */
@media (max-width: 768px){

.hero-logo{
    font-size:2.2rem;   /* โลโก้เล็กลง */
}

.hero p{
    font-size:0.95rem;  /* ข้อความเล็กลง */
}

.hero .btn{
    font-size:0.85rem;
    padding:8px 16px;   /* ปุ่มเล็กลง */
}

.hero img{
    height:18px; /* ไอคอนเล็กลง */
}

.hero .fs-3{
    font-size:1.3rem !important; /* ตัวเลข stats เล็กลง */
}

}

.hero-btn-primary {
    background: #ff6b35;
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.hero-btn-primary:hover {
    background: #e85a2a;
    color:#ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
}

.min-vh-75 {
    min-height: 75vh;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    background: none;
    -webkit-text-fill-color: unset;
}

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

/* ==========================================
   HERO MARQUEE - With Icons
   ========================================== */
.hero-marquee {
    background: linear-gradient(90deg, #1a3a6b, #2563eb, #1e4d8c);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    padding: 16px 0;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-marquee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.hero-marquee::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.marquee-track {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeMove 35s linear infinite;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.marquee-track span {
    display: inline-block;
    padding: 0 30px;
    position: relative;
    color: #f0f9ff;
}

/* สไตล์ไอคอน */
.marquee-track span i {
    margin-right: 8px;
    color: #f97316;
    filter: drop-shadow(0 0 8px rgba(249,115,22,0.4));
    transition: transform 0.3s ease;
}

/* จุดคั่นระหว่างข้อความ */
.marquee-track span::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #f97316;
    border-radius: 50%;
    box-shadow: 0 0 10px #f97316;
}

/* ลบจุดคั่นจากอันสุดท้าย */
.marquee-track span:last-child::after {
    display: none;
}

/* Hover effect - หยุดเคลื่อนที่และไอคอนขยับ */
.hero-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.hero-marquee:hover .marquee-track span i {
    transform: scale(1.1);
}

@keyframes marqueeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
/* ==========================================
   PRODUCT CARD GRID (from index.php <style>)
   ========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 1199px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .product-grid { grid-template-columns: 1fr; } }

/* ── Card ── */
.product-card {
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(26,58,107,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s ease, transform .3s ease;
    position: relative;
    background: #ffffff;
    border: 1px solid #dde7f5;
}
.product-card:hover {
    box-shadow: 0 12px 36px rgba(26,58,107,0.18);
    transform: translateY(-5px);
    border-color: #2563eb;
}

/* ── Image wrapper ── */
.pc-img-wrap {
    position: relative;
    height: 192px;
    overflow: hidden;
    background: #e8eef9;
}
.pc-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; transition: transform .5s ease;
}
.product-card:hover .pc-img-wrap img { transform: scale(1.08); }
.pc-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #2563eb;
}

/* ── Discount badge มุมขวาบน ── */
.pc-discount-badge {
    position: absolute; top: .6rem; right: .6rem;
    z-index: 8;
    background: linear-gradient(135deg,#ff6b35,#e85520);
    color: #fff; font-size: .7rem; font-weight: 800;
    padding: .22rem .65rem; border-radius: 999px;
    letter-spacing: .5px;
    box-shadow: 0 2px 12px rgba(255,107,53,.5);
    animation: discPulse 2.4s infinite;
}
@keyframes discPulse {
    0%,100% { box-shadow: 0 2px 12px rgba(255,107,53,.5); }
    50%      { box-shadow: 0 2px 22px rgba(255,107,53,.85); }
}

/* ── Badges มุมซ้ายบน ── */
.pc-badges {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    display: flex; flex-direction: column; gap: 0.35rem;
    z-index: 6;
}
.pc-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.7rem; font-weight: 700;
    padding: 0.2rem 0.55rem; border-radius: 999px;
}
.pc-badge--featured  { background: #fde68a; color: #713f12; }
.pc-badge--available { background: #22c55e; color: #fff; }

.pc-price-overlay {
    position: absolute;
    bottom: .75rem;
    right: .75rem;

    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);

    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 10px;

    z-index: 6;
    line-height: 1.5;
    text-align: right;
}
.ppo-orig  { display: block; font-size: .7rem; font-weight: 500; color: rgba(255,255,255,.45); text-decoration: line-through; line-height: 1.2; }
.ppo-final { display: block; color: #4ade80; font-size: .88rem; font-weight: 800; line-height: 1.3; }

/* ── Card body ── */
.pc-body {
    padding: 1rem;
    display: flex; flex-direction: column; flex: 1;
    background-color: #ffffff;
}
.pc-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 0.5rem; margin-bottom: 0.4rem;
}
.pc-code {
    font-size: 0.95rem; font-weight: 700; color: #1a2a4a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-code i { color: #2a2b2c; margin-right: 0.25rem; }
.pc-game-tag {
    flex-shrink: 0;
    background: #dbeafe; color: #424346;
    font-size: 0.7rem; font-weight: 600;
    padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap;
}

/* ── ราคาในการ์ด ── */
.pc-price-row {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem;
    margin-bottom: .4rem;
}
.pc-price-final         { font-size: 1.05rem; font-weight: 800; color: #474948; }
.pc-price-final.no-disc { color: #474948; }
.pc-price-orig          { font-size: .78rem; color: #94a3b8; text-decoration: line-through; }
.pc-disc-tag {
    font-size: .68rem; font-weight: 700;
    background: rgba(255,107,53,.1); border: 1px solid rgba(255,107,53,.3);
    color: #e55a25; padding: .1rem .45rem; border-radius: 999px;
}

/* ── Footer row ── */
.pc-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 0.5rem; border-top: 1px solid #eef2fb;
    margin-top: auto; margin-bottom: 0.5rem;
}
.pc-date { font-size: 0.75rem; color: #94a3b8; }

/* ==========================================
   CARDS (general)
   ========================================== */
.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-card);
    position: relative;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.game-card .badge-featured {
    background: #ff6b35;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-featured i {
    color: #ffffff;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card .card-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8eef9, #dde7f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.game-card .card-body {
    padding: 18px;
}

.game-card .game-name {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.game-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.game-card .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    margin: 10px 0;
}

.game-card .price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(26,58,107,0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,58,107,0.35);
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
    font-weight: 600;
    border-radius: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    font-weight: 600;
    border-radius: 8px;
}

/* ==========================================
   FORMS
   ========================================== */
.form-control,
.form-select {
    background: #ffffff;
    border: 1px solid #c8d8ee;
    color: #1a2a4a;
    border-radius: 8px;
    padding: 12px 16px;
    transition: 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background: #ffffff;
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
    color: #1a2a4a;
    outline: none;
}

.form-control::placeholder {
    color: rgba(26,42,74,0.45);
    opacity: 1;
}

.form-select option {
    background: #ffffff;
    color: #1a2a4a;
}

.form-label {
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* Auth Card */
.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    max-width: 460px;
    margin: 0 auto;
}
.auth-card .auth-logo{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:30px;
}

.auth-card .auth-logo .logo-text{
    font-size:1.8rem;   /* ลดขนาดโลโก้ */
    font-weight:900;
    letter-spacing:2px;
    font-family:'Kanit',sans-serif;
    text-align:center;
    margin:0;
}
.auth-card h2 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.auth-card p.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* ==========================================
   ALERTS / FLASH
   ========================================== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 14px 18px;
    font-weight: 500;
}

.alert-success {
    background: rgba(46,204,113,0.12);
    color: #1a7a45;
    border-left: 4px solid #2ecc71;
}

.alert-danger {
    background: rgba(231,76,60,0.1);
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.alert-warning {
    background: rgba(243,156,18,0.1);
    color: #b7770d;
    border-left: 4px solid #f39c12;
}

.alert-info {
    background: rgba(26,58,107,0.07);
    border: 1px solid rgba(26,58,107,0.15);
    color: #1a3a6b;
    border-left: 4px solid #2563eb;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 30px;
    color: var(--text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================
   PRODUCT DETAIL
   ========================================== */
.product-detail {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-gallery img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.product-gallery .thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.product-gallery .thumbnail:hover,
.product-gallery .thumbnail.active {
    border-color: var(--primary);
}

.product-price-box {
    background: rgba(26,58,107,0.04);
    border: 1px solid rgba(26,58,107,0.15);
    border-radius: 12px;
    padding: 20px;
}

/* ==========================================
   ORDER / CHECKOUT
   ========================================== */
.order-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 24px;
    color: var(--text);
}

.order-total {
    background: rgba(26,58,107,0.06);
    border-radius: 8px;
    padding: 16px;
}

.payment-bank-card {
    background: rgba(26,58,107,0.03);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
    color: var(--text);
}

.payment-bank-card:hover,
.payment-bank-card.selected {
    border-color: var(--primary);
    background: rgba(26,58,107,0.07);
}

.payment-bank-card .bank-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.payment-bank-card .account-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a6b;
    letter-spacing: 1px;
}

/* Slip Upload */
.slip-upload-area {
    border: 2px dashed rgba(26,58,107,0.3);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(26,58,107,0.03);
    color: var(--text);
}

.slip-upload-area:hover {
    border-color: var(--primary);
    background: rgba(26,58,107,0.07);
}

.slip-upload-area i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.slip-preview {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/* ==========================================
   STATUS BADGES
   ========================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-available  { background: rgba(46,204,113,0.12); color: #1a7a45; }
.status-sold       { background: rgba(231,76,60,0.12);  color: #c0392b; }
.status-unavailable{ background: rgba(100,116,139,0.12);color: #64748b; }
.status-pending    { background: rgba(243,156,18,0.12); color: #b7770d; }
.status-paid       { background: rgba(37,99,235,0.12);  color: #1d4ed8; }
.status-confirmed  { background: rgba(46,204,113,0.12); color: #1a7a45; }
.status-cancelled  { background: rgba(231,76,60,0.12);  color: #c0392b; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #1f2937;   /* เทาเข้ม */
    padding: 20px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-bottom {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .auth-card { padding: 24px; }
    .section-title { font-size: 1.4rem; }
}

/* ==========================================
   UTILITIES
   ========================================== */
.text-gold { color: #d97706 !important; }
.text-primary { color: var(--primary) !important; }
.bg-card { background: var(--card-bg) !important; }
.border-card { border-color: var(--card-border) !important; }
.divider { border-color: rgba(26,58,107,0.12) !important; }
.rounded-xl { border-radius: var(--border-radius) !important; }

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(26,58,107,0.2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Count badge on nav */
.nav-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: 700;
}

/* Page Header */
.page-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 28px 0;
    margin-bottom: 30px;
}

/* layout */
.page-header-flex{
    display:flex;
    align-items:center;
    gap:18px;
}

/* icon */
.header-icon{
    color:#ff6b35;
}

/* title */
.page-header h1{
    font-size:1.6rem;
    font-weight:700;
    color:#2b2a2a;
    margin-bottom:4px;
}

/* breadcrumb */
.page-header .breadcrumb,
.page-header .breadcrumb a,
.page-header .breadcrumb-item{
    color:#2b2a2a !important;
    font-size:14px;
}

/* back button */
.btn-back{
    background:rgba(0,0,0,0.05);
    color:#333;
    border:1px solid rgba(0,0,0,0.08);
    padding:6px 14px;
    font-size:14px;
}

.btn-back:hover{
    background:#ff6b35;
    color:#fff;
    border-color:#ff6b35;
}

/* ---------- MOBILE ---------- */

@media (max-width:768px){

    .page-header{
        padding:22px 0;
    }

    .page-header-flex{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .page-header h1{
        font-size:1.3rem;
    }

    .page-header .breadcrumb{
        font-size:12px;
        flex-wrap:wrap;
    }

    .btn-back{
        align-self:flex-start;
    }

}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--primary);
}

/* ===== Logo Color Style ===== */
.logo-text {
    font-weight: 800;
    font-family: 'Kanit', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
}

.logo-nan  { color: #0EA5E9; }
.logo-game { color: #fb923c; }
.logo-play { color: #4B5563; }

/* In hero (white bg needed) */
.hero .logo-nan  { color: #0EA5E9;; }
.hero .logo-game { color: #fb923c; }
.hero .logo-play { color: #ffffff; }

.btn-orange {
    background: #ff6b35;
    border: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background: #e55a25;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,107,53,0.35);
}

/* ==========================================
   SHOP PAGE
   ========================================== */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-footer, footer { flex-shrink: 0; }
.shop-page-wrap { flex: 1 0 auto; }

/* ── Stats bar ── */
.shop-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.shop-stat {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; font-weight: 600; padding: .3rem .85rem; border-radius: 999px;
    text-decoration: none; transition: all .2s;
}
.shop-stat.s-total { background: rgba(26,58,107,.08);  color: #4a6694;  border: 1px solid rgba(26,58,107,.15); }
.shop-stat.s-avail { background: rgba(34,197,94,.1);   color: #16a34a;  border: 1px solid rgba(34,197,94,.25); }
.shop-stat.s-sold  { background: rgba(239,68,68,.08);  color: #dc2626;  border: 1px solid rgba(239,68,68,.2); }
.shop-stat.s-page  { background: rgba(37,99,235,.1);   color: #1d4ed8;  border: 1px solid rgba(37,99,235,.2); }

/* ── Filter box ── */
.shop-filter {
    background: #ffffff;
    border: 1px solid #dde7f5;
    border-radius: .875rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(26,58,107,.06);
}
.shop-filter .form-control,
.shop-filter .form-select {
    background: #f8faff;
    border: 1px solid #c8d8ee;
    color: #1a2a4a;
    font-size: .875rem;
}
.shop-filter .form-control::placeholder { color: rgba(26,42,74,.35); }
.shop-filter .form-control:focus,
.shop-filter .form-select:focus {
    background: #ffffff;
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26,58,107,.1);
    color: #1a2a4a;
}
.shop-filter .form-select option { background: #ffffff; color: #1a2a4a; }
.shop-filter .form-label {
    font-size: .72rem; font-weight: 700; color: #4a6694;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: .35rem;
}

/* ── Sort pills ── */
.sort-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.sort-pill {
    display: inline-flex; align-items: center; gap: .25rem;
    font-size: .78rem; font-weight: 600; padding: .28rem .75rem;
    border-radius: 999px; text-decoration: none;
    border: 1px solid #dde7f5;
    background: #f0f4ff; color: #4a6694; transition: all .2s;
}
.sort-pill:hover  { background: rgba(26,58,107,.08); border-color: #1a3a6b; color: #1a3a6b; }
.sort-pill.active { background: #1a3a6b; border-color: #1a3a6b; color: #fff; }

/* ── Status tabs ── */
.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1rem;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem 1rem;
    border-radius: 999px;
    text-decoration: none;

    border: 1px solid #477bec;
    background: rgba(71,123,236,0.1);
    color: #477bec;

    transition: all .2s ease;
}

/* hover */
.status-tab:hover {
    background: #477bec;
    color: #fff;
    border-color: #477bec;
}

/* active */
.status-tab.active {
    background: #477bec;
    color: #fff;
    border-color: #477bec;
}

/* ── Sold card ── */
.product-card.is-sold { opacity: .85; }
.product-card.is-sold:hover { opacity: 1; box-shadow: 0 10px 28px rgba(220,53,69,.12); transform: translateY(-4px); border-color: #ef4444; }

/* ── SOLD stamp ── */
.pc-sold-stamp {
    position: absolute; inset: 0;
    background: rgba(5,5,10,.42);
    display: flex; align-items: center; justify-content: center;
    z-index: 5; pointer-events: none;
}
.pc-sold-stamp-inner {
    background: rgba(220,53,69,.92); color: #fff;
    font-size: 1rem; font-weight: 800; letter-spacing: 3px;
    text-transform: uppercase; padding: 7px 22px;
    border-radius: 6px; border: 2px solid rgba(255,120,130,.4);
    box-shadow: 0 4px 20px rgba(220,53,69,.4);
    transform: rotate(-8deg);
}

/* ── Price overlay sold state ── */
.pc-price-overlay.is-sold {
    text-decoration: line-through;
    background: rgba(80,20,20,.75);
    color: rgba(255,180,180,.8);
}

/* ── Sold badge ── */
.pc-badge--sold { background: #ef4444; color: #fff; }

/* ── Shop card body (white bg) ── */
.shop-page-wrap .pc-body {
    background: #ffffff;
}
.shop-page-wrap .pc-code { color: #1a2a4a; }
.shop-page-wrap .pc-price-final { color: #16a34a; }
.shop-page-wrap .pc-price-final.no-disc { color: #d97706; }
.shop-page-wrap .pc-price-orig { color: #94a3b8; }
.shop-page-wrap .pc-footer { border-top: 1px solid #eef2fb; }

/* ── Pagination ── */
.pg-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.pg-info { font-size: .8rem; color: #4a6694; }
.pg-btns { display: flex; gap: .3rem; flex-wrap: wrap; }
.pg-btn  {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 .65rem;
    border-radius: .5rem; font-size: .82rem; font-weight: 600; text-decoration: none;
    border: 1px solid #dde7f5;
    background: #f0f4ff; color: #4a6694; transition: all .2s;
}
.pg-btn:hover    { background: rgba(26,58,107,.1); border-color: #1a3a6b; color: #1a3a6b; }
.pg-btn.active   { background: #1a3a6b; border-color: #1a3a6b; color: #fff; pointer-events: none; }
.pg-btn.disabled { opacity: .3; pointer-events: none; }

/* ==========================================
   DROPDOWN
   ========================================== */
.dropdown-menu {
    background: #ffffff;
    border: 1px solid #dde7f5;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(26,58,107,0.12);
}

.dropdown-item {
    color: #1a2a4a !important;
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(26,58,107,0.07);
    color: #1a3a6b !important;
}

.dropdown-item.text-danger {
    color: #e74c3c !important;
}

.dropdown-item.text-danger:hover {
    background: rgba(231,76,60,0.08);
    color: #c0392b !important;
}