/* ================================================
   TechReview VN — site.css
   Font: Be Vietnam Pro (Vietnamese-optimized)
   Color: #E8380D accent, #111 near-black, #F6F5F2 warm bg
   ================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F6F5F2;
    color: #111;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ================================================ NAVBAR ================================================ */
.trv-navbar { position: sticky; top: 0; z-index: 1000; background: #111; }
.trv-navbar-inner {
    max-width: 1260px; margin: 0 auto; padding: 0 24px;
    height: 52px; display: flex; align-items: center; gap: 28px;
}
.trv-logo { font-size: 16px; font-weight: 800; flex-shrink: 0; letter-spacing: -0.3px; }
.trv-logo-tech { color: #fff; }
.trv-logo-review { color: #E8380D; }
.trv-nav-links { display: flex; list-style: none; gap: 0; margin: 0; padding: 0; }
.trv-nav-link { padding: 6px 13px; font-size: 13.5px; font-weight: 500; color: #888; transition: color .15s; white-space: nowrap; }
.trv-nav-link:hover, .trv-nav-link.active { color: #fff; }
.trv-search-wrap { flex: 1; max-width: 280px; }
.trv-search-form {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; overflow: hidden; transition: border-color .2s, background .2s;
}
.trv-search-form:focus-within { border-color: #E8380D; background: rgba(255,255,255,0.1); }
.trv-search-input { flex: 1; border: none; background: transparent; padding: 7px 12px; font-size: 13px; font-family: inherit; color: #fff; outline: none; }
.trv-search-input::placeholder { color: #555; }
.trv-search-btn { background: transparent; border: none; padding: 7px 10px; color: #555; cursor: pointer; transition: color .15s; display: flex; align-items: center; }
.trv-search-btn:hover { color: #E8380D; }
.trv-auth-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.trv-btn-login { padding: 6px 14px; font-size: 13px; font-weight: 500; color: #999; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; transition: all .15s; white-space: nowrap; font-family: inherit; }
.trv-btn-login:hover { color: #fff; border-color: rgba(255,255,255,0.35); }
.trv-btn-register { padding: 6px 14px; font-size: 13px; font-weight: 600; background: #E8380D; color: #fff; border: 1px solid #E8380D; border-radius: 6px; transition: all .15s; white-space: nowrap; font-family: inherit; }
.trv-btn-register:hover { background: #c72f0a; border-color: #c72f0a; color: #fff; }
.trv-avatar-btn { background: none; border: none; padding: 0; cursor: pointer; }
.trv-avatar-btn::after { display: none; }
.trv-avatar-circle { width: 32px; height: 32px; border-radius: 50%; background: #E8380D; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.trv-dropdown { border: 1px solid #222; border-radius: 8px; background: #1a1a1a; box-shadow: 0 12px 32px rgba(0,0,0,0.3); padding: 6px; min-width: 180px; }
.trv-dropdown .dropdown-item { border-radius: 6px; font-size: 13.5px; padding: 8px 12px; color: #ccc; font-family: inherit; transition: background .15s, color .15s; }
.trv-dropdown .dropdown-item:hover { background: #2a2a2a; color: #fff; }
.trv-dropdown .dropdown-divider { border-color: #2a2a2a; }
.trv-hamburger { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 5px; padding: 4px; }
.trv-hamburger span { display: block; width: 20px; height: 1.5px; background: #999; border-radius: 2px; transition: all .25s; }
.trv-mobile-menu { display: none; background: #111; border-bottom: 1px solid #1e1e1e; padding: 12px 24px; }
.trv-mobile-menu.open { display: block; }
.trv-mobile-menu ul { list-style: none; padding: 0; }
.trv-mobile-menu li a { display: block; padding: 11px 0; font-size: 14px; font-weight: 500; color: #999; border-bottom: 1px solid #1a1a1a; }
.trv-mobile-menu li a:hover { color: #fff; }
.trv-mobile-logout { background: none; border: none; padding: 11px 0; font-size: 14px; font-weight: 500; color: #E8380D; cursor: pointer; font-family: inherit; display: block; }

/* ================================================ HERO ================================================ */
.trv-hero { background: #fff; border-bottom: 1px solid #E5E3DE; padding: 0 24px; overflow: hidden; }
.trv-hero-inner {
    max-width: 1260px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 310px;
    gap: 0; align-items: stretch; min-height: 350px;
}
.trv-hero-left {
    padding: 52px 44px 52px 0; border-right: 1px solid #E5E3DE;
    display: flex; flex-direction: column; justify-content: center;
}
.trv-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: #E8380D; margin-bottom: 16px;
}
.trv-hero-badge::before { content: ''; width: 20px; height: 2px; background: #E8380D; display: inline-block; }
.trv-hero h1 {
    font-size: 36px; font-weight: 800; line-height: 1.2;
    color: #111; letter-spacing: -0.5px; margin-bottom: 12px;
}
.trv-hero h1 em { font-style: italic; color: #E8380D; }
.trv-hero p { font-size: 15px; color: #666; margin-bottom: 30px; max-width: 420px; line-height: 1.7; }
.trv-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.trv-hero-stats { display: flex; gap: 0; border-top: 1px solid #E5E3DE; padding-top: 22px; }
.trv-hero-stat { padding-right: 28px; margin-right: 28px; border-right: 1px solid #E5E3DE; }
.trv-hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.trv-stat-num { font-size: 28px; font-weight: 800; color: #111; line-height: 1; }
.trv-stat-label { font-size: 12px; color: #999; margin-top: 3px; }
.trv-hero-right { padding: 28px 24px; display: flex; flex-direction: column; justify-content: center; background: #FAFAF8; }
.trv-hero-card { background: transparent; border: none; border-radius: 0; padding: 0; text-align: left; }
.trv-badge-hot { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #E8380D; letter-spacing: 1.2px; margin-bottom: 14px; }
.trv-hero-card-img { width: 72px; height: 72px; background: #F0EFEB; border-radius: 12px; margin: 0 0 14px; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.trv-hero-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #111; line-height: 1.3; }
.trv-stars { color: #E8380D; font-size: 12px; letter-spacing: 1.5px; margin-bottom: 4px; }
.trv-rating-count { font-size: 12.5px; color: #999; margin-bottom: 22px; }

/* ================================================ BUTTONS ================================================ */
.trv-btn-dark { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; background: #111; color: #fff; border: 1.5px solid #111; border-radius: 7px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; }
.trv-btn-dark:hover { background: #222; color: #fff; }
.trv-btn-block { width: 100%; justify-content: center; }
.trv-btn-outline { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: transparent; color: #111; border: 1.5px solid #D5D3CE; border-radius: 7px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; }
.trv-btn-outline:hover { border-color: #999; color: #111; }
.trv-btn-blue { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: #E8380D; color: #fff; border: 1.5px solid #E8380D; border-radius: 7px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; }
.trv-btn-blue:hover { background: #c72f0a; color: #fff; }
.trv-btn-sm { padding: 7px 14px; font-size: 12.5px; }

/* ================================================ PAGE HEADER ================================================ */
.trv-page-header {
    background: #fff; border-bottom: 1px solid #E5E3DE;
    padding: 28px 24px;
}
.trv-page-header-inner { max-width: 1260px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trv-page-header h1 { font-size: 22px; font-weight: 800; color: #111; letter-spacing: -0.4px; line-height: 1.2; }
.trv-page-header p { font-size: 13.5px; color: #888; margin-top: 4px; }

/* ================================================ SECTIONS ================================================ */
.trv-section { padding: 40px 24px; }
.trv-section-white { background: #fff; border-bottom: 1px solid #E5E3DE; }
.trv-section-inner { max-width: 1260px; margin: 0 auto; }
.trv-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.trv-section-title { font-size: 16px; font-weight: 700; color: #111; letter-spacing: -0.2px; display: flex; align-items: center; gap: 9px; }
.trv-section-title::before { content: ''; width: 3px; height: 16px; background: #E8380D; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.trv-section-more { font-size: 13px; color: #888; font-weight: 500; transition: color .15s; }
.trv-section-more:hover { color: #111; }

/* ================================================ PRODUCT CARDS ================================================ */
.trv-product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 1px; background: #E5E3DE; border: 1px solid #E5E3DE;
    border-radius: 10px; overflow: hidden;
}
.trv-product-card { background: #fff; padding: 20px 16px; cursor: pointer; transition: background .15s; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.trv-product-card:hover { background: #FAFAF8; color: inherit; }
.trv-product-img { width: 60px; height: 60px; background: #F6F5F2; border-radius: 10px; margin: 0 0 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.trv-product-brand { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #E8380D; }
.trv-product-name { font-size: 13.5px; font-weight: 700; color: #111; line-height: 1.35; }
.trv-product-cat { font-size: 12px; color: #aaa; }
.trv-score-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.trv-score-badge { font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 4px; background: #111; color: #fff; flex-shrink: 0; letter-spacing: 0.2px; }
.trv-score-bar-wrap { flex: 1; height: 3px; background: #EDECEA; border-radius: 2px; overflow: hidden; }
.trv-score-bar-fill { height: 100%; background: #E8380D; border-radius: 2px; }
.trv-review-count { font-size: 11.5px; color: #bbb; margin-top: 2px; }

/* ================================================ TOPLIST ================================================ */
.trv-toplist { display: flex; flex-direction: column; gap: 0; border: 1px solid #E5E3DE; border-radius: 10px; overflow: hidden; background: #fff; }
.trv-top-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border-bottom: 1px solid #F0EFEB;
    cursor: pointer; transition: background .15s; text-decoration: none; color: inherit;
}
.trv-top-item:last-child { border-bottom: none; }
.trv-top-item:hover { background: #FAFAF8; color: inherit; }
.trv-top-rank {
    width: 32px; flex-shrink: 0; text-align: center;
    font-size: 17px; font-weight: 800; color: #D5D3CE; line-height: 1;
}
.trv-top-rank.gold   { color: #D4A017; }
.trv-top-rank.silver { color: #9BA3AF; }
.trv-top-rank.bronze { color: #B87333; }
.trv-top-thumb { width: 46px; height: 46px; flex-shrink: 0; background: #F6F5F2; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid #EDECEA; }
.trv-top-body { flex: 1; min-width: 0; }
.trv-top-brand { font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: #E8380D; margin-bottom: 2px; }
.trv-top-name { font-size: 14px; font-weight: 700; color: #111; line-height: 1.3; }
.trv-top-meta { font-size: 12px; color: #aaa; margin-top: 2px; }
.trv-top-right { flex-shrink: 0; text-align: right; }
.trv-top-score { font-size: 20px; font-weight: 800; color: #111; line-height: 1; }
.trv-top-score-label { font-size: 11px; color: #bbb; margin-top: 1px; }

/* Category filter tabs */
.trv-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.trv-filter-tab {
    padding: 6px 14px; border: 1.5px solid #D5D3CE; border-radius: 20px;
    font-size: 13px; font-weight: 500; color: #666; background: #fff;
    cursor: pointer; transition: all .15s; font-family: inherit; text-decoration: none; display: inline-block;
}
.trv-filter-tab:hover { border-color: #999; color: #111; }
.trv-filter-tab.active { background: #111; color: #fff; border-color: #111; }

/* ================================================ REVIEW LIST ================================================ */
.trv-review-list { display: flex; flex-direction: column; border: 1px solid #E5E3DE; border-radius: 10px; overflow: hidden; background: #fff; }
.trv-review-item { background: #fff; padding: 18px 20px; cursor: pointer; transition: background .15s; display: flex; gap: 14px; align-items: flex-start; border-bottom: 1px solid #F0EFEB; text-decoration: none; color: inherit; }
.trv-review-item:last-child { border-bottom: none; }
.trv-review-item:hover { background: #FAFAF8; color: inherit; }
.trv-review-thumb { width: 42px; height: 42px; flex-shrink: 0; background: #F6F5F2; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 21px; border: 1px solid #EDECEA; }
.trv-review-body { flex: 1; min-width: 0; }
.trv-review-meta { font-size: 11.5px; color: #aaa; margin-bottom: 4px; }
.trv-review-meta b { color: #333; font-weight: 600; }
.trv-review-title { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 4px; line-height: 1.4; }
.trv-review-excerpt { font-size: 13px; color: #777; line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trv-review-score { flex-shrink: 0; font-size: 15px; font-weight: 800; color: #fff; background: #111; border-radius: 6px; padding: 4px 10px; white-space: nowrap; align-self: flex-start; }

/* ================================================ FORM ================================================ */
.trv-form-group { margin-bottom: 18px; }
.trv-label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.trv-input { width: 100%; padding: 10px 14px; border: 1.5px solid #D5D3CE; border-radius: 7px; font-size: 14px; font-family: inherit; color: #111; background: #fff; outline: none; transition: border-color .2s; }
.trv-input:focus { border-color: #111; }
.trv-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #D5D3CE; border-radius: 7px; font-size: 14px; font-family: inherit; color: #111; background: #fff; resize: vertical; min-height: 120px; outline: none; transition: border-color .2s; }
.trv-textarea:focus { border-color: #111; }
.trv-score-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.trv-score-pick { width: 40px; height: 40px; border: 1.5px solid #D5D3CE; border-radius: 7px; background: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; color: #666; transition: all .15s; font-family: inherit; }
.trv-score-pick:hover, .trv-score-pick.active { border-color: #E8380D; background: #E8380D; color: #fff; }

/* ================================================ CARD ================================================ */
.trv-card { background: #fff; border: 1px solid #E5E3DE; border-radius: 10px; padding: 20px; margin-bottom: 14px; }
.trv-card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #F0EFEB; }
.trv-price-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #F0EFEB; }
.trv-price-row:last-child { border-bottom: none; }
.trv-price-shop { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.trv-price-dot { width: 6px; height: 6px; border-radius: 50%; background: #E8380D; }
.trv-price-dot.old { background: #ccc; }
.trv-price-amount { font-size: 15px; font-weight: 800; color: #111; }
.trv-price-time { font-size: 11px; color: #ccc; }
.trv-cheapest-tag { font-size: 10px; font-weight: 700; background: #E8380D; color: #fff; border-radius: 4px; padding: 2px 6px; }

/* ================================================ BADGE ================================================ */
.trv-badge { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 11.5px; font-weight: 600; }
.trv-badge-blue  { background: #FEECEA; color: #E8380D; }
.trv-badge-green { background: #E6F9EE; color: #1a8a4a; }
.trv-badge-gray  { background: #F0EFEB; color: #666; }

/* ================================================ PAGINATION ================================================ */
.trv-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 36px; }
.trv-page-btn { padding: 7px 13px; border: 1.5px solid #D5D3CE; border-radius: 6px; font-size: 13px; font-weight: 600; color: #555; background: #fff; cursor: pointer; transition: all .15s; font-family: inherit; }
.trv-page-btn:hover { border-color: #999; color: #111; }
.trv-page-btn.active { background: #111; color: #fff; border-color: #111; }

/* ================================================ FOOTER ================================================ */
.trv-footer { background: #111; color: #fff; margin-top: 72px; }
.trv-footer-inner { max-width: 1260px; margin: 0 auto; padding: 44px 24px 32px; display: grid; grid-template-columns: 1fr auto; gap: 64px; border-bottom: 1px solid #1e1e1e; }
.trv-footer-brand .trv-logo-tech { color: #fff; font-size: 16px; font-weight: 800; }
.trv-footer-brand .trv-logo-review { color: #E8380D; font-size: 16px; font-weight: 800; }
.trv-footer-brand p { font-size: 13px; color: #555; margin-top: 10px; max-width: 260px; line-height: 1.65; }
.trv-footer-links { display: flex; gap: 52px; }
.trv-footer-links div { display: flex; flex-direction: column; gap: 10px; }
.trv-footer-links h6 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #444; margin-bottom: 2px; }
.trv-footer-links a { font-size: 13.5px; color: #666; transition: color .15s; }
.trv-footer-links a:hover { color: #fff; }
.trv-footer-bottom { max-width: 1260px; margin: 0 auto; padding: 16px 24px; }
.trv-footer-bottom p { font-size: 12px; color: #444; }

/* ================================================ BOOTSTRAP OVERRIDES ================================================ */
.btn:focus, .form-control:focus, .form-check-input:focus { box-shadow: 0 0 0 3px rgba(232,56,13,0.15); }

/* ================================================ EMPTY STATE ================================================ */
.trv-empty { text-align: center; padding: 64px 24px; color: #aaa; }
.trv-empty-icon { font-size: 48px; margin-bottom: 16px; }
.trv-empty h3 { font-size: 16px; font-weight: 700; color: #555; margin-bottom: 8px; }
.trv-empty p { font-size: 14px; }

/* ================================================ RESPONSIVE ================================================ */
@media (max-width: 1024px) {
    .trv-nav-links, .trv-search-wrap, .trv-btn-login, .trv-btn-register { display: none; }
    .trv-hero-inner { grid-template-columns: 1fr; }
    .trv-hero-left { padding: 36px 0 28px; border-right: none; border-bottom: 1px solid #E5E3DE; }
    .trv-hero-right { padding: 24px 0; background: transparent; }
    .trv-hero h1 { font-size: 28px; }
    .trv-footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .trv-footer-links { flex-wrap: wrap; gap: 28px; }
}
@media (max-width: 600px) {
    .trv-hero { padding: 0 16px; }
    .trv-section { padding: 28px 16px; }
    .trv-page-header { padding: 20px 16px; }
    .trv-product-grid { grid-template-columns: 1fr 1fr; }
    .trv-hero-stat { padding-right: 18px; margin-right: 18px; }
    .trv-stat-num { font-size: 24px; }
    .trv-review-excerpt { display: none; }
    .trv-hero-inner { min-height: auto; }
    .trv-top-item { gap: 12px; padding: 14px 16px; }
}

/* ================================================
   ARTICLE / NEWS LAYOUT (Review dạng bài viết)
   ================================================ */

/* Grid chính: bài featured lớn + grid nhỏ */
.trv-articles-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #E5E3DE;
    border: 1px solid #E5E3DE;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1px;
}

/* Bài featured - chiếm toàn bộ cột trái */
.trv-article-featured {
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
    grid-row: span 2;
}
.trv-article-featured:hover { background: #FAFAF8; color: inherit; }

.trv-article-featured .trv-art-img {
    width: 100%; aspect-ratio: 16/9;
    background: #F0EFEB;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px; overflow: hidden; flex-shrink: 0;
}
.trv-article-featured .trv-art-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.trv-article-featured .trv-art-body {
    padding: 18px 20px 20px;
    display: flex; flex-direction: column; flex: 1;
}
.trv-article-featured .trv-art-title {
    font-size: 18px; font-weight: 700; color: #111;
    line-height: 1.35; margin-bottom: 8px;
}
.trv-article-featured .trv-art-excerpt {
    font-size: 13.5px; color: #666; line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}
.trv-article-featured .trv-art-meta {
    margin-top: 14px;
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #aaa;
}

/* Bài phụ bên phải (dạng ngang: ảnh nhỏ + text) */
.trv-articles-side {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #E5E3DE;
}
.trv-article-side {
    background: #fff;
    display: flex; gap: 14px;
    padding: 16px 18px;
    text-decoration: none; color: inherit;
    transition: background .15s;
    align-items: flex-start;
    flex: 1;
}
.trv-article-side:hover { background: #FAFAF8; color: inherit; }
.trv-article-side .trv-art-img {
    width: 100px; height: 70px; flex-shrink: 0;
    background: #F0EFEB; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; overflow: hidden;
}
.trv-article-side .trv-art-img img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
}
.trv-article-side .trv-art-body { flex: 1; min-width: 0; }
.trv-article-side .trv-art-title {
    font-size: 14px; font-weight: 700; color: #111;
    line-height: 1.4; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.trv-article-side .trv-art-meta {
    font-size: 11.5px; color: #aaa;
    display: flex; align-items: center; gap: 6px;
}

/* Grid bài viết dạng card (hàng dưới) */
.trv-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #E5E3DE;
    border: 1px solid #E5E3DE;
    border-radius: 10px;
    overflow: hidden;
}
.trv-article-card {
    background: #fff;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: background .15s;
}
.trv-article-card:hover { background: #FAFAF8; color: inherit; }
.trv-article-card .trv-art-img {
    width: 100%; aspect-ratio: 16/9;
    background: #F0EFEB;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; overflow: hidden;
}
.trv-article-card .trv-art-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.trv-article-card .trv-art-body {
    padding: 14px 16px 16px;
    display: flex; flex-direction: column; flex: 1;
}
.trv-article-card .trv-art-title {
    font-size: 14px; font-weight: 700; color: #111;
    line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.trv-article-card .trv-art-excerpt {
    font-size: 12.5px; color: #777; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}
.trv-article-card .trv-art-meta {
    margin-top: 12px;
    font-size: 11.5px; color: #aaa;
    display: flex; align-items: center; gap: 6px;
}

/* Meta common */
.trv-art-author { font-weight: 600; color: #555; }
.trv-art-dot { color: #D5D3CE; }
.trv-art-score {
    font-size: 11px; font-weight: 800;
    background: #111; color: #fff;
    border-radius: 4px; padding: 1px 6px;
    letter-spacing: 0.2px;
}
.trv-art-cat {
    font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: #E8380D; margin-bottom: 8px;
    display: block;
}

/* Responsive articles */
@media (max-width: 900px) {
    .trv-articles-hero { grid-template-columns: 1fr; }
    .trv-article-featured { grid-row: span 1; }
    .trv-articles-side { flex-direction: column; }
    .trv-articles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .trv-articles-grid { grid-template-columns: 1fr; }
    .trv-article-side .trv-art-img { width: 80px; height: 56px; font-size: 24px; }
}

/* ================================================
   AUTH PAGES
   ================================================ */
.trv-auth-page {
    min-height: calc(100vh - 52px); background: #F6F5F2;
    display: flex; align-items: center; justify-content: center; padding: 40px 16px;
}
.trv-auth-card {
    background: #fff; border: 1px solid #E5E3DE; border-radius: 12px;
    padding: 36px 40px; width: 100%; max-width: 420px;
}
.trv-auth-logo { font-size: 17px; font-weight: 800; color: #111; margin-bottom: 22px; }
.trv-auth-logo span { color: #E8380D; }
.trv-auth-title { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 6px; }
.trv-auth-desc { font-size: 14px; color: #888; margin-bottom: 24px; line-height: 1.55; }
.trv-auth-error { background: #FFF2F0; border: 1px solid #FFDBD6; border-radius: 7px; padding: 10px 14px; font-size: 13.5px; color: #c0392b; margin-bottom: 18px; }
.trv-auth-error div + div { margin-top: 3px; }
.trv-auth-footer { text-align: center; font-size: 13.5px; color: #888; margin-top: 20px; }
.trv-auth-footer a { color: #E8380D; font-weight: 600; }
.trv-auth-footer a:hover { text-decoration: underline; }
.trv-auth-check { font-size: 13px; color: #666; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }

/* ================================================
   ALERT BANNERS
   ================================================ */
.trv-alert { border-radius: 8px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px; }
.trv-alert-success { background: #E6F9EE; border: 1px solid #B7DFCA; color: #1a7a45; }
.trv-alert-error   { background: #FFF2F0; border: 1px solid #FFDBD6; color: #c0392b; }

/* ================================================
   PRODUCT DETAIL
   ================================================ */
.trv-detail-wrap { max-width: 1260px; margin: 0 auto; padding: 24px 24px 48px; }
.trv-breadcrumb { font-size: 13px; color: #aaa; margin-bottom: 24px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.trv-breadcrumb a { color: #888; transition: color .15s; }
.trv-breadcrumb a:hover { color: #111; }
.trv-breadcrumb span { color: #111; font-weight: 500; }
.trv-breadcrumb-sep { color: #D5D3CE; }

.trv-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }

/* Main column */
.trv-product-img-wrap {
    width: 100%; aspect-ratio: 16/9; max-height: 300px;
    background: #F6F5F2; border: 1px solid #E5E3DE; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 90px; overflow: hidden; margin-bottom: 20px;
}
.trv-product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.trv-product-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: #E8380D; margin-bottom: 6px; }
.trv-product-h1 { font-size: 26px; font-weight: 800; color: #111; letter-spacing: -0.4px; line-height: 1.2; margin-bottom: 6px; }
.trv-product-added { font-size: 12px; color: #bbb; margin-bottom: 10px; }
.trv-product-desc { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 20px; }

/* Spec */
.trv-block { background: #fff; border: 1px solid #E5E3DE; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.trv-block-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #F0EFEB; }
.trv-spec-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F6F5F2; font-size: 13.5px; }
.trv-spec-row:last-child { border-bottom: none; }
.trv-spec-key { width: 150px; flex-shrink: 0; color: #888; font-weight: 500; }
.trv-spec-val { color: #111; flex: 1; }

/* Price */
.trv-price-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.trv-price-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #aaa; padding: 0 0 10px; text-align: left; border-bottom: 1px solid #F0EFEB; }
.trv-price-table td { padding: 10px 0; border-bottom: 1px solid #F6F5F2; vertical-align: middle; }
.trv-price-table tr:last-child td { border-bottom: none; }
.trv-price-store { font-weight: 600; color: #111; }
.trv-price-amount { font-size: 15px; font-weight: 800; color: #111; }
.trv-price-date { font-size: 11.5px; color: #bbb; }
.trv-price-link { color: #E8380D; font-size: 13px; font-weight: 600; }
.trv-price-link:hover { text-decoration: underline; }
.trv-price-warn { font-size: 12px; color: #bbb; margin-top: 10px; }
.trv-toggle-form-btn { background: none; border: 1.5px solid #D5D3CE; border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: 500; color: #666; cursor: pointer; font-family: inherit; margin-top: 12px; transition: all .15s; }
.trv-toggle-form-btn:hover { border-color: #E8380D; color: #E8380D; }
.trv-inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.trv-inline-form .trv-input { flex: 1; min-width: 110px; }

/* Reviews */
.trv-reviews-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #F0EFEB; }
.trv-review-card { padding: 18px 0; border-bottom: 1px solid #F6F5F2; }
.trv-review-card:last-child { border-bottom: none; padding-bottom: 0; }
.trv-review-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.trv-reviewer-av { width: 34px; height: 34px; border-radius: 50%; background: #E8380D; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trv-reviewer-name { font-size: 13.5px; font-weight: 700; color: #111; }
.trv-reviewer-date { font-size: 12px; color: #bbb; }
.trv-review-card-score { margin-left: auto; font-size: 15px; font-weight: 800; background: #111; color: #fff; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.trv-review-card-title { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 8px; line-height: 1.4; }
.trv-review-card-body { font-size: 13.5px; color: #555; line-height: 1.7; margin-bottom: 12px; }
.trv-review-card-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trv-like-btn { background: none; border: 1.5px solid #D5D3CE; border-radius: 20px; padding: 4px 12px; font-size: 12.5px; font-weight: 500; color: #666; cursor: pointer; font-family: inherit; transition: all .15s; }
.trv-like-btn:hover { border-color: #E8380D; color: #E8380D; }
.trv-like-btn.liked { background: #FFF0EE; border-color: #E8380D; color: #E8380D; }
.trv-like-count { font-size: 12.5px; color: #aaa; }
.trv-comment-count { font-size: 12.5px; color: #aaa; }
.trv-toggle-bl { background: none; border: none; font-size: 12.5px; color: #888; cursor: pointer; font-family: inherit; text-decoration: underline; margin-left: auto; }
.trv-toggle-bl:hover { color: #111; }
.trv-comments { margin-top: 12px; padding: 12px; background: #F6F5F2; border-radius: 8px; }
.trv-comment-item { font-size: 13px; padding: 6px 0; border-bottom: 1px solid #EDECEA; }
.trv-comment-item:last-child { border-bottom: none; }
.trv-comment-item b { color: #111; }
.trv-comment-item .trv-comment-date { color: #bbb; font-size: 11.5px; margin-left: 8px; }
.trv-comment-form { display: flex; gap: 8px; margin-top: 10px; }

/* Sidebar */
.trv-sidebar-card { background: #fff; border: 1px solid #E5E3DE; border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.trv-sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #F0EFEB; }
.trv-score-display { text-align: center; padding: 6px 0 14px; }
.trv-score-big { font-size: 52px; font-weight: 800; color: #111; line-height: 1; }
.trv-score-big small { font-size: 18px; color: #aaa; font-weight: 400; }
.trv-score-stars { font-size: 22px; color: #E8380D; letter-spacing: 3px; margin: 8px 0 4px; }
.trv-score-count { font-size: 12.5px; color: #aaa; }
.trv-related-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F6F5F2; text-decoration: none; color: inherit; transition: color .15s; }
.trv-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.trv-related-item:hover { color: #E8380D; }
.trv-related-icon { font-size: 22px; flex-shrink: 0; }
.trv-related-name { font-size: 13.5px; font-weight: 600; color: #111; line-height: 1.3; }
.trv-related-meta { font-size: 12px; color: #aaa; margin-top: 2px; }

/* Profile */
.trv-profile-wrap { max-width: 720px; margin: 40px auto; padding: 0 24px; }
.trv-profile-card { background: #fff; border: 1px solid #E5E3DE; border-radius: 12px; padding: 28px 32px; }
.trv-profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #F0EFEB; }
.trv-profile-av { width: 64px; height: 64px; border-radius: 50%; background: #E8380D; color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trv-profile-name { font-size: 20px; font-weight: 800; color: #111; }
.trv-profile-email { font-size: 13.5px; color: #888; margin-top: 2px; }
.trv-profile-stats { display: flex; gap: 0; margin-bottom: 28px; background: #F6F5F2; border-radius: 8px; overflow: hidden; }
.trv-profile-stat { flex: 1; text-align: center; padding: 16px 0; border-right: 1px solid #EDECEA; }
.trv-profile-stat:last-child { border-right: none; }
.trv-profile-stat-num { font-size: 24px; font-weight: 800; color: #111; }
.trv-profile-stat-label { font-size: 12px; color: #999; margin-top: 2px; }

@media (max-width: 900px) {
    .trv-detail-grid { grid-template-columns: 1fr; }
    .trv-auth-card { padding: 28px 24px; }
}
@media (max-width: 600px) {
    .trv-detail-wrap { padding: 16px 16px 40px; }
}

/* ================================================
   EDITOR TOOLBAR
   ================================================ */
.rv-toolbar {
    display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
    background: #F6F5F2; border: 1.5px solid #D5D3CE;
    border-bottom: none; border-radius: 7px 7px 0 0;
    padding: 6px 8px;
}
.rv-tb-btn {
    background: none; border: none; padding: 5px 10px;
    font-size: 13px; font-family: inherit; font-weight: 600;
    color: #555; cursor: pointer; border-radius: 5px;
    transition: background .15s, color .15s;
}
.rv-tb-btn:hover { background: #E5E3DE; color: #111; }
.rv-tb-sep { width: 1px; height: 18px; background: #D5D3CE; margin: 0 4px; }

.rv-editor {
    min-height: 320px; padding: 16px;
    border: 1.5px solid #D5D3CE; border-radius: 0 0 7px 7px;
    font-size: 15px; color: #111; line-height: 1.85;
    font-family: 'Be Vietnam Pro', sans-serif;
    outline: none; background: #fff;
    transition: border-color .2s;
}
.rv-editor:focus { border-color: #111; }
.rv-editor.empty::before {
    content: attr(data-placeholder);
    color: #bbb; pointer-events: none; white-space: pre-line;
}
.rv-editor h2 { font-size: 19px; font-weight: 700; margin: 20px 0 8px; color: #111; }
.rv-editor h3 { font-size: 16px; font-weight: 700; margin: 16px 0 6px; color: #111; }
.rv-editor p  { margin-bottom: 14px; }
.rv-editor img {
    max-width: 100%; border-radius: 8px; margin: 12px 0;
    display: block; cursor: pointer;
    border: 2px solid transparent; transition: border-color .15s;
}
.rv-editor img:hover { border-color: #E8380D; }
.rv-editor ul, .rv-editor ol { padding-left: 24px; margin-bottom: 14px; }
.rv-editor li { margin-bottom: 4px; }

/* ================================================
   ARTICLE / BLOG LAYOUT (Detail page)
   ================================================ */
.rv-article-wrap {
    max-width: 1100px; margin: 0 auto;
    padding: 28px 24px 56px;
    display: grid; grid-template-columns: 1fr;
}

article.rv-article {
    max-width: 780px; width: 100%;
}

.rv-cat-tag {
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    color: #E8380D; margin-bottom: 12px;
}

.rv-title {
    font-size: 28px; font-weight: 800; color: #111;
    line-height: 1.25; letter-spacing: -0.4px;
    margin-bottom: 18px;
}

.rv-meta {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 24px; padding-bottom: 20px;
    border-bottom: 1px solid #E5E3DE; flex-wrap: wrap;
}
.rv-author { font-size: 14px; font-weight: 700; color: #111; }
.rv-date   { font-size: 12px; color: #bbb; margin-top: 1px; }
.rv-score-pill {
    font-size: 16px; font-weight: 800; color: #fff;
    background: #111; border-radius: 6px;
    padding: 4px 12px; margin-left: auto;
    white-space: nowrap;
}
.rv-score-pill span { font-size: 12px; font-weight: 400; color: #aaa; }
.rv-product-link {
    font-size: 13px; color: #E8380D; font-weight: 600;
    text-decoration: none; white-space: nowrap;
}
.rv-product-link:hover { text-decoration: underline; }

/* Ảnh bìa */
.rv-cover {
    margin-bottom: 28px; border-radius: 10px; overflow: hidden;
    max-height: 460px;
}
.rv-cover img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Nội dung bài viết */
.rv-body {
    font-size: 16px; color: #2a2a2a; line-height: 1.9;
    font-family: 'Be Vietnam Pro', sans-serif;
}
.rv-body h2 {
    font-size: 20px; font-weight: 700; color: #111;
    margin: 32px 0 10px; padding-top: 8px;
    border-top: 1px solid #E5E3DE;
}
.rv-body h3 { font-size: 17px; font-weight: 700; color: #111; margin: 22px 0 8px; }
.rv-body p  { margin-bottom: 16px; }
.rv-body img {
    max-width: 100%; border-radius: 10px;
    margin: 20px 0; display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.rv-body ul, .rv-body ol { padding-left: 26px; margin-bottom: 16px; }
.rv-body li { margin-bottom: 6px; }
.rv-body strong { font-weight: 700; color: #111; }

/* Footer bài viết */
.rv-footer {
    margin-top: 32px; padding-top: 20px;
    border-top: 1px solid #E5E3DE;
    display: flex; align-items: center; gap: 16px;
    font-size: 13.5px; color: #aaa; flex-wrap: wrap;
}
.rv-back { margin-left: auto; color: #888; font-weight: 500; transition: color .15s; }
.rv-back:hover { color: #111; }

/* Bình luận */
.rv-comments-wrap {
    max-width: 780px; margin-top: 40px;
    border-top: 2px solid #111; padding-top: 28px;
}
.rv-comments-title {
    font-size: 17px; font-weight: 700; color: #111;
    margin-bottom: 24px;
}
.rv-comment {
    display: flex; gap: 12px; margin-bottom: 20px;
    padding-bottom: 20px; border-bottom: 1px solid #F0EFEB;
}
.rv-comment:last-of-type { border-bottom: none; }
.rv-comment-body { flex: 1; }
.rv-comment-meta { margin-bottom: 4px; }
.rv-comment-meta b { font-size: 13.5px; color: #111; margin-right: 8px; }
.rv-comment-meta span { font-size: 11.5px; color: #bbb; }
.rv-comment-text { font-size: 14px; color: #444; line-height: 1.65; }
.rv-comment-form { display: flex; gap: 12px; margin-top: 24px; align-items: flex-start; }
.rv-no-comment { font-size: 14px; color: #bbb; margin-bottom: 24px; }
.rv-login-prompt {
    margin-top: 20px; padding: 16px; background: #F6F5F2;
    border-radius: 8px; text-align: center; font-size: 14px; color: #888;
}
.rv-login-prompt a { color: #E8380D; font-weight: 600; }

@media (max-width: 600px) {
    .rv-title { font-size: 22px; }
    .rv-body { font-size: 15px; }
    .rv-article-wrap { padding: 16px 16px 40px; }
}

/* ================================================
   BAIREVIEWS/INDEX — HERO + GRID LAYOUT
   ================================================ */

/* Hero bài đầu tiên */
.trv-hero-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid #E5E3DE;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    margin-bottom: 24px;
    transition: box-shadow .2s;
    min-height: 340px;
}
.trv-hero-article:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.trv-hero-article-img {
    position: relative;
    background: #F6F5F2;
    overflow: hidden;
    min-height: 340px;
    display: flex; align-items: center; justify-content: center;
}
.trv-hero-article-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    position: absolute; top:0; left:0;
}
.trv-hero-article-emoji { font-size: 80px; }

.trv-hero-article-body {
    padding: 32px 36px;
    display: flex; flex-direction: column; justify-content: center;
    gap: 12px;
}
.trv-hero-article-title {
    font-size: 22px; font-weight: 800; color: #111;
    line-height: 1.3; letter-spacing: -0.3px;
}
.trv-hero-article-excerpt {
    font-size: 14px; color: #666; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 4;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Grid đều 3 cột cho các bài còn lại */
.trv-review-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@@media (max-width: 900px) {
    .trv-hero-article { grid-template-columns: 1fr; min-height: auto; }
    .trv-hero-article-img { min-height: 220px; }
    .trv-hero-article-body { padding: 20px; }
    .trv-review-index-grid { grid-template-columns: 1fr 1fr; }
}
@@media (max-width: 600px) {
    .trv-review-index-grid { grid-template-columns: 1fr; }
}

/* ================================================
   RAO VẶT
   ================================================ */
.rv-raovat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.rv-raovat-card {
    background: #fff; border: 1px solid #E5E3DE; border-radius: 10px;
    overflow: hidden; text-decoration: none; color: inherit;
    transition: box-shadow .2s; display: flex; flex-direction: column;
}
.rv-raovat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.rv-raovat-img {
    aspect-ratio: 4/3; background: #F6F5F2;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rv-raovat-img img { width: 100%; height: 100%; object-fit: cover; }
.rv-raovat-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rv-raovat-title { font-size: 14px; font-weight: 700; color: #111; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-raovat-price { font-size: 18px; font-weight: 800; color: #E8380D; }
.rv-raovat-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 600; }
.rv-raovat-meta { font-size: 12px; color: #bbb; margin-top: auto; padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

@@media (max-width: 900px) { .rv-raovat-grid { grid-template-columns: 1fr 1fr; } }
@@media (max-width: 600px) { .rv-raovat-grid { grid-template-columns: 1fr; } }


/* ── HERO SLIDER FULL WIDTH ── */
.trv-hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    height: 500px;
}
.trv-slider-track {
    position: relative;
    width: 100%; height: 100%;
}
.trv-slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end;
    text-decoration: none; color: #fff;
    opacity: 0; transition: opacity .6s ease;
    pointer-events: none;
}
.trv-slide.active {
    opacity: 1; pointer-events: auto;
}
.trv-slide-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.trv-slide-bg-fallback {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.trv-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.1) 100%);
}
.trv-slide-content {
    position: relative; z-index: 2;
    max-width: 1260px; margin: 0 auto; width: 100%;
    padding: 0 40px 48px;
    display: flex; flex-direction: column; gap: 12px;
}
.trv-slide-source {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.12);
    border-radius: 20px; padding: 4px 12px 4px 10px;
    width: fit-content; backdrop-filter: blur(6px);
}
.trv-slide-cat-badge {
    background: #E8380D; color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: .8px;
    padding: 2px 7px; border-radius: 10px; text-transform: uppercase;
}
.trv-slide-title {
    font-size: 28px; font-weight: 800; line-height: 1.25;
    color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5);
    max-width: 700px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.trv-slide-bottom {
    display: flex; align-items: center; gap: 16px;
}
.trv-slide-score {
    font-size: 26px; font-weight: 800; color: #fff; line-height: 1;
}
.trv-slide-score-max { font-size: 14px; font-weight: 500; opacity: .6; margin-left: 1px; }
.trv-slide-date { font-size: 13px; color: rgba(255,255,255,.6); }
/* Arrows */
.trv-slide-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(255,255,255,.15); border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 50%; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s; backdrop-filter: blur(4px);
}
.trv-slide-arrow:hover { background: rgba(255,255,255,.3); }
.trv-slide-prev { left: 16px; }
.trv-slide-next { right: 16px; }
/* Dots */
.trv-slide-dots {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10;
}
.trv-dot {
    width: 8px; height: 8px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.4); cursor: pointer;
    transition: background .2s, width .25s; padding: 0;
}
.trv-dot.active { background: #fff; width: 24px; border-radius: 4px; }
/* Stats overlay góc phải */
.trv-hero-stats-overlay {
    position: absolute; top: 24px; right: 40px; z-index: 10;
    display: flex; gap: 0;
    background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
    border-radius: 10px; overflow: hidden;
}
.trv-hero-stat-o {
    padding: 12px 20px; border-right: 1px solid rgba(255,255,255,.1);
    text-align: center;
}
.trv-hero-stat-o:last-child { border-right: none; }
.trv-stat-num-o { font-size: 20px; font-weight: 800; color: #fff; line-height: 1; }
.trv-stat-lbl-o { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 2px; }

/* ── RaoVat card trên Home ── */
.trv-section-raovat { background: #FAFAF8; }
.trv-rv-price {
    font-size: 15px; font-weight: 800; color: #E8380D;
    margin: 4px 0 8px;
}
.trv-raovat-empty-home { margin-bottom: 4px; }
.trv-raovat-banner {
    display: flex; align-items: center; gap: 20px;
    background: #fff; border: 1.5px solid #E5E3DE;
    border-radius: 14px; padding: 22px 24px;
}
.trv-raovat-banner-icon { font-size: 2.8rem; flex-shrink: 0; }
.trv-raovat-banner-text { flex: 1; min-width: 0; }
.trv-raovat-banner-text h3 { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 4px; }
.trv-raovat-banner-text p  { font-size: 13px; color: #666; line-height: 1.55; margin: 0; }
.trv-raovat-banner-btns { display: flex; gap: 8px; flex-shrink: 0; }

@@media (max-width: 1024px) {
    .trv-hero-slider-section { height: 400px; }
    .trv-slide-title { font-size: 22px; }
    .trv-slide-content { padding: 0 24px 36px; }
    .trv-hero-stats-overlay { right: 24px; top: 16px; }
}
@@media (max-width: 600px) {
    .trv-hero-slider-section { height: 300px; }
    .trv-slide-title { font-size: 17px; max-width: 100%; }
    .trv-slide-score { font-size: 20px; }
    .trv-slide-content { padding: 0 16px 28px; }
    .trv-hero-stats-overlay { display: none; }
    .trv-slide-prev { left: 8px; }
    .trv-slide-next { right: 8px; }
    .trv-raovat-banner { flex-wrap: wrap; }
    .trv-raovat-banner-btns { width: 100%; }
}

/* ══════════════════════════════════════════════
   RAOVAT DETAIL — layout, gallery, tabs, deal
   ══════════════════════════════════════════════ */

/* Layout 2 cột */
.rv-detail-layout {
    max-width: 1260px; margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px; align-items: start;
}

/* Gallery */
.rv-gallery { margin-bottom: 20px; }
.rv-gallery-main {
    width: 100%; aspect-ratio: 4/3;
    background: #111; border-radius: 12px;
    overflow: hidden; margin-bottom: 10px;
    display: flex; align-items: center; justify-content: center;
}
.rv-gallery-main img { width:100%; height:100%; object-fit: contain; }
.rv-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.rv-thumb {
    width: 70px; height: 70px; border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer;
    background: #F6F5F2; display: flex; align-items: center;
    justify-content: center; font-size: 12px; font-weight: 600; color: #555;
    transition: border-color .15s;
}
.rv-thumb img { width:100%; height:100%; object-fit:cover; }
.rv-thumb.active { border-color: #E8380D; }
.rv-thumb-video { background: #111; color: #fff; font-size: 11px; gap: 2px; flex-direction: column; }

/* Badges */
.rv-badge-tinhtrang {
    font-size: 11px; font-weight: 700; padding: 3px 9px;
    border-radius: 20px; letter-spacing: .4px;
}
.rv-badge-nam {
    font-size: 12px; color: #888; background: #F6F5F2;
    padding: 3px 9px; border-radius: 20px;
}

/* Tiêu đề + giá */
.rv-detail-title {
    font-size: 22px; font-weight: 800; line-height: 1.3;
    color: #111; margin: 8px 0 12px;
}
.rv-price-row {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.rv-price-main {
    font-size: 28px; font-weight: 800; color: #E8380D; line-height: 1;
}
.rv-market-range {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.rv-market-label { font-size: 12px; color: #aaa; }
.rv-market-val { font-size: 13px; font-weight: 600; color: #555; }
.rv-market-tag {
    font-size: 11px; font-weight: 700; padding: 2px 8px;
    border-radius: 20px;
}
.rv-market-good { background: #e8f8ee; color: #1a7a45; }
.rv-market-high { background: #fff0ee; color: #c0392b; }
.rv-market-ok   { background: #fffbe6; color: #B8860B; }

/* Tabs */
.rv-tabs {
    display: flex; gap: 0;
    border-bottom: 2px solid #E5E3DE; margin-bottom: 20px;
}
.rv-tab {
    padding: 10px 18px; font-size: 14px; font-weight: 600;
    background: none; border: none; cursor: pointer;
    color: #888; border-bottom: 2px solid transparent;
    margin-bottom: -2px; transition: color .15s, border-color .15s;
    display: flex; align-items: center; gap: 6px;
}
.rv-tab.active { color: #111; border-bottom-color: #E8380D; }
.rv-tab:hover { color: #111; }
.rv-tab-count {
    background: #E8380D; color: #fff; font-size: 10px;
    font-weight: 700; padding: 1px 6px; border-radius: 10px;
}
.rv-tab-panel { display: none; }
.rv-tab-panel.active { display: block; }
.rv-mo-ta {
    font-size: 14.5px; color: #333; line-height: 1.8;
    white-space: pre-line;
}

/* Tin nhắn nhanh */
.rv-quick-msgs {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.rv-quick-btn {
    font-size: 12.5px; padding: 6px 12px; border-radius: 20px;
    background: #F6F5F2; border: 1.5px solid #E5E3DE;
    cursor: pointer; transition: background .15s, border-color .15s;
    font-family: inherit;
}
.rv-quick-btn:hover { background: #FFDBD6; border-color: #E8380D; color: #E8380D; }

/* Bình luận */
.rv-comment {
    display: flex; gap: 10px; padding: 14px 0;
    border-bottom: 1px solid #F0EFEB;
}
.rv-comment:last-child { border-bottom: none; }
.rv-comment-deal { background: #fffbe6; border-radius: 8px; padding: 12px; margin-bottom: 8px; border-bottom: none; border: 1px solid #fcedb0; }
.rv-comment-av {
    width: 34px; height: 34px; border-radius: 50%;
    background: #E8380D; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.rv-comment-body { flex: 1; min-width: 0; }
.rv-comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.rv-comment-name { font-size: 13px; font-weight: 700; color: #111; }
.rv-comment-time { font-size: 11.5px; color: #bbb; margin-left: auto; }
.rv-comment-text { font-size: 13.5px; color: #333; line-height: 1.6; }
.rv-deal-badge {
    font-size: 11.5px; font-weight: 700; color: #B8860B;
    background: #fcedb0; padding: 2px 8px; border-radius: 10px;
}
.rv-btn-xoa-bl {
    font-size: 11.5px; color: #c0392b; background: none; border: none;
    cursor: pointer; padding: 2px 0; margin-top: 4px;
    font-family: inherit;
}

/* SĐT ẩn/hiện */
.rv-sdt-box {
    border-radius: 8px; padding: 14px; text-align: center; margin-bottom: 10px;
}
.rv-sdt-show { background: #F6F5F2; }
.rv-sdt-hidden { background: #F6F5F2; }
.rv-sdt-mask {
    font-size: 18px; font-weight: 800; letter-spacing: 3px;
    color: #bbb; margin-bottom: 8px;
}
.rv-sdt-unlock {
    display: inline-block; font-size: 13px; font-weight: 600;
    color: #E8380D; text-decoration: none;
}
.rv-sdt-unlock:hover { text-decoration: underline; }

/* Deal giá */
.rv-deal-presets {
    display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap;
}
.rv-deal-preset-btn {
    padding: 5px 12px; font-size: 12.5px; font-weight: 600;
    border: 1.5px solid #E5E3DE; border-radius: 20px;
    background: #fff; cursor: pointer; font-family: inherit;
    transition: background .15s, border-color .15s;
}
.rv-deal-preset-btn:hover { background: #F6F5F2; border-color: #E8380D; color: #E8380D; }

/* ══════ RAOVAT INDEX — sidebar lọc ══════ */
.rv-index-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px; align-items: start;
}
.rv-filter-sidebar {
    background: #fff; border: 1.5px solid #E5E3DE;
    border-radius: 12px; overflow: hidden; position: sticky; top: 80px;
}
.rv-filter-block {
    padding: 16px 16px 14px;
    border-bottom: 1px solid #F0EFEB;
}
.rv-filter-block:last-child { border-bottom: none; }
.rv-filter-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #888; margin-bottom: 10px;
}
.rv-filter-options { display: flex; flex-direction: column; gap: 6px; }
.rv-filter-opt {
    display: flex; align-items: center; gap: 8px;
    font-size: 13.5px; cursor: pointer; padding: 4px 6px;
    border-radius: 6px; transition: background .1s;
}
.rv-filter-opt:hover { background: #F6F5F2; }
.rv-filter-opt.active { color: #E8380D; font-weight: 600; }
.rv-filter-opt input[type=radio] { accent-color: #E8380D; }
.rv-list-area { min-width: 0; }

/* Upload box (form đăng tin) */
.rv-upload-box {
    width: 100%; aspect-ratio: 1;
    border: 2px dashed #E5E3DE; border-radius: 10px;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
    background: #FAFAF8; transition: border-color .2s;
}
.rv-upload-box:hover { border-color: #E8380D; }
.rv-upload-video { aspect-ratio: 16/9; }
.rv-upload-ph { text-align: center; color: #bbb; font-size: 28px; line-height: 1.5; }
.rv-upload-ph small { font-size: 12px; font-weight: 500; display: block; }

/* Related grid */
.rv-related-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}

@@media (max-width: 1024px) {
    .rv-detail-layout { grid-template-columns: 1fr; }
    .rv-detail-sidebar { order: -1; }
    .rv-related-grid { grid-template-columns: repeat(2, 1fr); }
    .rv-index-layout { grid-template-columns: 1fr; }
    .rv-filter-sidebar { position: static; }
}
@@media (max-width: 600px) {
    .rv-related-grid { grid-template-columns: repeat(2, 1fr); }
    .rv-detail-layout { padding: 0 16px 28px; }
    .rv-tabs { overflow-x: auto; }
    .rv-tab { white-space: nowrap; }
}

/* ══════════════════════════════════════════════
   RAOVAT COMMENT THREAD v2 — reply + deal flow
   ══════════════════════════════════════════════ */

/* Form soạn bình luận */
.rv-compose-form {
    display: flex; gap: 10px; align-items: flex-start;
    margin-bottom: 20px;
}
.rv-compose-right { flex: 1; min-width: 0; }
.rv-compose-ta { resize: none; font-size: 13.5px; }
.rv-compose-actions {
    display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end;
}

/* Login prompt */
.rv-login-prompt {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; background: #F6F5F2; border-radius: 10px;
    padding: 14px 16px; margin-bottom: 16px; flex-wrap: wrap;
    font-size: 13.5px; color: #666;
}

/* Empty state */
.rv-empty-comments {
    color: #bbb; text-align: center; padding: 28px 0;
    font-size: 14px; font-style: italic;
}

/* Comments list */
.rv-comments-list { display: flex; flex-direction: column; gap: 0; }

/* Bình luận gốc */
.rv-comment {
    display: flex; gap: 12px;
    padding: 16px 0; border-bottom: 1px solid #F0EFEB;
}
.rv-comment:last-child { border-bottom: none; }
.rv-comment-deal {
    background: #fffbe6; border: 1.5px solid #fce68a;
    border-radius: 10px; padding: 14px 16px; margin-bottom: 6px;
    border-bottom: 1.5px solid #fce68a !important;
}
.rv-comment-av {
    width: 36px; height: 36px; border-radius: 50%;
    background: #E8380D; color: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.rv-comment-body { flex: 1; min-width: 0; }
.rv-comment-head {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 5px;
}
.rv-comment-name { font-size: 13.5px; font-weight: 700; color: #111; }
.rv-comment-time { font-size: 11.5px; color: #bbb; margin-left: auto; }
.rv-comment-text { font-size: 13.5px; color: #333; line-height: 1.65; }

/* Deal badge + trạng thái */
.rv-deal-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700;
    background: #fce68a; color: #7a5c00;
    padding: 3px 10px; border-radius: 20px;
}
.rv-deal-badge--dongY  { background: #d4f5e2; color: #1a7a45; }
.rv-deal-badge--tuchoi { background: #fde8e8; color: #c0392b; }
.rv-deal-status-dot {
    font-size: 11px; font-weight: 700;
    padding: 1px 6px; border-radius: 10px;
}
.rv-deal-dot-ok   { background: #1a7a45; color: #fff; }
.rv-deal-dot-no   { background: #c0392b; color: #fff; }
.rv-deal-dot-wait { background: #B8860B; color: #fff; }

/* Nút xác nhận / từ chối deal */
.rv-deal-actions {
    display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.rv-deal-btn {
    font-size: 13px; font-weight: 700; padding: 7px 16px;
    border-radius: 6px; border: none; cursor: pointer;
    font-family: inherit; transition: opacity .15s;
}
.rv-deal-btn:hover { opacity: .85; }
.rv-deal-btn--ok  { background: #1a7a45; color: #fff; }
.rv-deal-btn--no  { background: #fff; border: 1.5px solid #e0e0e0; color: #c0392b; }

/* Seller tag */
.rv-seller-tag {
    font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
    background: #E8380D; color: #fff;
    padding: 1px 7px; border-radius: 10px;
}

/* Replies */
.rv-replies {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed #E5E3DE;
    display: flex; flex-direction: column; gap: 0;
    padding-left: 8px;
    border-left: 3px solid #E5E3DE;
    margin-left: 4px;
}
.rv-reply {
    display: flex; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid #F8F7F5;
}
.rv-reply:last-child { border-bottom: none; }
.rv-reply-av {
    width: 28px !important; height: 28px !important;
    font-size: 12px !important;
    background: #555 !important;
}

/* Toggle reply */
.rv-reply-toggle-wrap { margin-top: 8px; }
.rv-reply-toggle {
    font-size: 12.5px; color: #888; background: none; border: none;
    cursor: pointer; padding: 0; font-family: inherit;
    transition: color .15s;
}
.rv-reply-toggle:hover { color: #E8380D; }
.rv-reply-form { margin-top: 10px; }
.rv-reply-compose { margin-bottom: 0 !important; }

/* Xóa bình luận */
.rv-btn-xoa-bl {
    font-size: 11.5px; color: #bbb; background: none; border: none;
    cursor: pointer; padding: 2px 0; margin-top: 4px;
    font-family: inherit; transition: color .15s;
}
.rv-btn-xoa-bl:hover { color: #c0392b; }

/* ================================================
   PASSWORD TOGGLE + GOOGLE BUTTON + AUTH DIVIDER
   ================================================ */
.trv-input-pw-wrap {
    position: relative;
}
.trv-input-pw-wrap .trv-input {
    padding-right: 44px;
}
.trv-pw-eye {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    padding: 4px; font-size: 16px; line-height: 1;
    opacity: 0.4; transition: opacity .15s;
}
.trv-pw-eye:hover { opacity: 0.7; }

.trv-btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 10px 20px;
    background: #fff; color: #333;
    border: 1.5px solid #D5D3CE; border-radius: 7px;
    font-family: inherit; font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: all .15s; text-decoration: none;
}
.trv-btn-google:hover { border-color: #999; background: #FAFAF8; color: #111; }

.trv-auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0; color: #ccc; font-size: 12.5px;
}
.trv-auth-divider::before,
.trv-auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #E5E3DE;
}

/* ================================================
   CHAT
   ================================================ */
.trv-chat-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: calc(100vh - 52px);
    max-width: 1100px;
    margin: 0 auto;
    border-left: 1px solid #E5E3DE;
    border-right: 1px solid #E5E3DE;
}
.trv-chat-sidebar {
    border-right: 1px solid #E5E3DE;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
}
.trv-chat-sidebar-head {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E3DE;
    flex-shrink: 0;
}
.trv-chat-sidebar-title { font-size: 17px; font-weight: 800; }
.trv-chat-back { font-size: 13px; color: #888; text-decoration: none; font-weight: 600; }
.trv-chat-back:hover { color: #111; }

.trv-chat-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px; text-decoration: none; color: inherit;
    border-bottom: 1px solid #F6F5F2; transition: background .12s;
}
.trv-chat-item:hover { background: #FAFAF8; }
.trv-chat-item-av {
    width: 42px; height: 42px; border-radius: 50%;
    background: #E8380D; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.trv-chat-item-body { flex: 1; min-width: 0; }
.trv-chat-item-name {
    font-weight: 700; font-size: 13.5px;
    display: flex; align-items: center; gap: 6px;
}
.trv-chat-item-last { font-size: 12.5px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.trv-chat-item-time { font-size: 11px; color: #ccc; flex-shrink: 0; }
.trv-chat-badge {
    background: #E8380D; color: #fff;
    font-size: 10px; font-weight: 700; padding: 1px 6px;
    border-radius: 10px; min-width: 18px; text-align: center;
}
.trv-chat-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 20px; text-align: center;
    color: #aaa; font-size: 13px;
}
.trv-chat-empty p { font-weight: 600; color: #888; margin-bottom: 4px; }

/* Chat window */
.trv-chat-win {
    display: flex; flex-direction: column;
    background: #F6F5F2;
    overflow: hidden;
}
.trv-chat-win-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    background: #fff; border-bottom: 1px solid #E5E3DE;
    flex-shrink: 0;
}
.trv-chat-partner-av {
    width: 38px; height: 38px; border-radius: 50%;
    background: #111; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.trv-chat-partner-name { font-weight: 700; font-size: 14px; }
.trv-chat-partner-status { font-size: 11.5px; color: #aaa; }
.trv-chat-back-mobile { display: none; font-size: 18px; color: #888; text-decoration: none; margin-right: 4px; }

.trv-chat-main-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: #F6F5F2; color: #bbb; text-align: center;
    padding: 40px;
}
.trv-chat-main-empty h3 { color: #888; font-size: 16px; margin-bottom: 8px; }
.trv-chat-main-empty p  { font-size: 13px; }

/* Messages */
.trv-chat-messages {
    flex: 1; overflow-y: auto;
    padding: 20px 16px;
    display: flex; flex-direction: column; gap: 6px;
}
.trv-msg { display: flex; flex-direction: column; max-width: 72%; }
.trv-msg-sent { align-self: flex-end; align-items: flex-end; }
.trv-msg-recv { align-self: flex-start; align-items: flex-start; }
.trv-msg-bubble {
    padding: 10px 14px; border-radius: 18px;
    font-size: 14px; line-height: 1.5;
    word-break: break-word;
}
.trv-msg-sent  .trv-msg-bubble { background: #111; color: #fff; border-bottom-right-radius: 4px; }
.trv-msg-recv  .trv-msg-bubble { background: #fff; color: #111; border: 1px solid #E5E3DE; border-bottom-left-radius: 4px; }
.trv-msg-time  { font-size: 10.5px; color: #bbb; margin-top: 3px; padding: 0 4px; }

/* Input bar */
.trv-chat-input-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: #fff; border-top: 1px solid #E5E3DE;
    flex-shrink: 0;
}
.trv-chat-input {
    flex: 1; padding: 10px 14px;
    border: 1.5px solid #D5D3CE; border-radius: 22px;
    font-size: 14px; font-family: inherit; outline: none;
    transition: border-color .2s;
}
.trv-chat-input:focus { border-color: #111; }
.trv-chat-send-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: #111; color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s; flex-shrink: 0;
}
.trv-chat-send-btn:hover:not(:disabled) { background: #E8380D; }
.trv-chat-send-btn:disabled { background: #D5D3CE; cursor: not-allowed; }

/* Nút nhắn tin người bán */
.trv-btn-chat {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 10px 16px; margin-top: 10px;
    background: #fff; color: #111; border: 1.5px solid #111;
    border-radius: 8px; font-size: 13.5px; font-weight: 700;
    text-decoration: none; transition: all .15s;
}
.trv-btn-chat:hover { background: #111; color: #fff; }

@media (max-width: 768px) {
    .trv-chat-page { grid-template-columns: 1fr; }
    .trv-chat-sidebar-secondary { display: none; }
    .trv-chat-back-mobile { display: block; }
    .trv-chat-main-empty { display: none; }
}

/* Unread message badge */
.trv-unread-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: #E8380D; color: #fff;
    border-radius: 9px; font-size: 10.5px; font-weight: 700;
    line-height: 1;
}
.trv-avatar-btn { position: relative; }
.trv-avatar-btn .trv-unread-badge {
    position: absolute; top: -4px; right: -4px;
    border: 2px solid #fff;
}

/* ══════════════════════════════════════════════
   RaoVat Detail v2 — Chợ Tốt style
══════════════════════════════════════════════ */
.rv2-page { max-width: 1260px; margin: 0 auto; padding: 0 24px 48px; }

/* ── Top: gallery + info ── */
.rv2-top {
    display: grid; grid-template-columns: 1fr 420px; gap: 24px;
    align-items: flex-start; margin-bottom: 20px;
}

/* Gallery */
.rv2-gallery-wrap { display: flex; flex-direction: column; gap: 10px; }
.rv2-gallery-main {
    position: relative; background: #F6F5F2; border-radius: 12px;
    aspect-ratio: 4/3; overflow: hidden; cursor: zoom-in;
}
.rv2-gallery-main img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; transition: transform .2s; }
.rv2-gallery-main img:hover { transform: scale(1.02); }
.rv2-no-img { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 80px; }
.rv2-img-count {
    position: absolute; bottom: 10px; right: 12px;
    background: rgba(0,0,0,0.5); color: #fff;
    font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
    pointer-events: none;
}
.rv2-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.rv2-thumb {
    width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer; flex-shrink: 0;
    background: #F0EFEB; transition: border-color .15s;
}
.rv2-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv2-thumb.active { border-color: #E8380D; }
.rv2-thumb:hover:not(.active) { border-color: #bbb; }
.rv2-thumb-video {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; background: #111; color: #fff; border-radius: 6px;
}

/* Info panel */
.rv2-info-panel {
    background: #fff; border: 1px solid #E5E3DE; border-radius: 12px;
    padding: 20px; display: flex; flex-direction: column; gap: 14px;
    position: sticky; top: 64px;
}
.rv2-sold-banner {
    background: #F0EFEB; color: #888; font-size: 13px; font-weight: 700;
    padding: 8px 14px; border-radius: 8px; text-align: center;
}
.rv2-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.rv2-badge-condition {
    display: inline-block; padding: 3px 10px; border-radius: 5px;
    font-size: 12px; font-weight: 700;
}
.rv2-badge-gray {
    display: inline-block; padding: 3px 10px; border-radius: 5px;
    font-size: 12px; font-weight: 600; background: #F0EFEB; color: #666;
}
.rv2-title {
    font-size: 18px; font-weight: 700; color: #111; line-height: 1.4;
    margin: 0;
}
.rv2-price-wrap { display: flex; flex-direction: column; gap: 10px; }
.rv2-price {
    font-size: 28px; font-weight: 800; color: #E8380D; line-height: 1;
}
.rv2-price span { font-size: 18px; font-weight: 600; }

/* Market bar */
.rv2-market-box {
    background: #F6F5F2; border-radius: 10px; padding: 12px 14px;
}
.rv2-market-label {
    font-size: 13px; font-weight: 700; color: #111; margin-bottom: 2px;
    display: flex; align-items: center; gap: 6px;
}
.rv2-market-hint { font-size: 11px; color: #aaa; font-weight: 400; }
.rv2-market-bar-wrap { margin-top: 10px; }
.rv2-market-bar-track {
    height: 4px; background: #D5D3CE; border-radius: 2px;
    position: relative; margin-bottom: 6px;
}
.rv2-market-bar-fill { height: 100%; background: #2471A3; border-radius: 2px; }
.rv2-market-bar-dot {
    width: 14px; height: 14px; background: #2471A3;
    border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    border-radius: 50%; position: absolute; top: 50%; transform: translateY(-50%);
}
.rv2-market-bar-tooltip {
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: #2471A3; color: #fff; font-size: 10.5px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.rv2-market-bar-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 4px solid transparent; border-top-color: #2471A3;
}
.rv2-market-bar-labels {
    display: flex; justify-content: space-between;
    font-size: 11px; color: #888; font-weight: 600;
}

/* Meta */
.rv2-meta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.rv2-meta-item { font-size: 13px; color: #888; }

/* Phone */
.rv2-phone-section { border-top: 1px solid #F0EFEB; padding-top: 14px; }
.rv2-phone-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv2-phone-mask { font-size: 18px; font-weight: 700; color: #555; letter-spacing: 3px; }
.rv2-phone-number { font-size: 22px; font-weight: 800; letter-spacing: 1.5px; color: #111; }
.rv2-phone-reveal-btn {
    padding: 6px 14px; background: #fff; border: 1.5px solid #D5D3CE;
    border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer;
    font-family: inherit; color: #111; transition: all .15s; text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.rv2-phone-reveal-btn:hover { border-color: #111; color: #111; }
.rv2-phone-call-btn {
    padding: 6px 14px; background: #111; color: #fff;
    border-radius: 7px; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: background .15s; display: inline-flex; align-items: center; gap: 5px;
}
.rv2-phone-call-btn:hover { background: #222; color: #fff; }
.rv2-phone-hide-btn {
    background: none; border: none; font-size: 12px; color: #aaa;
    cursor: pointer; padding: 4px 6px; font-family: inherit;
}

/* Action buttons */
.rv2-actions { display: flex; flex-direction: column; gap: 8px; }
.rv2-btn-chat {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 16px; background: #FFF5F3; color: #E8380D;
    border: 1.5px solid #E8380D; border-radius: 9px;
    font-size: 14px; font-weight: 700; text-decoration: none; transition: all .15s;
}
.rv2-btn-chat:hover { background: #E8380D; color: #fff; }

/* Seller card */
.rv2-seller-card {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; background: #F6F5F2; border-radius: 9px;
}
.rv2-seller-av {
    width: 40px; height: 40px; border-radius: 50%; background: #E8380D;
    color: #fff; font-weight: 700; font-size: 16px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rv2-seller-name { font-size: 14px; font-weight: 700; color: #111; }
.rv2-seller-sub { font-size: 12px; color: #aaa; margin-top: 2px; }

/* Owner box */
.rv2-owner-box { border-top: 1px solid #F0EFEB; padding-top: 12px; }
.rv2-owner-btn {
    width: 100%; padding: 9px; background: transparent;
    border: 1.5px solid #D5D3CE; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all .15s;
}
.rv2-owner-btn:hover { border-color: #999; }
.rv2-owner-btn-del { color: #c0392b; border-color: #FFDBD6; }
.rv2-owner-btn-del:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

/* ── Bottom: content + chat ── */
.rv2-bottom {
    display: grid; grid-template-columns: 1fr 380px; gap: 20px;
    align-items: flex-start;
}

/* Card */
.rv2-card {
    background: #fff; border: 1px solid #E5E3DE; border-radius: 12px;
    padding: 18px 20px;
}
.rv2-card-title {
    font-size: 14px; font-weight: 700; color: #111; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid #F0EFEB;
    display: flex; align-items: center; gap: 8px;
}
.rv2-chat-count {
    background: #E8380D; color: #fff; border-radius: 10px;
    font-size: 11px; font-weight: 700; padding: 1px 7px;
}

/* Description */
.rv2-desc-wrap { transition: max-height .3s; }
.rv2-desc-text {
    font-size: 14px; color: #444; line-height: 1.75; white-space: pre-wrap;
}
.rv2-desc-more {
    width: 100%; background: none; border: none; padding: 10px 0 0;
    font-size: 13px; font-weight: 700; color: #2471A3; cursor: pointer;
    font-family: inherit; text-align: center; display: block;
}

/* Specs table */
.rv2-specs-table { width: 100%; border-collapse: collapse; }
.rv2-spec-key {
    padding: 10px 14px 10px 0; font-size: 13.5px; color: #2471A3; font-weight: 500;
    width: 40%; border-bottom: 1px solid #F6F5F2; white-space: nowrap;
}
.rv2-spec-val {
    padding: 10px 0; font-size: 13.5px; color: #111;
    border-bottom: 1px solid #F6F5F2;
}
.rv2-specs-table tr:last-child .rv2-spec-key,
.rv2-specs-table tr:last-child .rv2-spec-val { border-bottom: none; }

/* Deal card */
.rv2-deal-card { padding: 0; overflow: hidden; }
.rv2-deal-toggle {
    width: 100%; padding: 16px 20px; background: none; border: none;
    font-size: 14px; font-weight: 700; color: #111; cursor: pointer;
    font-family: inherit; text-align: left; display: flex; justify-content: space-between;
}
#dealBody { padding: 0 20px 20px; }

/* Chat panel */
.rv2-chat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.rv2-chat-card .rv2-card-title { padding: 16px 20px 12px; border-bottom: 1px solid #F0EFEB; margin: 0; }
.rv2-chat-messages {
    max-height: 460px; overflow-y: auto; padding: 16px 14px;
    display: flex; flex-direction: column; gap: 16px;
    scroll-behavior: smooth;
}

/* Chat empty */
.rv2-chat-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 32px 16px; gap: 10px;
    color: #bbb; font-size: 13.5px; text-align: center; line-height: 1.6;
}
.rv2-chat-empty-icon { font-size: 36px; opacity: .5; }

/* Message groups */
.rv2-msg-group { display: flex; gap: 8px; align-items: flex-start; max-width: 88%; }
.rv2-msg-other { align-self: flex-start; }
.rv2-msg-mine  { align-self: flex-end; flex-direction: row-reverse; }
.rv2-msg-av {
    width: 32px; height: 32px; border-radius: 50%; background: #E8380D;
    color: #fff; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.rv2-msg-av-right { background: #111; }
.rv2-msg-content { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv2-msg-name { font-size: 12px; font-weight: 700; color: #888; }
.rv2-msg-bubble {
    background: #F0EFEB; color: #111; border-radius: 12px 12px 12px 3px;
    padding: 9px 13px; font-size: 13.5px; line-height: 1.55; word-break: break-word;
}
.rv2-msg-mine .rv2-msg-bubble { background: #111; color: #fff; border-radius: 12px 12px 3px 12px; }
.rv2-msg-deal {
    background: #FFF8E1; border: 1px solid #FFE082; border-radius: 10px; padding: 10px 13px;
}
.rv2-deal-status-row { margin-top: 6px; }
.rv2-deal-pill {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 11.5px; font-weight: 700;
}
.rv2-deal-ok   { background: #E6F9EE; color: #1a7a45; }
.rv2-deal-no   { background: #FFF2F0; color: #c0392b; }
.rv2-deal-wait { background: #FFF8E1; color: #B8860B; }
.rv2-deal-btns { display: flex; gap: 6px; margin-top: 8px; }
.rv2-msg-meta {
    font-size: 11px; color: #bbb; padding: 0 4px;
    display: flex; align-items: center; gap: 4px;
}
.rv2-msg-mine .rv2-msg-meta { justify-content: flex-end; }
.rv2-seller-pill {
    background: #F0EFEB; color: #666; font-size: 10.5px;
    font-weight: 700; padding: 1px 6px; border-radius: 4px;
}
.rv2-delete-btn {
    background: none; border: none; color: #E8380D; font-size: 11px;
    cursor: pointer; font-family: inherit; padding: 0;
}

/* Replies */
.rv2-replies { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-left: 12px; border-left: 2px solid #E5E3DE; }
.rv2-reply { }
.rv2-reply-bubble {
    background: #fff; border: 1px solid #E5E3DE;
    border-radius: 8px; padding: 7px 11px;
    font-size: 13px; color: #111; line-height: 1.5;
}
.rv2-reply-mine .rv2-reply-bubble { background: #F0EFEB; }

/* Reply form */
.rv2-reply-toggle-btn {
    background: none; border: none; font-size: 12px; color: #888;
    cursor: pointer; padding: 4px 0; font-family: inherit; font-weight: 600;
}
.rv2-reply-toggle-btn:hover { color: #111; }
.rv2-reply-input {
    flex: 1; padding: 8px 11px; border: 1.5px solid #D5D3CE; border-radius: 8px;
    font-size: 13px; font-family: inherit; resize: none; outline: none;
    transition: border-color .2s; min-height: 38px;
}
.rv2-reply-input:focus { border-color: #111; }
.rv2-send-btn {
    padding: 6px 12px; background: #111; color: #fff; border: none;
    border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer;
    font-family: inherit; white-space: nowrap;
}
.rv2-cancel-btn {
    padding: 6px 10px; background: none; color: #888; border: 1.5px solid #D5D3CE;
    border-radius: 7px; font-size: 12px; cursor: pointer; font-family: inherit;
}

/* Quick chips */
.rv2-quick-chips {
    display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px;
    border-top: 1px solid #F0EFEB;
}
.rv2-quick-chip {
    padding: 5px 11px; background: #F6F5F2; border: 1px solid #E5E3DE;
    border-radius: 16px; font-size: 12px; color: #555; cursor: pointer;
    font-family: inherit; transition: all .15s; white-space: nowrap;
}
.rv2-quick-chip:hover { border-color: #E8380D; color: #E8380D; background: #FFF5F3; }

/* Input bar */
.rv2-input-bar {
    display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px;
    border-top: 1px solid #F0EFEB;
}
.rv2-input-av {
    width: 32px; height: 32px; border-radius: 50%; background: #E8380D;
    color: #fff; font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rv2-chat-input {
    flex: 1; padding: 9px 13px; border: 1.5px solid #D5D3CE; border-radius: 20px;
    font-size: 13.5px; font-family: inherit; resize: none; outline: none;
    transition: border-color .2s; line-height: 1.4; overflow: hidden;
}
.rv2-chat-input:focus { border-color: #111; }
.rv2-chat-send {
    width: 36px; height: 36px; border-radius: 50%; background: #E8380D;
    color: #fff; border: none; cursor: pointer; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s;
}
.rv2-chat-send:hover { background: #c72f0a; }

/* Login prompt */
.rv2-login-prompt {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 14px; border-top: 1px solid #F0EFEB;
    font-size: 13px; color: #888;
}

/* ── Lightbox ── */
.rv2-lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.rv2-lightbox-inner { display: flex; align-items: center; justify-content: center; }
.rv2-lightbox-inner img {
    max-width: 90vw; max-height: 90vh; object-fit: contain;
    border-radius: 8px; box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.rv2-lightbox-close {
    position: absolute; top: 16px; right: 20px; z-index: 10;
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 50%; font-size: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.rv2-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.rv2-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 48px; height: 48px; border-radius: 50%; font-size: 24px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.rv2-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.rv2-lightbox-prev { left: 16px; }
.rv2-lightbox-next { right: 16px; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .rv2-top { grid-template-columns: 1fr; }
    .rv2-info-panel { position: static; }
    .rv2-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .rv2-page { padding: 0 14px 32px; }
    .rv2-price { font-size: 22px; }
    .rv2-title { font-size: 16px; }
}
