/* ===================================
   玥鑫財閥 Theme v1
=================================== */

:root{

    --bg:#0f1014;
    --card:#181a20;
    --gold:#d4af37;
    --gold2:#f6d365;
    --text:#ffffff;
    --sub:#9ea4af;
    --border:#2b2f38;
    --hover:#20242c;

}

body{

    background:var(--bg);

    color:var(--text);

}

/* ================= HEADER ================= */

.main-navbar{

    position:sticky;

    top:0;

    z-index:9999;

    height:72px;

    background:rgba(15,16,20,.92);

    backdrop-filter:blur(15px);

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:0 28px;

    border-bottom:1px solid var(--border);

}

.main-navbar a{

    color:white;

    text-decoration:none;

    transition:.25s;

    font-size:15px;

}

.main-navbar a:hover{

    color:var(--gold);

}

/* ================= LOGO ================= */

.logo{

    display:flex;

    align-items:center;

    gap:12px;

}

.logo-icon{

    width:44px;

    height:44px;

    border-radius:14px;

    background:linear-gradient(135deg,#ffda77,#b88a00);

    color:#111;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:bold;

    font-size:18px;

}

.logo-text{

    display:flex;

    flex-direction:column;

}

.logo-text strong{

    font-size:18px;

}

.logo-text small{

    color:#999;

}

/* ================= SEARCH ================= */

.search-box{

    width:520px;

    max-width:100%;

    display:flex;

    overflow:hidden;

    border-radius:14px;

    background:#1d1f26;

    border:1px solid var(--border);

}

.search-box input{

    flex:1;

    background:none;

    border:none;

    color:white;

    padding:12px 16px;

    outline:none;

}

.search-box button{

    width:55px;

    border:none;

    background:var(--gold);

    color:#111;

    cursor:pointer;

    font-weight:bold;

}

/* ================= BADGE ================= */

.badge{

    position:absolute;

    top:-6px;

    right:-8px;

    background:#ff3b30;

    color:white;

    border-radius:99px;

    min-width:18px;

    height:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:11px;

    padding:0 5px;

}

.icon-link{

    position:relative;

}

/* ================= BUTTON ================= */

.logout-btn{

    background:#262a33;

    padding:8px 14px;

    border-radius:10px;

}

.logout-btn:hover{

    background:#d32f2f;

    color:white;

}

/* ================= MOBILE ================= */

@media(max-width:991px){

.main-navbar{

padding:0 15px;

height:65px;

}

.search-box{

display:none;

}

.main-navbar a{

font-size:14px;

}

.logo-text small{

display:none;

}

}
/* ================= HERO ================= */

.hero{
    max-width:1400px;
    margin:0 auto;
    min-height:80vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:80px;
    padding:70px 30px;
    position:relative;
    z-index:2;
}

.hero-left{
    flex:1;
    max-width:650px;
}

.hero-tag{
    display:inline-block;
    background:rgba(212,175,55,.15);
    color:#ffd54f;
    border:1px solid rgba(212,175,55,.35);
    padding:8px 18px;
    border-radius:999px;
    margin-bottom:25px;
    font-size:15px;
    font-weight:600;
}

.hero h1{
    font-size:58px;
    line-height:1.2;
    margin-bottom:25px;
    color:#fff;
}

.hero p{
    font-size:18px;
    line-height:1.8;
    color:#d6d6d6;
    margin-bottom:35px;
}

.hero-info{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:40px;
}

.hero-info span{
    background:rgba(255,255,255,.08);
    padding:12px 18px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    transition:.3s;
}

.hero-info span:hover{
    transform:translateY(-4px);
    border-color:#d4af37;
}

.hero-buttons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.hero-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:180px;
    height:56px;
    border-radius:14px;
    background:linear-gradient(135deg,#ffd54f,#d4af37);
    color:#111;
    font-weight:bold;
    text-decoration:none;
    transition:.3s;
}

.hero-btn:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 35px rgba(212,175,55,.35);
}

.hero-btn-outline{
    background:transparent;
    color:#fff;
    border:2px solid #d4af37;
}

.hero-btn-outline:hover{
    background:#d4af37;
    color:#111;
}

.hero-right{
    flex:1;
    display:flex;
    justify-content:center;
}

.hero-card{
    width:420px;
    background:rgba(20,20,28,.72);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:26px;
    padding:35px;
    box-shadow:0 20px 60px rgba(0,0,0,.45);
    transition:.35s;
}

.hero-card:hover{
    transform:translateY(-10px) scale(1.02);
}

.hero-card-top{
    display:flex;
    justify-content:space-between;
    margin-bottom:25px;
    color:#ffd54f;
    font-weight:bold;
}

.hero-card h3{
    font-size:30px;
    margin-bottom:18px;
}

