/* =========================================================================
 * Web3s Theme - web3s-features.css
 * Wishlist · Compare · Reviews · Variations · Marketing
 * ========================================================================= */
:root { --wf-primary: #e4342b; }

/* ---- Nút Wishlist / Compare (card overlay) ---- */
.btn-wishlist, .btn-compare {
  background: #fff; border: none; border-radius: 50%;
  width: 38px; height: 38px; cursor: pointer; color: #64748b;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: all .2s ease;
}
.btn-wishlist:hover, .btn-compare:hover { background: var(--wf-primary); color: #fff; }
.btn-wishlist.active { background: var(--wf-primary); color: #fff; }
.btn-wishlist.active .dashicons { animation: wf-pop .3s ease; }
@keyframes wf-pop { 0%{transform:scale(1)} 50%{transform:scale(1.35)} 100%{transform:scale(1)} }
.btn-compare.active { background: #3b82f6; color: #fff; }

/* Trên single */
.product-extra-actions { display: flex; gap: 10px; margin-top: 14px; }
.product-extra-actions .btn-wishlist,
.product-extra-actions .btn-compare {
  width: auto; height: auto; border-radius: 8px; padding: 8px 14px; gap: 6px;
  border: 1px solid var(--border-color, #e2e8f0); box-shadow: none; font-size: 13px; font-weight: 600;
}
.product-extra-actions .btn-wishlist::after { content: " Yêu thích"; }
.product-extra-actions .btn-compare::after { content: " So sánh"; }

/* ---- Biến thể (Màu / Size) ---- */
.product-variations { margin: 16px 0; }
.variation-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.variation-name { font-weight: 600; min-width: 60px; }
.variation-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variation-opt {
  padding: 7px 16px; border: 1.5px solid var(--border-color, #e2e8f0); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 14px; transition: all .2s ease;
}
.variation-opt:hover { border-color: var(--wf-primary); }
.variation-opt.active { border-color: var(--wf-primary); background: #fff7f6; color: var(--wf-primary); font-weight: 600; }

/* ---- Cart item variant ---- */
.cart-item-variant { font-size: 12px; color: #64748b; margin: 2px 0; }

/* ---- Sao đánh giá ---- */
.web3s-stars { display: inline-flex; }
.web3s-stars .dashicons { width: 1em; height: 1em; }
.web3s-stars .star-on { color: #f59e0b; }
.web3s-stars .star-off { color: #d1d5db; }

/* ---- Khối đánh giá ---- */
.web3s-reviews { max-width: 760px; }
.reviews-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg-light, #f8fafc); border-radius: 12px; padding: 18px 22px; margin-bottom: 20px; flex-wrap: wrap;
}
.reviews-score { display: flex; align-items: center; gap: 10px; }
.reviews-score .score-num { font-size: 32px; font-weight: 800; color: var(--wf-primary); }
.reviews-score .score-count { color: #64748b; font-size: 13px; }

.review-form { background: #fff; border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; padding: 22px; margin-bottom: 22px; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.review-form h4 { margin: 0 0 14px; }
.review-rating-input { font-size: 30px; margin-bottom: 12px; }
.review-rating-input .star-pick { color: #d1d5db; cursor: pointer; transition: transform .1s ease; }
.review-rating-input .star-pick.on { color: #f59e0b; }
.review-rating-input .star-pick:hover { transform: scale(1.2); }
.review-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-form .form-control { width: 100%; margin-bottom: 12px; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--border-color, #e2e8f0); border-radius: 10px; }
.review-upload { margin-bottom: 14px; }
.review-upload-label {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 9px 16px; border: 1.5px dashed var(--border-color, #cbd5e1); border-radius: 10px; color: #64748b; font-size: 13px;
}
.review-upload-label:hover { border-color: var(--wf-primary); color: var(--wf-primary); }
.review-previews { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.review-previews .rev-pv img, .review-images img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #eee;
}
.review-msg { margin-top: 10px; font-weight: 600; }
.review-msg.ok { color: #059669; }
.review-msg.err { color: #dc2626; }

.review-item { border-bottom: 1px solid #f1f5f9; padding: 16px 0; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-author { font-weight: 700; }
.review-date { color: #94a3b8; font-size: 12px; margin-left: auto; }
.review-content { margin: 8px 0; line-height: 1.6; }
.review-images { display: flex; gap: 8px; flex-wrap: wrap; }
.review-images img { cursor: zoom-in; transition: transform .2s ease; }
.review-images img:hover { transform: scale(1.05); }
.reviews-empty { color: #94a3b8; padding: 20px 0; }

/* ---- Bảng so sánh ---- */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table th, .compare-table td { border: 1px solid var(--border-color, #e2e8f0); padding: 14px; vertical-align: top; }
.compare-cell-head { position: relative; text-align: center; }
.compare-cell-head img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; display: block; margin: 0 auto 8px; }
.compare-name { font-weight: 600; }
.compare-remove { position: absolute; top: 0; right: 0; background: #fee2e2; color: #b91c1c; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; }
.compare-label { background: var(--bg-light, #f8fafc); font-weight: 600; width: 120px; }
.compare-specs { font-size: 13px; }

/* Thanh so sánh nổi */
#web3s-compare-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 9997;
  background: #1a1a2e; color: #fff; padding: 12px 18px; border-radius: 40px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: 14px;
}
#web3s-compare-bar .cmp-clear { background: none; border: none; color: #cbd5e1; cursor: pointer; text-decoration: underline; }
@media (max-width:768px){ #web3s-compare-bar { bottom: 72px; } }

/* ---- Chat nổi ---- */
.web3s-float-chat { position: fixed; right: 16px; bottom: 20px; z-index: 9996; display: flex; flex-direction: column; gap: 10px; }
@media (max-width:768px){ .web3s-float-chat { bottom: 74px; } }
.wfc-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.25); font-size: 13px; animation: wf-bounce 2s infinite;
}
.wfc-phone { background: #10b981; } .wfc-zalo { background: #0068ff; } .wfc-mess { background: #0084ff; }
.wfc-btn .dashicons { font-size: 26px; }
@keyframes wf-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ---- Đếm ngược ---- */
.web3s-countdown {
  background: linear-gradient(90deg, #b91c1c, var(--wf-primary)); color: #fff; text-align: center;
  padding: 8px 12px; font-weight: 600; font-size: 14px; position: sticky; top: 0; z-index: 9994;
}
.web3s-countdown .cd-clock { font-family: monospace; font-size: 16px; background: rgba(0,0,0,.2); padding: 2px 8px; border-radius: 4px; margin-left: 6px; }

/* ---- Popup ---- */
.web3s-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 10001;
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .3s;
}
.web3s-popup-overlay.show { opacity: 1; visibility: visible; }
.web3s-popup {
  background: #fff; border-radius: 16px; padding: 34px 30px; max-width: 400px; width: 92%;
  text-align: center; position: relative; transform: scale(.9); transition: .3s;
}
.web3s-popup-overlay.show .web3s-popup { transform: scale(1); }
.web3s-popup h3 { margin: 0 0 10px; font-size: 22px; color: var(--wf-primary); }
.web3s-popup-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 26px; cursor: pointer; color: #94a3b8; }
.popup-code { background: var(--bg-light,#f8fafc); border: 1px dashed var(--wf-primary); border-radius: 8px; padding: 10px; margin: 12px 0; }
.popup-form { display: flex; gap: 8px; margin-top: 12px; }
.popup-form .form-control { flex: 1; padding: 11px 14px; border: 1px solid var(--border-color,#e2e8f0); border-radius: 10px; }
.popup-msg { margin-top: 10px; color: #059669; font-weight: 600; }

/* ---- Sale pop ---- */
.web3s-sale-pop {
  position: fixed; left: 16px; bottom: 20px; z-index: 9995; background: #fff;
  border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); max-width: 300px;
  transform: translateX(-120%); transition: transform .4s ease; overflow: hidden;
}
.web3s-sale-pop.show { transform: translateX(0); }
.web3s-sale-pop .wsp-inner { display: flex; gap: 10px; padding: 10px; color: #1e293b; align-items: center; }
.web3s-sale-pop img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.web3s-sale-pop span { font-size: 12.5px; line-height: 1.4; }
.web3s-sale-pop em { display: block; color: #94a3b8; font-size: 11px; font-style: normal; }
@media (max-width:768px){ .web3s-sale-pop { bottom: 74px; max-width: 250px; } }

/* ---- Quickview (xem nhanh) ---- */
.web3s-qv-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 10003;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: .25s;
}
.web3s-qv-overlay.show { opacity: 1; visibility: visible; }
.web3s-qv-box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 820px;
  max-height: 90vh; overflow-y: auto; position: relative;
  transform: scale(.94); transition: .25s;
}
.web3s-qv-overlay.show .web3s-qv-box { transform: scale(1); }
.web3s-qv-close {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  background: #fff; border: 1px solid var(--border-color,#e2e8f0); border-radius: 50%;
  width: 34px; height: 34px; font-size: 22px; line-height: 1; cursor: pointer; color: #64748b;
}
.qv-loading { padding: 60px; text-align: center; color: #94a3b8; }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.qv-main-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; background: var(--bg-light,#f8fafc); }
.qv-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.qv-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.qv-thumb:hover { border-color: var(--wf-primary); }
.qv-title { font-size: 20px; margin: 0 0 12px; line-height: 1.35; }
.qv-title a { color: var(--text-color,#2b3445); }
.qv-price { font-size: 22px; font-weight: 800; color: var(--wf-primary); margin-bottom: 12px; }
.qv-excerpt { color: #64748b; line-height: 1.6; margin-bottom: 16px; font-size: 14px; }
.qv-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 640px) {
  .qv-grid { grid-template-columns: 1fr; padding: 20px; }
  .qv-main-img { aspect-ratio: 4/3; }
}

/* =========================================================================
 * TRANG TIN TỨC (news archive)
 * ========================================================================= */
.news-head { margin-bottom: 24px; }
.archive-title { font-size: 26px; margin: 0 0 8px; }
.archive-desc { color: var(--text-muted,#64748b); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--border-color,#e2e8f0); border-radius: 14px; overflow: hidden; transition: all .25s ease; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover,0 10px 25px rgba(0,0,0,.12)); }
.news-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-light,#f8fafc); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: #cbd5e1; }
.news-noimg .dashicons { font-size: 46px; width: 46px; height: 46px; }
.news-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: 12px; color: var(--text-muted,#64748b); margin-bottom: 8px; }
.news-meta .dashicons { font-size: 14px; width: 14px; height: 14px; vertical-align: -2px; }
.news-cat { color: var(--primary,#e4342b); font-weight: 600; }
.news-title { font-size: 16px; line-height: 1.4; margin: 0 0 8px; }
.news-title a { color: var(--text-color,#2b3445); }
.news-title a:hover { color: var(--primary,#e4342b); }
.news-excerpt { font-size: 13.5px; color: var(--text-muted,#64748b); line-height: 1.6; flex: 1; }
.news-more { margin-top: 12px; font-weight: 700; color: var(--primary,#e4342b); font-size: 14px; }
.news-pagination { margin-top: 30px; text-align: center; }
@media (max-width: 992px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* =========================================================================
 * MODULE: Chi nhánh / Liên hệ / Tuyển dụng / Giới thiệu
 * ========================================================================= */
.branches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.branch-card { border: 1px solid var(--border-color,#e2e8f0); border-radius: 14px; overflow: hidden; background: #fff; }
.branch-map { aspect-ratio: 16/10; }
.branch-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.branch-info { padding: 18px; }
.branch-info h3 { margin: 0 0 12px; color: var(--primary,#e4342b); }
.branch-info p { margin: 6px 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.branch-info .dashicons { color: var(--primary,#e4342b); flex: 0 0 auto; }
.branch-info .btn { margin-top: 10px; }
@media (max-width:768px){ .branches-grid { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: start; }
.contact-info, .contact-form-wrap { background: #fff; border: 1px solid var(--border-color,#e2e8f0); border-radius: 14px; padding: 24px; }
.contact-info p { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.contact-info .dashicons { color: var(--primary,#e4342b); }
.contact-form .form-control { width: 100%; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--border-color,#e2e8f0); border-radius: 10px; box-sizing: border-box; }
.contact-map { margin-top: 24px; border-radius: 14px; overflow: hidden; }
.contact-map iframe { width: 100%; min-height: 340px; border: 0; display: block; }
@media (max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }

.jobs-list { display: grid; gap: 18px; }
.job-card { border: 1px solid var(--border-color,#e2e8f0); border-radius: 14px; padding: 20px 22px; background: #fff; }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.job-head h3 { margin: 0; }
.job-salary { background: #ecfdf5; color: #065f46; padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 14px; }
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-muted,#64748b); font-size: 13px; margin: 10px 0; }
.job-desc { font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.job-apply-form { max-width: 480px; margin: 24px auto 0; background: #fff; border: 1px solid var(--border-color,#e2e8f0); border-radius: 14px; padding: 24px; }
.job-apply-form .form-control { width: 100%; margin-bottom: 12px; padding: 11px 14px; border: 1px solid var(--border-color,#e2e8f0); border-radius: 10px; box-sizing: border-box; }
.web3s-about { max-width: 820px; line-height: 1.7; }

/* =========================================================================
 * AFFILIATE (tab tài khoản)
 * ========================================================================= */
.aff-link-box { background: var(--bg-light,#f8fafc); border: 1px solid var(--border-color,#e2e8f0); border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.aff-link-row { display: flex; gap: 8px; margin-top: 6px; }
.aff-link-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--border-color,#e2e8f0); border-radius: 8px; font-size: 13px; }
.aff-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.aff-stat { background: #fff; border: 1px solid var(--border-color,#e2e8f0); border-radius: 12px; padding: 16px; text-align: center; }
.aff-stat-label { display: block; font-size: 12px; color: var(--text-muted,#64748b); }
.aff-stat-num { display: block; font-size: 22px; font-weight: 800; margin-top: 4px; }
.aff-refs { list-style: none; padding: 0; margin: 0; }
.aff-refs li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; }
.aff-refs small { color: var(--text-muted,#94a3b8); }
.aff-withdraw-form .form-control { width: 100%; margin-bottom: 12px; padding: 11px 14px; border: 1px solid var(--border-color,#e2e8f0); border-radius: 10px; box-sizing: border-box; }
@media (max-width:600px){ .aff-stats { grid-template-columns: 1fr; } }

/* =========================================================================
 * CHI TIẾT BÀI VIẾT (single post)
 * ========================================================================= */
.single-post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; margin-top: 16px; }
.single-article { background: #fff; }
.post-cat-badge { display: inline-block; background: var(--primary,#e4342b); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.single-post-title { font-size: 30px; line-height: 1.3; margin: 14px 0 14px; }
.single-post-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--text-muted,#64748b); font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--border-color,#e2e8f0); margin-bottom: 20px; }
.single-post-meta .spm-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-color,#2b3445); }
.single-post-meta img { border-radius: 50%; }
.single-post-meta .dashicons { font-size: 15px; width: 15px; height: 15px; vertical-align: -3px; }
.single-post-thumb { margin-bottom: 22px; border-radius: 12px; overflow: hidden; }
.single-post-thumb img { width: 100%; height: auto; display: block; }
.single-post-content { font-size: 16px; line-height: 1.8; color: #334155; }
.single-post-content h2 { font-size: 23px; margin: 28px 0 12px; }
.single-post-content h3 { font-size: 19px; margin: 22px 0 10px; }
.single-post-content p { margin: 0 0 16px; }
.single-post-content img { border-radius: 10px; height: auto; margin: 10px 0; }
.single-post-content ul, .single-post-content ol { margin: 0 0 16px 22px; line-height: 1.8; }
.single-post-content blockquote { border-left: 4px solid var(--primary,#e4342b); background: var(--bg-light,#f8fafc); margin: 18px 0; padding: 12px 18px; border-radius: 0 8px 8px 0; color: #475569; }
.single-post-tags { margin: 24px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.single-post-tags a { background: var(--bg-light,#f8fafc); color: #475569; padding: 5px 12px; border-radius: 20px; font-size: 13px; }
.single-post-tags a:hover { background: var(--primary,#e4342b); color: #fff; }
.single-post-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--border-color,#e2e8f0); border-bottom: 1px solid var(--border-color,#e2e8f0); margin-bottom: 24px; }
.single-post-share span:first-child { font-weight: 700; }
.single-post-share a, .single-post-share button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; color: #fff; }
.single-post-share .share-fb { background: #1877f2; } .single-post-share .share-zalo { background: #0068ff; } .single-post-share .share-copy { background: #64748b; }
.single-author-box { display: flex; gap: 16px; align-items: center; background: var(--bg-light,#f8fafc); border-radius: 14px; padding: 20px; margin-top: 20px; }
.single-author-box img { border-radius: 50%; flex: 0 0 auto; }
.single-author-box strong { font-size: 16px; }
.single-author-box p { margin: 4px 0 0; color: var(--text-muted,#64748b); font-size: 13.5px; }
.single-post-sidebar { position: sticky; top: 90px; }
@media (max-width: 992px){ .single-post-layout { grid-template-columns: 1fr; } .single-post-sidebar { position: static; } .single-post-title { font-size: 24px; } }

/* =========================================================================
 * CHI TIẾT TUYỂN DỤNG
 * ========================================================================= */
.job-single { max-width: 820px; margin: 16px auto; background: #fff; border: 1px solid var(--border-color,#e2e8f0); border-radius: 16px; padding: 30px 34px; }
.job-single-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.job-single-head h1 { margin: 0; font-size: 26px; }
.job-single-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-muted,#64748b); margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--border-color,#e2e8f0); border-bottom: 1px solid var(--border-color,#e2e8f0); }
.job-single-meta .dashicons { color: var(--primary,#e4342b); vertical-align: -3px; }
.job-single-body { line-height: 1.8; font-size: 15px; margin-bottom: 20px; }

/* =========================================================================
 * GIỚI THIỆU (about) + Load more tin tức
 * ========================================================================= */
.web3s-about { max-width: 860px; margin: 0 auto; line-height: 1.8; font-size: 16px; }
.web3s-about h2 { font-size: 26px; margin: 0 0 16px; }
.web3s-about img { border-radius: 12px; }
.news-loadmore-wrap { text-align: center; margin-top: 30px; }
#news-loadmore { min-width: 220px; }
.news-loading { margin-top: 12px; color: var(--text-muted,#64748b); }

/* =========================================================================
 * TIN TỨC: TTS / Mục lục / Tiến trình đọc
 * ========================================================================= */
.web3s-read-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--primary,#e4342b); z-index: 99999; transition: width .1s linear; }
.web3s-tts-bar { margin: 0 0 16px; }
#web3s-tts-btn .dashicons { vertical-align: -4px; }
.web3s-toc { background: var(--bg-light,#f8fafc); border: 1px solid var(--border-color,#e2e8f0); border-left: 4px solid var(--primary,#e4342b); border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; }
.web3s-toc .toc-title { font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.web3s-toc .toc-toggle { background: none; border: none; color: var(--primary,#e4342b); cursor: pointer; font-size: 13px; }
.web3s-toc ul { list-style: none; margin: 0; padding: 0; }
.web3s-toc li { padding: 4px 0; }
.web3s-toc li.toc-h3 { padding-left: 18px; font-size: 13.5px; }
.web3s-toc a { color: #334155; }
.web3s-toc a:hover { color: var(--primary,#e4342b); }

/* =========================================================================
 * VIDEO (embed + thư viện)
 * ========================================================================= */
.web3s-video-embed { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; background: #000; margin: 12px 0; }
.web3s-video-embed iframe, .web3s-video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.web3s-video-embed.tiktok { padding-bottom: 0; height: auto; background: transparent; }
.web3s-videos-grid { display: grid; gap: 22px; }
.web3s-videos-grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.web3s-videos-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.web3s-videos-grid.cols-4 { grid-template-columns: repeat(4,1fr); }
.video-card { background: #fff; border: 1px solid var(--border-color,#e2e8f0); border-radius: 12px; overflow: hidden; }
.video-card .web3s-video-embed { margin: 0; border-radius: 0; }
.video-card-title { padding: 12px 14px; font-weight: 600; font-size: 14px; }
@media (max-width:768px){ .web3s-videos-grid.cols-3, .web3s-videos-grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width:520px){ .web3s-videos-grid { grid-template-columns: 1fr !important; } }

/* =========================================================================
 * Trending / Bookmark / Comment ảnh / Newsletter / Livestream / Video modal
 * ========================================================================= */
.web3s-trending-list { list-style: none; counter-reset: tr; margin: 14px 0 0; padding: 0; }
.web3s-trending-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.web3s-trending-list .tr-num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--primary,#e4342b); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.web3s-trending-list .tr-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; display: block; }
.web3s-trending-list .tr-info { min-width: 0; }
.web3s-trending-list .tr-info a { font-weight: 600; font-size: 14px; }
.web3s-trending-list .tr-info small { display: block; color: var(--text-muted,#94a3b8); font-size: 12px; }

.web3s-bookmark-bar { margin-bottom: 14px; }
.js-bookmark.active { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.js-bookmark.active .dashicons { color: #f59e0b; }

.comment-form-image { margin: 8px 0; }
.comment-image { margin-top: 10px; }
.comment-image img { max-width: 220px; border-radius: 10px; border: 1px solid #eee; cursor: zoom-in; }

.web3s-newsletter { background: linear-gradient(135deg,#0f172a,#1e3a8a); color: #fff; border-radius: 14px; padding: 26px 28px; }
.web3s-newsletter h3 { color: #fff; margin: 0 0 6px; }
.web3s-newsletter p { color: #cbd5e1; margin: 0 0 14px; }
.newsletter-form { display: flex; gap: 8px; max-width: 460px; }
.newsletter-form .form-control { flex: 1; padding: 12px 14px; border: none; border-radius: 10px; }
.newsletter-msg { margin-top: 10px; font-weight: 600; }

.web3s-live .live-head h2 { display: flex; align-items: center; gap: 10px; }
.live-dot { color: #e4342b; animation: w3-blink 1s infinite; }
@keyframes w3-blink { 50% { opacity: .35; } }
.live-video { max-width: 900px; margin: 0 auto 24px; }
.live-products h3 { margin: 22px 0 12px; }
.web3s-live-float { position: fixed; left: 16px; bottom: 90px; z-index: 9996; background: #e4342b; color: #fff; font-weight: 800; padding: 10px 16px; border-radius: 30px; box-shadow: 0 6px 20px rgba(228,52,43,.5); animation: w3-blink 1.4s infinite; }
@media(max-width:768px){ .web3s-live-float { bottom: 130px; } }

.web3s-vm-content .web3s-video-embed, .web3s-vm-content .sanpham-video-wrap { margin: 0; }

/* =========================================================================
 * BÌNH LUẬN (đẹp)
 * ========================================================================= */
.web3s-comments { margin-top: 34px; }
.comments-title, .comment-reply-title { font-size: 18px; margin: 0 0 18px; }
.comment-list { list-style: none; margin: 0 0 26px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 12px 0 0 clamp(20px, 6vw, 54px); padding: 0; }
.web3s-comment { margin-bottom: 14px; }
.wc-body { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border-color,#e2e8f0); border-radius: 14px; padding: 16px 18px; }
.wc-avatar img { border-radius: 50%; display: block; }
.wc-main { flex: 1; min-width: 0; }
.wc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.wc-author { font-weight: 700; }
.wc-date { color: var(--text-muted,#94a3b8); font-size: 12px; }
.wc-text { line-height: 1.65; color: #334155; }
.wc-text p { margin: 0 0 8px; }
.wc-moderation { color: #f59e0b; font-size: 13px; }
.wc-actions { margin-top: 8px; }
.wc-actions a { font-size: 13px; font-weight: 600; color: var(--primary,#e4342b); }
.comment-image img { max-width: 220px; border-radius: 10px; border: 1px solid #eee; margin-top: 8px; }

/* Form bình luận */
.web3s-comment-form, .comment-form { background: #fff; border: 1px solid var(--border-color,#e2e8f0); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-sm,0 1px 3px rgba(0,0,0,.05)); }
.comment-form .form-control { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--border-color,#e2e8f0); border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.comment-form .form-control:focus { outline: none; border-color: var(--primary,#e4342b); box-shadow: 0 0 0 3px rgba(228,52,43,.1); }
.comment-form textarea.form-control { min-height: 100px; resize: vertical; }
.comment-form .comment-form-author, .comment-form .comment-form-email { display: inline-block; width: calc(50% - 6px); vertical-align: top; }
.comment-form .comment-form-author { margin-right: 10px; }
.comment-form .form-submit { margin: 6px 0 0; }
.comment-form .submit { border-radius: 10px; }
.comment-form .comment-form-image .review-upload-label { margin-bottom: 12px; }
@media (max-width: 560px){ .comment-form .comment-form-author, .comment-form .comment-form-email { width: 100%; margin-right: 0; } }

/* ---- Toast ---- */
.web3s-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 20px);
  background: #1a1a2e; color: #fff; padding: 11px 20px; border-radius: 30px; z-index: 10002;
  font-size: 14px; opacity: 0; transition: all .3s ease; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.web3s-toast.show { opacity: 1; transform: translate(-50%, 0); }
