/* css/thuonghoi.css - Phong cách Tu tiên Huyền ảo */

/* --- Keyframes cho các hiệu ứng động --- */
@keyframes mystical-glow {
    0% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.4), 0 0 12px rgba(228, 143, 69, 0.3); }
    50% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.7), 0 0 24px rgba(228, 143, 69, 0.5); }
    100% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.4), 0 0 12px rgba(228, 143, 69, 0.3); }
}

@keyframes text-shimmer {
    0% { text-shadow: 0 0 5px rgba(255, 223, 158, 0.7); }
    50% { text-shadow: 0 0 15px rgba(255, 223, 158, 1); }
    100% { text-shadow: 0 0 5px rgba(255, 223, 158, 0.7); }
}

/* --- Panel Chính --- */
.th-fullscreen-panel {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #1a1a1d;
    background-image: linear-gradient(rgba(26, 26, 29, 0.9), rgba(26, 26, 29, 0.9)), url('/assets/chua.jpg');
    background-size: cover; background-position: center;
    z-index: 200; display: flex; flex-direction: column;
}

.th-header {
    display: flex; align-items: center; padding: 10px 20px;
    background: rgba(10, 10, 10, 0.5);
    border-bottom: 1px solid #8a6d3b;
    flex-shrink: 0;
}

.th-main-title {
    margin: 0; flex-grow: 1; text-align: center;
    color: #E4C59E; /* Màu vàng đồng */
    font-size: 1.8em;
    font-family: 'Cinzel', serif; /* Font nghệ thuật */
    animation: text-shimmer 3s infinite ease-in-out;
}

/* --- Bố cục nội dung --- */
.th-content-wrapper { display: flex; flex-grow: 1; gap: 20px; padding: 20px; overflow: hidden; }
.th-item-list { flex: 0 0 45%; background: rgba(0, 0, 0, 0.3); border: 1px solid #4a3a2a; border-radius: 8px; padding: 10px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; align-content: start; }
.th-item-details { flex: 1; background: rgba(0, 0, 0, 0.3); border: 1px solid #4a3a2a; border-radius: 8px; padding: 25px; overflow-y: auto; }

/* --- Mỗi vật phẩm trong danh sách --- */
.th-item-list .vtc-mount-item { /* Tái sử dụng class để không cần sửa JS nhiều */
    background: linear-gradient(145deg, #2a2a2e, #1f1f23);
    border: 1px solid #5a4a3a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.th-item-list .vtc-mount-item:hover { background: linear-gradient(145deg, #3c3c41, #2a2a2e); border-color: #E4C59E; transform: translateY(-4px) scale(1.02); }
.th-item-list .vtc-mount-item.active { border-color: #ffd700; animation: mystical-glow 2s infinite; }
.th-item-list .vtc-mount-item img { border: 1px solid #666; }
.th-item-list .vtc-mount-item h5 { color: #E4C59E; }
.th-item-list .vtc-price-tag { color: #ffd700; }
.th-item-list .vtc-price-tag.tien-ngoc { color: #9dffad; }

/* --- Chi tiết vật phẩm --- */
.th-details-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; color: #666; text-align: center; }
.th-details-placeholder i { font-size: 5em; color: #E48F45; opacity: 0.3; }
.th-details-placeholder p { font-size: 1.3em; margin-top: 20px; }
.th-details-header { text-align: center; margin-bottom: 20px; border-bottom: 1px solid #5a4a3a; padding-bottom: 15px; }
#th-details-name { font-size: 2em; color: #E4C59E; margin: 0 0 10px 0; }
.th-details-body { text-align: center; }
#th-details-img { max-width: 180px; max-height: 180px; object-fit: contain; border-radius: 8px; border: 2px solid #6a5a4a; margin-bottom: 15px; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.th-description { color: #b0b0b0; font-style: italic; margin: 15px 0; max-width: 80%; margin-left: auto; margin-right: auto; }
.th-details-body h4 { color: #E4C59E; display: flex; align-items: center; justify-content: center; gap: 15px; margin: 25px 0 15px 0; }
.th-details-body h4 .decorator { height: 1px; flex-grow: 1; background: linear-gradient(to right, transparent, #8a6d3b, transparent); }
#th-details-attributes { list-style: none; padding: 0; margin: 0 0 25px 0; text-align: left; display: inline-block; }
#th-details-attributes li { background: rgba(10, 10, 10, 0.4); padding: 10px 15px; border-radius: 4px; margin-bottom: 6px; font-size: 1em; color: #ccc; border-left: 3px solid #E48F45; }
#th-details-attributes li b { color: #9dffad; font-weight: bold; }
#th-details-price { font-size: 1.2em; font-weight: bold; margin-bottom: 20px; }
.th-buy-button { width: 100%; max-width: 320px; padding: 15px; background: linear-gradient(145deg, #a57c5a, #8a6d3b); border: 1px solid #E4C59E; border-radius: 6px; color: white; font-size: 1.3em; cursor: pointer; transition: all 0.3s; box-shadow: 0 3px 8px rgba(0,0,0,0.6); }
.th-buy-button:hover { background: linear-gradient(145deg, #b58c6a, #9a7d4b); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(228, 197, 158, 0.3); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .th-content-wrapper { flex-direction: column; }
    .th-item-list { flex: 0 0 280px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}