/* =============================================
   BanTaiKhoan Theme - CSS gộp từ 3 file HTML
   ============================================= */

/* === CSS CHUNG BẮT BUỘC === */
body { background: url('../images/bg-down.jpg') top center no-repeat; background-size: cover; background-attachment: fixed; background-color: #0b1528; color: #333; font-family: Arial, sans-serif; font-size: 14px; }
a { text-decoration: none; }
.top-header { padding: 15px 0; }
.search-box { border-radius: 20px 0 0 20px; border: none; padding-left: 20px; }
.btn-search { border-radius: 0 20px 20px 0; background: #fff; color: #999; border: none; }
.user-actions a { color: #fff; margin-left: 15px; font-weight: bold; display: inline-block; }
/* Header user dropdown */
.hud { display: inline-block; position: relative; }
.hud-trigger { color: #fff !important; cursor: pointer; padding-bottom: 12px; }
.hud-menu {
    display: none; position: absolute; right: 0; top: 100%;
    background: #222; border-radius: 4px;
    min-width: 190px; padding: 4px 0; z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}
.hud:hover .hud-menu { display: block; }
.hud-menu a {
    display: block !important; padding: 8px 14px !important; margin: 0 !important;
    color: #ddd !important; font-size: 13px !important; font-weight: 600 !important;
    border-bottom: 1px solid #333;
}
.hud-menu a:last-child { border-bottom: none; }
.hud-menu a:hover { background: #333 !important; color: #fff !important; }
.hud-menu a i { width: 16px; text-align: center; margin-right: 6px; color: #999; }
.main-nav { background-color: #d11b1b; border-top: 1px solid #ff4d4d; border-bottom: 1px solid #ff4d4d; }

/* Desktop nav menu */
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block; padding: 12px 15px; color: #fff; font-weight: bold;
    text-transform: uppercase; font-size: 13px;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a { background-color: #a81212; color: #fff; }

/* Desktop sub-menu (wp native) */
.nav-menu > li > .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 999;
    list-style: none; margin: 0; padding: 0;
    background: #222; min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.nav-menu > li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a {
    display: block; padding: 9px 16px; color: #ccc;
    font-size: 13px; font-weight: 600; border-bottom: 1px solid #333;
}
.nav-menu .sub-menu li:last-child a { border-bottom: none; }
.nav-menu .sub-menu li a:hover { background: #333; color: #fff; }

/* Mobile toggle */
.nav-mobile-toggle {
    display: block; width: 100%; padding: 10px; border: none;
    background: none; color: #fff; font-weight: bold; font-size: 14px;
    text-align: left; cursor: pointer;
}

/* Mobile nav menu */
.nav-mobile { list-style: none; margin: 0; padding: 0; }
.nav-mobile li a {
    display: block; padding: 11px 16px; color: #ccc;
    font-weight: 600; font-size: 13px; text-transform: uppercase;
    border-bottom: 1px solid #333;
}
.nav-mobile li a:hover { color: #fff; background: #333; }
.nav-mobile .sub-menu { list-style: none; padding: 0; }
.nav-mobile .sub-menu li a {
    padding-left: 30px; font-size: 12px; text-transform: none; font-weight: 400;
}

/* === CSS MARQUEE === */
.marquee-container { width: 100%; overflow: hidden; position: relative; background: linear-gradient(90deg, #10102b 0%, #1f1a40 50%, #10102b 100%); border-bottom: 2px solid transparent; border-image: linear-gradient(to right, #00ffff, #ff00ff, #00ffff) 1; padding: 12px 0; white-space: nowrap; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.marquee-track { display: inline-block; }
.marquee-item { display: inline-block; margin-right: 50px; font-size: 15px; color: #e0e0e0; font-family: 'Segoe UI', Arial, sans-serif; }
.m-user { color: #00ffff; text-shadow: 0 0 8px rgba(0, 255, 255, 0.7); font-weight: 700; }
.m-price { color: #ff00ff; text-shadow: 0 0 8px rgba(255, 0, 255, 0.7); font-weight: 700; }
.marquee-animate { animation: marqueeScroll 20s linear infinite; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-container:hover .marquee-animate { animation-play-state: paused; }

/* === CSS TRANG CHỦ (TOP NẠP + SẢN PHẨM) === */
.top-nap-box { background: #fff; border-radius: 5px; padding: 15px; height: 100%; }
.top-nap-title { color: #d11b1b; font-weight: bold; font-size: 18px; margin-bottom: 15px; border-bottom: 2px solid #d11b1b; padding-bottom: 10px; }
.top-nap-tabs .btn { font-size: 12px; padding: 5px 10px; border-radius: 3px; }
.top-nap-tabs .btn-active { background: #d11b1b; color: #fff; }
.top-nap-tabs .btn-inactive { background: #f1f1f1; color: #333; }
.top-nap-list { list-style: none; padding: 0; margin-top: 15px; }
.top-nap-list li { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; font-weight: bold; }
.rank-circle { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; color: #fff; font-size: 11px; margin-right: 10px; }
.rank-1 { background: #ffd700; }
.rank-2 { background: #c0c0c0; }
.rank-3 { background: #cd7f32; }
.rank-other { background: #17a2b8; }
.amount-badge { background: #d11b1b; color: #fff; padding: 3px 8px; border-radius: 3px; font-size: 11px; }

.section-box { background: #f8f9fa; border-radius: 5px; padding: 15px; margin-bottom: 30px; border: 1px solid #ddd; }
.section-title { color: #d11b1b; font-weight: bold; text-transform: uppercase; font-size: 16px; border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-bottom: 15px; }
.product-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 5px; overflow: hidden; transition: 0.3s; margin-bottom: 20px; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); border-color: #d11b1b; }
.product-card img { width: 100%; height: auto; border-bottom: 2px solid #d11b1b; }
.product-info { padding: 10px; text-align: left; }
.product-title { font-weight: bold; font-size: 14px; margin-bottom: 5px; text-transform: uppercase; color: #333; }
.product-desc { font-size: 12px; color: #666; margin-bottom: 8px; }
.product-badge { display: inline-block; background: #d11b1b; color: #fff; font-size: 10px; padding: 4px 8px; border-radius: 3px; font-weight: bold; }
.price-current { color: #d11b1b; font-weight: bold; }
.dm-price del, .product-desc del, .detail-price-box del { color: #999; font-weight: normal; }

/* === CSS TRANG DANH MỤC (category) === */
.filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filter-btn { background: #fff; border: none; padding: 8px 15px; border-radius: 5px; font-weight: bold; color: #333; font-size: 14px; }
.filter-select { background: #fff; border: none; padding: 8px 15px; border-radius: 5px; font-size: 14px; color: #333; min-width: 200px; }
.dm-card { background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: 0.3s; }
.dm-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.dm-thumb { width: 100%; height: auto; border-bottom: 2px solid #f1f1f1; }
.dm-body { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; }
.dm-skin-tag { background: #198754; color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 15px; display: inline-block; font-weight: bold; margin-bottom: 12px; align-self: flex-start; }
.dm-id { font-size: 15px; font-weight: bold; color: #000; margin-bottom: 15px; }
.dm-price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.dm-price { color: #d11b1b; font-size: 16px; font-weight: bold; }
.dm-btn-detail { background: #8b0000; color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 4px; font-weight: bold; }
.dm-btn-detail:hover { background: #600000; color: #fff; }
.dm-stock { border: 1px dashed #d11b1b; color: #333; font-size: 12px; padding: 8px; border-radius: 4px; margin-bottom: 10px; }
.dm-zalo-note { background: #ffcc00; color: #333; font-size: 11px; font-weight: bold; padding: 10px; text-align: left; margin-top: auto; }

/* === CSS TRANG CHI TIẾT (detail) === */
.breadcrumb-custom { font-size: 13px; color: #ccc; margin-bottom: 20px; }
.breadcrumb-custom a { color: #fff; }
.breadcrumb-custom a:hover { color: #d11b1b; }
.detail-title { color: #ff4d4d; font-size: 24px; font-weight: bold; margin-bottom: 10px; }
.detail-meta { font-size: 14px; color: #fff; margin-bottom: 15px; border-bottom: 1px solid #444; padding-bottom: 15px; }
.detail-meta span { color: #ff4d4d; }
.detail-price-box { display: flex; align-items: center; margin-bottom: 20px; }
.detail-price { color: #ff4d4d; font-size: 28px; font-weight: bold; margin-right: 15px; }
.detail-discount { background: #d11b1b; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 14px; font-weight: bold; }
.action-box { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.qty-input-group { display: flex; width: 100px; background: #fff; border-radius: 4px; overflow: hidden; }
.qty-btn { background: #f1f1f1; border: none; width: 30px; font-weight: bold; color: #d11b1b; }
.qty-input { width: 40px; border: none; text-align: center; font-weight: bold; outline: none; }
.btn-buy-auto { background: #d11b1b; color: #fff; border: none; font-weight: bold; border-radius: 4px; padding: 10px 15px; flex-grow: 1; text-transform: uppercase; }
.btn-buy-auto:hover { background: #a81212; color: #fff; }
.btn-zalo-chat { background: #fff; color: #d11b1b; border: 1px solid #d11b1b; font-weight: bold; border-radius: 4px; padding: 10px 15px; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.btn-zalo-chat:hover { color: #d11b1b; }
.detail-stock { border: 2px dashed #d11b1b; background: #f9f9f9; color: #333; padding: 10px; font-weight: bold; border-radius: 4px; margin-bottom: 15px; }
.detail-tag { background: #198754; color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 15px; display: inline-block; margin-bottom: 15px; }
.detail-notice { background: #fff; color: #d11b1b; font-weight: bold; padding: 10px; border-radius: 4px; text-align: center; border: 1px solid #f1ca0f; margin-bottom: 20px; }
.warranty-list { color: #fff; font-size: 14px; line-height: 1.8; }
.warranty-list h6 { font-weight: bold; text-transform: uppercase; margin-bottom: 10px; }
.warranty-list i { color: #00ff00; margin-right: 8px; }
.sidebar-box { background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.sidebar-header-red { background: #d11b1b; color: #fff; padding: 12px 15px; font-weight: bold; font-size: 15px; }
.sidebar-header-black { background: #1a1a1a; color: #fff; padding: 12px 15px; font-weight: bold; font-size: 15px; }
.sidebar-body { padding: 15px; font-size: 13px; color: #333; line-height: 1.6; }
.text-bank { color: #0044cc; font-weight: bold; }
.text-danger-bold { color: #d11b1b; font-weight: bold; }
.support-item { display: flex; align-items: center; margin-bottom: 15px; border-bottom: 1px dashed #eee; padding-bottom: 10px; }
.support-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.support-icon { font-size: 24px; color: #666; margin-right: 15px; width: 30px; text-align: center; }
.support-title { font-weight: bold; font-size: 14px; margin-bottom: 2px; }
.support-desc { font-size: 12px; color: #777; }

/* === FOOTER === */
footer { background: #0b111e; color: #ccc; padding: 40px 0 20px; font-size: 13px; margin-top: 40px; border-top: 2px solid #d11b1b; }
footer h6 { color: #fff; font-weight: bold; margin-bottom: 15px; }
footer a { color: #ccc; }
footer a:hover { color: #fff; }
.footer-bottom { background: #070b14; padding: 15px 0; text-align: center; color: #777; font-size: 12px; margin-top: 30px; }

/* === AUTH PAGES (Login/Register/Account) === */
.auth-page { padding: 35px 0; }
.auth-box { max-width: 440px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 35px rgba(0,0,0,0.3); background: #fff; }
.auth-header { background: #1a1a1a; padding: 25px 24px; text-align: center; border-bottom: 3px solid #d11b1b; }
.auth-header h2 { color: #fff; font-size: 20px; font-weight: 800; margin: 0; }
.auth-header p { color: #ccc; font-size: 12.5px; margin: 6px 0 0; }
.auth-body { padding: 24px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 5px; color: #555; }
.auth-form .form-control { border: 1px solid #ddd; border-radius: 5px; padding: 9px 13px; font-size: 13px; }
.auth-form .form-control:focus { border-color: #d11b1b; box-shadow: 0 0 0 2px rgba(209,27,27,0.15); }
.auth-form .input-group-text { background: #f8f9fa; border-color: #ddd; color: #999; }
.btn-auth { width: 100%; padding: 10px; font-weight: 700; font-size: 14px; text-transform: uppercase; border-radius: 5px; border: none; cursor: pointer; }
.btn-login { background: #d11b1b; color: #fff; }
.btn-login:hover { background: #a81212; color: #fff; }
.btn-register { background: #d11b1b; color: #fff; }
.btn-register:hover { background: #a81212; color: #fff; }
.auth-links { text-align: center; margin-top: 16px; font-size: 12.5px; }
.auth-links a { color: #d11b1b; font-weight: 600; }
.auth-links a:hover { color: #a81212; }
.auth-message { padding: 9px 13px; border-radius: 5px; font-size: 12.5px; margin-bottom: 12px; display: none; }
.auth-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }
.auth-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }

/* Account page */
.account-page { padding: 25px 0; }
.account-box { max-width: 780px; margin: 0 auto; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 35px rgba(0,0,0,0.3); background: #fff; }
.account-header { background: #1a1a1a; padding: 22px 24px; display: flex; align-items: center; gap: 16px; border-bottom: 3px solid #d11b1b; }
.account-avatar { width: 60px; height: 60px; background: #d11b1b; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; flex-shrink: 0; }
.account-user-info h2 { color: #fff; font-size: 17px; margin: 0; font-weight: 700; }
.account-user-info p { color: #ccc; font-size: 12px; margin: 3px 0 0; }
.account-body { padding: 24px; }
.account-tabs .nav-tabs { border-bottom: 2px solid #eee; margin-bottom: 20px; }
.account-tabs .nav-link { color: #666; font-weight: 600; font-size: 13px; border: none; padding: 8px 16px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.account-tabs .nav-link:hover { color: #d11b1b; }
.account-tabs .nav-link.active { color: #d11b1b; border-bottom-color: #d11b1b; background: none; }
.account-info-table { width: 100%; }
.account-info-table tr td { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.account-info-table tr td:first-child { font-weight: 600; color: #555; width: 140px; }
