/* ─── PROS / CONS (dùng trong post_content sản phẩm) ────────── */
.pros-cons-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0;
}
@media (max-width: 500px) { .pros-cons-wrap { grid-template-columns: 1fr; } }
.pros-col, .cons-col {
  border-radius: 14px; padding: 16px 18px; border: 1px solid transparent;
}
.pros-col { background: var(--sage-bg); border-color: #B5D9B8; }
.cons-col { background: #FFF8F8;        border-color: #F5C0C4; }
.pros-head, .cons-head {
  font-size: 14px; font-weight: 700; padding-bottom: 10px;
  margin-bottom: 10px; border-bottom: 1px solid;
  display: flex; align-items: center; gap: 6px;
}
.pros-head { color: var(--sage-d); border-bottom-color: #B5D9B8; }
.cons-head { color: #C44E5A;       border-bottom-color: #F5C0C4; }
.pros-col ul, .cons-col ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.pros-col li, .cons-col li { position: relative; padding-left: 18px; line-height: 1.5; }
.pros-col li::before { content: '✓'; position: absolute; left: 0; color: var(--sage-d); font-weight: 700; }
.cons-col li::before { content: '–'; position: absolute; left: 0; color: #C44E5A; font-weight: 700; }

/* ─── BẢNG SO SÁNH GIÁ & NƠI MUA ───────────────────────────── */
.price-compare-table { width: 100%; border-collapse: collapse; margin: 4px 0; }
.price-compare-table thead th {
  font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; padding: 0 12px 10px; text-align: left; border-bottom: 1px solid var(--border);
}
.price-compare-table tbody tr { border-bottom: 1px solid var(--border); }
.price-compare-table tbody tr:last-child { border-bottom: none; }
.price-compare-table td { padding: 14px 12px; vertical-align: middle; }
.pct-platform { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.pct-price { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; color: var(--rose-d); white-space: nowrap; }
.pct-note { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pct-best { background: var(--sage-bg); color: var(--sage-d); border: 1px solid #B5D9B8; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pct-btn { display: inline-block; background: var(--rose-d); color: #fff; font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 22px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.pct-btn:hover { background: #C0506A; }
@media (max-width: 600px) {
  .price-compare-table thead { display: none; }
  .price-compare-table td { display: block; padding: 6px 0; }
  .price-compare-table tbody tr { display: block; padding: 12px 0; }
}

/* ─── MOBILE STICKY BUY BAR ──────────────────────────────────── */
.mobile-buy-bar {
  display: none;
  position: fixed; bottom: 64px; left: 0; right: 0; z-index: 150;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 10px 16px; gap: 10px; align-items: center;
  box-shadow: 0 -4px 16px rgba(61,35,20,.08);
}
@media (max-width: 767px) { .mobile-buy-bar { display: flex; } }
.mobile-buy-price { flex: 1; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 18px; color: var(--rose-d); }
.mobile-buy-price small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; font-family: 'Be Vietnam Pro', sans-serif; }
.btn-buy-sticky { padding: 11px 22px; border-radius: 22px; background: var(--rose-d); color: var(--white); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .18s; }
.btn-buy-sticky:hover { background: #C0506A; }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin-bottom: 20px; }
.breadcrumb li { font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--border); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--rose-d); }
.breadcrumb [aria-current] { color: var(--rose-d); font-weight: 500; }

/* ─── PRODUCT HERO ───────────────────────────────────────────── */
.prod-hero { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
@media (min-width: 768px) { .prod-hero { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }

/* Gallery */
.prod-gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main {
  width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #FEEAEE 0%, #FAD4DC 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 100px; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.prod-badge-hero { position: absolute; top: 14px; left: 14px; background: #FFF3CD; color: #92600A; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.prod-badge-sale { position: absolute; top: 14px; right: 14px; background: var(--rose-d); color: var(--white); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.prod-thumbs { display: flex; gap: 8px; }
.gallery-thumb { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; border: 2px solid transparent; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 28px; transition: border-color .18s; }
.gallery-thumb.active { border-color: var(--rose-d); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info panel */
.prod-info { display: flex; flex-direction: column; gap: 16px; }
.prod-cat-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--sage-bg); color: var(--sage-d); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-decoration: none; text-transform: uppercase; letter-spacing: .4px; width: fit-content; }
.prod-title { font-family: 'Nunito', sans-serif; font-size: clamp(22px, 4vw, 32px); font-weight: 800; color: var(--brown); line-height: 1.25; }
.prod-rating-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars-lg { color: #F5A623; font-size: 18px; letter-spacing: 2px; }
.rating-val { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 18px; color: var(--brown); }
.rating-cnt { font-size: 13px; color: var(--muted); }
.verified-badge { font-size: 12px; color: var(--sage-d); background: var(--sage-bg); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.prod-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prod-price-current { font-family: 'Nunito', sans-serif; font-size: 32px; font-weight: 800; color: var(--rose-d); line-height: 1; }
.prod-price-old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.prod-price-save { font-size: 13px; font-weight: 700; color: var(--sage-d); background: var(--sage-bg); padding: 3px 10px; border-radius: 20px; }
.prod-updated { font-size: 12px; color: var(--muted); }

/* Specs */
.prod-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec-item { background: var(--light); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.spec-label { font-size: 11px; color: var(--muted); font-weight: 500; }
.spec-val { font-size: 14px; font-weight: 700; color: var(--brown); }

/* Buy buttons */
.buy-section { display: flex; flex-direction: column; gap: 10px; }
.buy-section-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.buy-buttons { display: flex; flex-direction: column; gap: 8px; }
.btn-buy-primary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 14px; background: var(--rose-d); color: var(--white); font-size: 15px; font-weight: 700; text-decoration: none; transition: background .18s; text-align: center; }
.btn-buy-primary:hover { background: #C0506A; }
.btn-buy-primary .platform-price { font-size: 12px; font-weight: 400; opacity: .85; margin-left: auto; }
.btn-buy-secondary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 14px; background: var(--white); color: var(--brown); border: 1.5px solid var(--border); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .18s; text-align: center; }
.btn-buy-secondary:hover { border-color: var(--rose); background: var(--rose-bg); color: var(--rose-d); }
.btn-buy-secondary .platform-price { font-size: 12px; color: var(--muted); margin-left: auto; }
.aff-note { font-size: 12px; color: var(--muted); text-align: center; }

/* ─── DETAIL LAYOUT ──────────────────────────────────────────── */
.prod-detail-layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 32px 0 100px; }
@media (min-width: 1000px) { .prod-detail-layout { grid-template-columns: 1fr 300px; align-items: start; } }

/* Section cards */
.section-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 24px; margin-bottom: 20px; }
.section-title { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 800; color: var(--brown); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px; }

/* Rating detail */
.rating-detail-wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.rating-big { text-align: center; flex-shrink: 0; }
.rating-big .score { font-family: 'Nunito', sans-serif; font-size: 56px; font-weight: 800; color: var(--brown); line-height: 1; }
.rating-big .stars-row { color: #F5A623; font-size: 22px; margin: 4px 0; letter-spacing: 3px; }
.rating-big .cnt { font-size: 12px; color: var(--muted); }
.rating-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 10px; }
.rbar-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rbar-label { width: 80px; flex-shrink: 0; color: var(--text); }
.rbar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.rbar-fill { height: 100%; background: #F5A623; border-radius: 4px; }
.rbar-val { width: 28px; text-align: right; font-weight: 700; color: var(--brown); flex-shrink: 0; }

/* Review body */
.review-body { font-size: 16.5px; line-height: 1.85; color: var(--text); }
@media (min-width: 600px) { .review-body { font-size: 17px; } }
.review-body h2 { font-family: 'Nunito', sans-serif; font-size: clamp(19px, 3vw, 24px); font-weight: 800; color: var(--brown); margin: 32px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.review-body h3 { font-family: 'Nunito', sans-serif; font-size: clamp(16px, 2.5vw, 20px); font-weight: 700; color: var(--brown); margin: 22px 0 10px; }
.review-body p { margin-bottom: 16px; }
.review-body ul, .review-body ol { padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.review-body strong { font-weight: 700; color: var(--brown); }
.review-body blockquote { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--rose-d); background: var(--rose-bg); border-radius: 0 12px 12px 0; font-style: italic; color: var(--brown); }

/* Where to buy table */
.buy-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.buy-table th { text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--border); }
.buy-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.buy-table tr:last-child td { border-bottom: none; }
.buy-table tr:hover td { background: var(--cream); }
.platform-name { font-weight: 600; color: var(--brown); }
.price-cell { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--rose-d); font-size: 15px; }
.best-tag { font-size: 11px; font-weight: 700; color: var(--sage-d); background: var(--sage-bg); padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.btn-table { display: inline-block; padding: 7px 16px; border-radius: 20px; background: var(--rose-d); color: var(--white); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .18s; }
.btn-table:hover { background: #C0506A; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; font-size: 15px; color: var(--brown); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: var(--white); gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; font-weight: 300; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 16px 20px; font-size: 15px; line-height: 1.75; background: var(--white); }

/* Related products */
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.rel-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; transition: box-shadow .18s; display: flex; flex-direction: column; }
.rel-card:hover { box-shadow: var(--shadow-m); }
.rel-thumb { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 40px; background: linear-gradient(135deg, #FEEAEE, #FAD4DC); overflow: hidden; }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rel-cat { font-size: 11px; font-weight: 700; color: var(--sage-d); }
.rel-name { font-size: 13px; font-weight: 600; color: var(--brown); line-height: 1.4; flex: 1; }
.rel-price { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 15px; color: var(--rose-d); margin-top: 4px; }
.rel-stars { font-size: 12px; color: #F5A623; }

/* Sidebar */
.prod-sidebar { display: none; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .prod-sidebar { display: flex; position: sticky; top: 84px; } }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.sidebar-card-title { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800; color: var(--brown); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-buy-price { font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 800; color: var(--rose-d); margin-bottom: 4px; }
.sidebar-buy-old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-bottom: 14px; }
.btn-sidebar-primary { display: block; width: 100%; padding: 13px; border-radius: 12px; text-align: center; background: var(--rose-d); color: var(--white); font-size: 15px; font-weight: 700; text-decoration: none; margin-bottom: 8px; transition: background .18s; }
.btn-sidebar-primary:hover { background: #C0506A; }
.btn-sidebar-secondary { display: block; width: 100%; padding: 11px; border-radius: 12px; text-align: center; background: var(--white); color: var(--brown); border: 1.5px solid var(--border); font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 6px; transition: all .18s; }
.btn-sidebar-secondary:hover { border-color: var(--rose); background: var(--rose-bg); }
.sidebar-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-nav a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; transition: all .18s; }
.toc-nav a:hover, .toc-nav a.active { color: var(--rose-d); border-left-color: var(--rose-d); background: var(--rose-bg); }
.toc-nav .toc-h3 { padding-left: 22px; font-size: 12px; }
