/* === FONT: normal system/standard === */
#part_center,
#chitiet_tintuc,
.shop-grid,
.shop-filters,
.shop-item,
.shop-info,
.item-name,
.item-desc,
.item-price,
.buy-btn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #ffdc7a !important;
}

/* === TOP SECTION: centered and balanced === */
.shop-page-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.shop-top-balanced {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.shop-balance-row {
    max-width: 500px;
    margin: 0 auto 20px;
}

/* === FILTER MENU === */
.shop-filters {
    margin-bottom: 25px;
    text-align: center;
}
.filter-btn {
    background: none;
    border: none;
    color: #dcb45a !important;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 10px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.filter-btn:hover,
.filter-btn.active {
    color: #fff7b0 !important;
    border-bottom: 2px solid #ffcf6b;
    transform: translateY(-1px);
}
.filter-btn:active {
    transform: translateY(0) scale(0.97);
}

/* === GRID: 3 boxes per row, same width as top === */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 10px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
    justify-items: stretch;
    box-sizing: border-box;
}

/* === ITEM: fixed height so all rows align === */
.shop-item {
    position: relative;
    background: linear-gradient(145deg, #181818, #292929);
    border-radius: 6px;
    border: 2px solid #b48a2c;
    padding: 10px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    height: 100px;
    min-height: 100px;
    transition: all 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
}
.shop-item:hover {
    transform: scale(1.01);
    box-shadow: 0 0 12px #ffcc66;
}
.shop-item:active {
    transform: scale(0.98);
    box-shadow: 0 0 6px #ffcc66;
}

/* === VIỀN VÀNG SÁNG === */
.shop-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    padding: 2px;
    background: linear-gradient(
        120deg,
        rgba(255, 230, 150, 0.25),
        rgba(255, 200, 50, 0.7),
        rgba(255, 255, 180, 0.25)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: glowborder 3s linear infinite;
    pointer-events: none;
}
@keyframes glowborder {
    0% { opacity: 0.3; filter: blur(2px); }
    50% { opacity: 1; filter: blur(4px); }
    100% { opacity: 0.3; filter: blur(2px); }
}

/* === ICON: fixed size === */
.shop-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}
.shop-img img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 2px solid #ffcc66;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 220, 80, 0.5);
    transition: 0.3s;
}
.shop-img img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(255, 230, 120, 0.8);
}

/* === TEXT: clamp so all rows same height === */
.shop-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
.item-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffdb6e !important;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-desc {
    font-size: 11px;
    color: #b8b8b8;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-price {
    font-size: 12px;
    font-weight: bold;
    color: #ffe08a;
}

/* === BUTTON === */
.buy-btn {
    flex-shrink: 0;
    align-self: flex-start;
    background-color: #b38b2f;
    color: #fff;
    border: 1px solid #d4aa4f;
    border-radius: 3px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}
.buy-btn:hover {
    background-color: #ffcc66;
    color: #000;
    box-shadow: 0 0 10px #ffcc66;
    transform: translateY(-1px);
}
.buy-btn:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 0 6px #ffcc66;
}

@media (max-width: 992px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .shop-grid { grid-template-columns: 1fr; }
}

.shop-page-wrap .PageArea {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
