﻿/* ===== Shop: chế độ TABLE trong khung cuộn ===== */

.shop-wrap.tab  le-mode {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 720px;
    
    background-size: auto 100%;
    padding: 0 0 64px; /* bỏ padding ngang ở lớp ngoài để không “tràn” qua mép */
    overflow: hidden;
}
/* KHUNG TRONG: canh giữa, giữ bảng nằm trong nội dung cuộn */
.paper-inner {
    width: 100%; /* <== điều khiển bề rộng nội dung trong lòng giấy */
    max-width: 1200px; /* bạn có thể tăng/giảm 900–980 tùy ảnh cuộn */
    margin: 0 auto;
    padding: 85px; /* an toàn mép trái/phải */
    box-sizing: border-box;
}
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 12px 18px 12px;
}

    .shop-header .label {
        font-size: 13px;
        color: #e8d1a2;
        letter-spacing: .5px;
        margin-right: 8px;
    }

    .shop-header .value {
        font-weight: 800;
        color: #ffe08a;
    }

    .shop-header .balance {
        background: rgba(0,0,0,.35);
        border: 1px solid rgba(238,203,124,.25);
        padding: 8px 12px;
        border-radius: 8px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    }

    .shop-header .categories {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

.cat-pill {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 14px;
    color: #e9d9bb;
    border: 1px solid rgba(238,203,124,.25);
    background: rgba(0,0,0,.25);
    text-decoration: none;
}

    .cat-pill.active,
    .cat-pill:hover {
        color: #2f1a00;
        background: linear-gradient(#ffd468,#e7a71f);
        border-color: #e5b75c;
    }

/* ===== Bảng trong suốt, đường kẻ mảnh màu vàng cổ ===== */
.shop-body {
    overflow-x: auto;
}

.shop-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

    .shop-table thead th {
        font-weight: 800;
        color: #f0d9a8;
        text-align: left;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(238,203,124,.35);
        text-transform: uppercase;
        letter-spacing: .5px;
        background: rgba(0,0,0,.25);
    }

    .shop-table tbody td {
        padding: 12px 12px;
        border-bottom: 1px dashed rgba(238,203,124,.22);
        color: #e6dcc8;
        vertical-align: middle;
        background: transparent;
    }

    .shop-table tbody tr:hover td {
        background: rgba(0,0,0,.15);
    }

/* Icon khung 64x64 – hỗ trợ GIF mặc định */
/* Icon khung 70x70 – hỗ trợ animation giống Lucky */
.cell-icon .icon-frame {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(238,203,124,.35);
    border-radius: 10px;
    background: rgba(0,0,0,.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    animation: pulseGlow 2.8s infinite ease-in-out;
    transition: transform 0.3s ease;
}

    .cell-icon .icon-frame:hover {
        transform: scale(1.15) rotate(5deg);
    }

/* Animation glow giống Lucky */
@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(255, 215, 100, 0.5), inset 0 1px 0 rgba(255,255,255,.06);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 14px rgba(255, 223, 150, 0.9), inset 0 1px 0 rgba(255,255,255,.06);
    }
}


.cell-name .name {
    font-weight: 700;
    color: #ffe5a0;
}

.cell-name .stock {
    font-size: 12px;
    color: #d7c19b;
}

    .cell-name .stock.out {
        color: #b97e7e;
    }

.cell-desc {
    color: #d8ccb9;
    line-height: 1.35;
}

.cell-price .price {
    font-weight: 800;
    color: #ffd56a;
}

.cell-price .dp {
    color: #e8d1a2;
    margin-left: 2px;
    font-weight: 700;
}

/* Nút mua kiểu kiếm hiệp */
.btn-wuxia {
    /*    appearance: none;*/
    border: 0;
    cursor: pointer;
    padding: 6px 14px; /* thu nhỏ mặc định */
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    color: #2c1a00;
    background: linear-gradient(#ffd468,#e7a61d);
    box-shadow: 0 3px 0 #a06a0b, 0 6px 12px rgba(0,0,0,.25);
    transition: transform .08s ease, box-shadow .12s ease, filter .12s ease;
    /*padding: 6px 14px;*/ /* thu nhỏ padding */
    /*font-size: 14px;*/ /* nhỏ font hơn */
    /*border-radius: 6px;*/ /* bo góc vừa phải */
    /*transition: all 0.2s;*/
}

    .btn-wuxia:hover {
        filter: saturate(1.15);
    }

    .btn-wuxia:active {
        transform: translateY(1px);
        box-shadow: 0 2px 0 #a06a0b, 0 4px 8px rgba(0,0,0,.25);
    }

    .btn-wuxia:disabled {
        opacity: .7;
        cursor: not-allowed;
        filter: grayscale(30%);
        box-shadow: none;
        padding: 4px 10px; /* nhỏ hơn so với nút thường */
        font-size: 12px; /* giảm font-size */
        line-height: 1.2; /* giảm chiều cao chữ */
    }

/* canh phải */
.text-end {
    text-align: right;
}

.category-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(#f8c451, #d09b22);
    border: 1px solid #c6881c;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    outline: none;
    transition: .15s ease;
}
    .category-select:hover {
        background: linear-gradient(#ffd777, #e0ad36);
    }

    .category-select:focus {
        box-shadow: 0 0 0 3px rgba(255,210,90,.3);
    }
\\tìm kiếm vật phẩm
.search-box {
    margin-left: 20px;
}

.search-box input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(238,203,124,.25);
    background: rgba(0,0,0,.25);
    color: #ffe5a0;
    font-size: 14px;
    outline: none;
}

    .search-box input::placeholder {
        color: #c5b18b;
    }