.hero-card p{
    color:#ccc;
    line-height:1.8;
}

.hero-card-footer{
    display:flex;
    justify-content:space-between;
    margin-top:35px;
    color:#ffd54f;
}

/* ===== Mobile ===== */

@media(max-width:991px){

.hero{
    flex-direction:column;
    text-align:center;
    padding:45px 20px;
    min-height:auto;
}

.hero h1{
    font-size:36px;
}

.hero p{
    font-size:16px;
}

.hero-info{
    justify-content:center;
}

.hero-buttons{
    justify-content:center;
}

.hero-right{
    width:100%;
}

.hero-card{
    width:100%;
    max-width:420px;
}

}
/* ================= SHOP HERO ================= */

.shop-hero{

    max-width:1000px;

    margin:0 auto 45px;

    text-align:center;

    animation:fadeUp .8s ease;

}

.shop-title{

    font-size:56px;

    color:#fff;

    margin-bottom:15px;

    font-weight:800;

}

.shop-subtitle{

    font-size:20px;

    color:#d0d0d0;

    margin-bottom:30px;

    line-height:1.7;

}

.shop-feature{

    display:flex;

    justify-content:center;

    gap:18px;

    flex-wrap:wrap;

}

.shop-feature span{

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.08);

    color:#fff;

    padding:12px 20px;

    border-radius:999px;

    transition:.3s;

    font-weight:600;

}

.shop-feature span:hover{

    transform:translateY(-5px);

    border-color:#d4af37;

    box-shadow:0 12px 30px rgba(212,175,55,.18);

}

/* 搜尋區 */

.shop-search-form{

    max-width:900px;

    margin:40px auto;

}

.shop-search-row{

    display:flex;

    gap:15px;

    margin-bottom:18px;

}

.shop-search-input{

    flex:1;

    height:58px;

    border-radius:15px;

    border:1px solid rgba(255,255,255,.08);

    background:rgba(20,20,28,.78);

    color:#fff;

    padding:0 20px;

    font-size:16px;

}

.shop-search-input:focus{

    outline:none;

    border-color:#d4af37;

}

.shop-search-btn{

    width:140px;

    border:none;

    border-radius:15px;

    background:linear-gradient(135deg,#ffd54f,#d4af37);

    color:#111;

    font-weight:bold;

    cursor:pointer;

    transition:.3s;

}

.shop-search-btn:hover{

    transform:translateY(-3px);

}

.shop-filter-row{

    display:flex;

    gap:15px;

    justify-content:center;

    flex-wrap:wrap;

}

.shop-select{

    min-width:180px;

    height:48px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,.08);

    background:rgba(20,20,28,.78);

    color:#fff;

    padding:0 15px;

}

/* 遊戲分類 */

.shop-category-list{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

    margin-top:35px;

}

.shop-category-list a{

    color:#fff;

    text-decoration:none;

    padding:10px 18px;

    border-radius:999px;

    background:rgba(255,255,255,.08);

    transition:.3s;

}

.shop-category-list a:hover{

    background:#d4af37;

    color:#111;

}

/* 動畫 */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/* 手機 */

@media(max-width:991px){

.shop-title{

font-size:38px;

}

.shop-subtitle{

font-size:16px;

padding:0 15px;

}

.shop-search-row{

flex-direction:column;

}

.shop-search-btn{

width:100%;

height:55px;

}

.shop-select{

width:100%;

}

.shop-feature{

gap:10px;

}

.shop-feature span{

font-size:14px;

padding:10px 15px;

}

}
/*==============================
SHOP CARD V2
==============================*/

.shop-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));

    gap:28px;

}

.shop-card{

    background:rgba(20,20,28,.82);

    border-radius:22px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

    backdrop-filter:blur(15px);

    box-shadow:0 12px 35px rgba(0,0,0,.25);

}

.shop-card:hover{

    transform:translateY(-10px);

    border-color:#d4af37;

    box-shadow:0 25px 60px rgba(212,175,55,.18);

}

.shop-card img{

    width:100%;

    aspect-ratio:16/9;

    object-fit:cover;

}

.shop-card-body{

    padding:18px;

}

.shop-card-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:12px;

}

.shop-game{

    color:#8ab4ff;

    font-size:14px;

}

.shop-price{

    color:#ffd54f;

    font-size:18px;

    font-weight:bold;

}

.shop-product-title{

    color:white;

    font-size:20px;

    line-height:1.5;

    margin-bottom:15px;

    min-height:60px;

}

.shop-verify{

    display:inline-block;

    padding:8px 14px;

    border-radius:999px;

    font-size:14px;

    font-weight:600;

}

.shop-verify.verified{

    background:#16361d;

    color:#6cff8d;

}

