/**
 * Shop Linh thạch — giao diện Tự Bảo Các (nền + lưới).
 */
@font-face{font-family:'UVNButLong2';src:url('../img/UVN-But-Long-2.TTF') format('truetype');font-weight:400;font-style:normal}
.yan-tu-bao-shop {
    --tbao-gold: #e8c547;
    --tbao-gold-dim: #b8942e;
    --tbao-dark: #0d0d10;
    --tbao-card-bg: rgba(12, 10, 18, 0.5);
    --tbao-card-border: rgba(232, 197, 71, 0.35);
    margin: 0 auto 40px;
    color: #e8e4dc;
}

.yan-tbao-hero {
    text-align: center;
    padding: 28px 16px 20px;
    position: relative;
}

.yan-tbao-hero__title {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    background: linear-gradient(180deg, #fff6d4 0%, var(--tbao-gold) 45%, var(--tbao-gold-dim) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(232, 197, 71, 0.35);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.yan-tbao-hero__sub {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #9a9590;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.yan-tbao-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.yan-tbao-balance {
    display: flex;
    align-items: center;
    margin: 10px auto;
    padding: 8px 15px;
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    border-left: 4px solid #4caf50;
    border-radius: 6px;
    text-align: center;
    line-height: 1;
}

.yan-tbao-balance strong {
    color: #a5d6a7;
}

.yan-tbao-balance .yan-lt-balance {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.yan-tbao-stage {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 520px;
}
.yan-tbao-stage {
    background-size: cover;
    background-repeat: no-repeat;
}
.yan-tbao-stage__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.yan-tbao-stage__inner {
    position: relative;
    z-index: 1;
    padding: 20px 16px 28px;
}

/* Grid */
.yan-tbao-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .yan-tbao-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .yan-tbao-grid {
        grid-template-columns: 1fr;
    }
}

.yan-tbao-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px 14px;
    border-radius: 14px;
    background: var(--tbao-card-bg);
    border: 1px solid var(--tbao-card-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.yan-tbao-card:hover {
    border-color: rgba(232, 197, 71, 0.65);
    box-shadow: 0 0 28px rgba(232, 197, 71, 0.18);
    transform: translateY(-3px);
}

.yan-tbao-card__img-wrap {
    width: 100%;
    max-width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 12px rgba(180, 140, 255, 0.35));
}

.yan-tbao-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.yan-tbao-card__placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(40, 35, 55, 0.9));
    border: 1px solid rgba(232, 197, 71, 0.3);
}

.yan-tbao-card__title {
    background: url(../img/color-text.webp);
    background-size: auto;
    color: transparent;
    -webkit-background-clip: text;
    background-position: center;
    font-weight: 800;
    font-family: 'UVNButLong2', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.yan-tbao-card__price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-style: italic;
    margin-bottom: 5px;
    margin-top: 5px;
}

.yan-tbao-card__price .yan-tbao-heart {
    color: #ff6b8a;
    font-size: 1.3rem;
}

.yan-tbao-card__stock {
    color: aqua;
    margin-bottom: 3px;
}
.gem-icon{
    background: url("data:image/svg+xml,%3Csvg fill='%23ffffff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M168.5 72L256 165l87.5-93-175 0zM383.9 99.1L311.5 176l129 0L383.9 99.1zm50 124.9L256 224 78.1 224 256 420.3 433.9 224zM71.5 176l129 0L128.1 99.1 71.5 176zm434.3 40.1l-232 256c-4.5 5-11 7.9-17.8 7.9s-13.2-2.9-17.8-7.9l-232-256c-7.7-8.5-8.3-21.2-1.5-30.4l112-152c4.5-6.1 11.7-9.8 19.3-9.8l240 0c7.6 0 14.8 3.6 19.3 9.8l112 152c6.8 9.2 6.1 21.9-1.5 30.4z'/%3E%3C/svg%3E") center center no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    margin-right: 3px;
}
.yan-tbao-btn-buy {
    width: 100%;
    max-width: 160px;
    margin-top: auto;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    letter-spacing: 0.04em;
    background: linear-gradient(to right,#fb0,#e43603,#ff6290,#ff5000);
    box-shadow: 0 4px 16px rgba(216, 67, 21, 0.45);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.yan-tbao-btn-buy:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.yan-tbao-btn-buy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.yan-tbao-status {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.yan-tbao-status--bought {
    color: #81c784;
}

.yan-tbao-status--soldout {
    color: #ef9a9a;
}

.yan-tbao-loading,
.yan-tbao-empty,
.yan-tbao-login-msg {
    text-align: center;
    padding: 48px 20px;
    font-size: 1rem;
    color: #c8c2ba;
}

.yan-tbao-login-msg a {
    color: var(--tbao-gold);
}

/* Ẩn section-bar mặc định khi dùng hero shop */
.yan-tu-bao-shop-wrap .section-bar {
    display: none;
}