.shop-verify.unverified{

    background:#3d1919;

    color:#ff7a7a;

}

.shop-card-actions{

    display:flex;

    gap:12px;

    padding:18px;

    border-top:1px solid rgba(255,255,255,.08);

}

.btn-cart{

    flex:1;

    text-align:center;

    padding:12px;

    border-radius:12px;

    background:linear-gradient(135deg,#ffd54f,#d4af37);

    color:#111;

    text-decoration:none;

    font-weight:bold;

}

.favorite-btn{

    width:48px;

    height:48px;

    border-radius:12px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(255,255,255,.08);

    text-decoration:none;

    font-size:22px;

    transition:.3s;

}

.favorite-btn:hover{

    transform:scale(1.1);

    background:#ff4d6d;

}
/*==================================
PRODUCT PAGE
==================================*/

.product-page{

    max-width:1400px;

    margin:60px auto;

    padding:0 25px;

}

.product-container{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:45px;

    align-items:start;

}

.product-image{

    background:rgba(20,20,28,.85);

    border-radius:24px;

    overflow:hidden;

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

}

.product-image img{

    width:100%;

    display:block;

    aspect-ratio:1/1;

    object-fit:cover;

}

.product-info{

    background:rgba(20,20,28,.82);

    border-radius:24px;

    padding:35px;

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(18px);

}

.product-category{

    display:inline-block;

    padding:8px 16px;

    border-radius:999px;

    background:rgba(255,255,255,.08);

    color:#8ab4ff;

    margin-bottom:20px;

}

.product-info h1{

    color:#fff;

    font-size:40px;

    margin-bottom:20px;

    line-height:1.4;

}

.product-price{

    font-size:40px;

    font-weight:bold;

    color:#ffd54f;

    margin-bottom:25px;

}

.product-stock{

    color:#ddd;

    margin-bottom:15px;

    font-size:18px;

}

.product-stock.out{

    color:#ff7777;

}

.product-verify{

    display:inline-block;

    margin-bottom:30px;

    padding:10px 18px;

    border-radius:999px;

    font-weight:bold;

}

.product-verify.verified{

    background:#15361d;

    color:#6cff8d;

}

.product-verify.unverified{

    background:#421818;

    color:#ff8080;

}

.product-actions{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

}

.btn-buy{

    flex:1;

    text-align:center;

    padding:18px;

    border-radius:16px;

    background:linear-gradient(135deg,#ffd54f,#d4af37);

    color:#111;

    text-decoration:none;

    font-size:18px;

    font-weight:bold;

    transition:.3s;

}

.btn-cart{

    flex:1;

    text-align:center;

    padding:18px;

    border-radius:16px;

    background:#2c2f37;

    color:#fff;

    text-decoration:none;

    font-size:18px;

    font-weight:bold;

    transition:.3s;

}

.btn-buy:hover,
.btn-cart:hover{

    transform:translateY(-5px);

}

.btn-disabled{

    width:100%;

    padding:18px;

    border:none;

    border-radius:16px;

    background:#555;

    color:#fff;

    font-size:18px;

}

.product-description-card{

    margin-top:40px;

    background:rgba(20,20,28,.82);

    border-radius:24px;

    padding:35px;

    border:1px solid rgba(255,255,255,.08);

}

.product-description-card h2{

    color:#fff;

    margin-bottom:25px;

}

.description{

    color:#ddd;

    line-height:2;

    white-space:pre-wrap;

}

@media(max-width:991px){

.product-container{

grid-template-columns:1fr;

}

.product-info{

padding:25px;

}

.product-info h1{

font-size:30px;

}

.product-price{

font-size:30px;

}

.product-actions{

flex-direction:column;

}

}

/* =========================
   Product V3
========================= */

.product-page{
    max-width:1400px;
    margin:40px auto;
    padding:0 25px;
}

.product-hero{
    display:grid;
    grid-template-columns:55% 45%;
    gap:40px;
    align-items:start;
}

/* 左邊圖片 */

.product-gallery{
    background:#181818;
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}

.product-gallery img{

    width:100%;

    display:block;

    border-radius:18px;

    transition:.35s;

    cursor:zoom-in;
}

.product-gallery img:hover{

    transform:scale(1.03);
}



/* 右邊資訊 */

.product-summary{
    background:#181818;
    border-radius:20px;
    padding:30px;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}

.product-tag{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#232323;
    color:#ffcc55;
    padding:8px 16px;
    border-radius:50px;
    font-size:.9rem;
    margin-bottom:20px;
}

.product-title{
    font-size:2rem;
    color:white;
    margin-bottom:20px;
    line-height:1.4;
}

.product-price{
    font-size:2.2rem;
    color:#ffcc55;
    font-weight:bold;
    margin-bottom:25px;
}
.product-meta{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-bottom:30px;
}

.meta-item{
    background:#222;
    color:#ddd;
    padding:14px 18px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.05);
}

.meta-item.verified{
    color:#68ff91;
}

.meta-item.soldout{
    color:#ff7272;
}
.product-actions{
    display:flex;
    gap:15px;
}

.product-actions a,
.product-actions button{

    flex:1;

    text-align:center;

    text-decoration:none;

    padding:16px;

    border-radius:14px;

    font-size:1rem;

    font-weight:bold;

    transition:.25s;

    cursor:pointer;

    border:none;
}

.btn-cart{

    background:#2d2d2d;

    color:white;
}

.btn-cart:hover{

    background:#3b3b3b;
}

.btn-buy{

    background:#ffcc55;

    color:#111;
}

.btn-buy:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(255,204,85,.35);
}

.btn-disabled{

    background:#555;

    color:white;
}

.product-content{

    margin-top:35px;

    display:flex;

    flex-direction:column;

    gap:25px;
}

.product-card{

    background:#181818;

    border-radius:20px;

    padding:28px;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:0 12px 30px rgba(0,0,0,.25);
}

.product-card h2{

    margin-bottom:20px;

    color:#ffcc55;
}

.description{

    color:#ddd;

    line-height:2;

    white-space:pre-wrap;
}

.account-info{

    display:flex;

    flex-direction:column;

    gap:16px;
}

.info-row{

    display:flex;

    justify-content:space-between;

    padding:12px 0;

    border-bottom:1px solid rgba(255,255,255,.06);
}

.info-row:last-child{

    border:none;
}

.info-row span{

    color:#aaa;
}

.info-row strong{

    color:white;
}
.seller-box{

    display:flex;

    align-items:center;

    gap:20px;
}

.seller-avatar{

    width:70px;

    height:70px;

    border-radius:50%;

    background:#292929;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:32px;
}

.seller-info h3{

    color:white;

    margin-bottom:6px;
}

.seller-info p{

    color:#999;
}
@media (max-width:991px){

    .product-page{
    
        padding:15px;
    }
    
    .product-hero{
    
        display:flex;
    
        flex-direction:column;
    }
    
    .product-summary{
    
        padding:20px;
    }
    
    .product-title{
    
        font-size:1.5rem;
    }
    
    .product-price{
    
        font-size:1.8rem;
    }
    
    .product-actions{
    
        flex-direction:column;
    }
    
    .product-gallery{
    
        border-radius:16px;
    }
    
    .product-card{
    
        padding:20px;
    }
    
    }
    .btn-chat{
        flex:1;
        background:#2f6fed;
        color:#fff;
        text-decoration:none;
        text-align:center;
        padding:16px;
        border-radius:14px;
        font-weight:bold;
        transition:.25s;
    }
    
    .btn-chat:hover{
        transform:translateY(-3px);
    }

/* 商品圖片工具列 */

.gallery-toolbar{

    display:flex;

    gap:12px;

    margin-top:16px;
}

.gallery-btn{

    flex:1;

    padding:14px;

    border:none;

    border-radius:12px;

    background:#242424;

    color:#fff;

    cursor:pointer;

    font-weight:bold;

    transition:.25s;
}

.gallery-btn:hover{

    background:#353535;

    transform:translateY(-2px);
}
/* ========= 商品聊天室 ========= */

.chat-messages{
    margin-top:25px;
    height:500px;
    overflow-y:auto;
    padding:20px;
    background:#141414;
    border-radius:18px;
    border:1px solid #2a2a2a;
}

.chat-row{
    margin-bottom:18px;
}

.chat-row.me{
    text-align:right;
}

.chat-row.other{
    text-align:left;
}

.chat-name{
    color:#d4af37;
    font-size:13px;
    margin-bottom:5px;
}

.chat-bubble{
    display:inline-block;
    max-width:70%;
    padding:12px 18px;
    border-radius:18px;
    word-break:break-word;
}

.chat-bubble.me{
    background:#d4af37;
    color:#000;
}

.chat-bubble.other{
    background:#252525;
    color:#fff;
}

.chat-time{
    margin-top:8px;
    font-size:11px;
    opacity:.6;
}

.chat-input-box{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.chat-input-box input{
    flex:1;
    background:#1d1d1d;
    color:#fff;
    border:1px solid #333;
    border-radius:12px;
    padding:14px;
}

.chat-input-box button{
    width:70px;
    border:none;
    border-radius:12px;
    background:#d4af37;
    color:#000;
    font-weight:bold;
    cursor:pointer;
}

.chat-empty{
    text-align:center;
    color:#888;
    padding:80px 0;
}