/* ===== VTD GROUP – giao diện công khai ===== */
:root {
  --navy: #13306B;
  --navy-900: #0B1F47;
  --navy-700: #2E4C8A;
  --gold: #F2B21B;
  --gold-text: #8A5F00;
  --ink: #0F1B33;
  --muted: #4A5876;
  --line: #DCE2EC;
  --gray: #F4F6FA;
  --tint: #EEF2F8;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-900); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy-900); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .1s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #E3A40E; color: var(--navy-900); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--navy-900); }
.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }

/* Thanh trên + đầu trang */
.topbar { background: var(--navy-900); color: #DCE3F0; font-size: 13px; }
.topbar a { color: var(--gold); font-weight: 700; text-decoration: none; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; gap: 14px 28px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-img { max-height: 52px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.logo-first { color: var(--gold-text); }
.logo-tag { font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1 1 400px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--gold-text); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.search input { min-height: 44px; width: 200px; border: 1px solid #C9D1E0; border-radius: 10px; padding: 0 12px; font: inherit; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid #C9D1E0; border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; margin-left: auto; }

/* Khối */
.section { padding: 64px 0; }
.s-gray { background: var(--gray); }
.s-dark { background: var(--navy-900); color: #fff; }
.s-dark .muted { color: #C3CEE3; }
.s-dark a.more { color: var(--gold); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section h2 { font-size: 32px; font-weight: 800; color: var(--navy); }
.s-dark h2 { color: #fff; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 6px; }
.s-dark .eyebrow { color: var(--gold); }
.more { font-weight: 700; text-decoration: none; }
.grid { display: grid; gap: 20px; }
.cats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.reasons { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* Hero */
.hero { background: var(--navy); color: #fff; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.hero .lead { font-size: 18px; color: #D3DCEC; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); margin-bottom: 18px; text-transform: uppercase; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; border: 3px solid var(--gold); }
.checks { list-style: none; padding: 18px 0 0; margin: 16px 0 0; border-top: 1px solid var(--navy-700); display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.checks.dark-text { border-top-color: var(--line); flex-direction: column; color: var(--ink); }
.checks.dark-text li::before { border-color: var(--navy); }

/* Danh mục */
.cat { display: flex; flex-direction: column; gap: 10px; padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--navy); transform: translateY(-2px); color: var(--ink); }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.cat-name { font-size: 17px; font-weight: 700; color: var(--navy); }
.cat .muted { font-size: 14px; }

/* Thẻ sản phẩm */
.product { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.product-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tint); color: #8C9AB5; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #8C9AB5; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--navy); color: #fff; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 15px; font-weight: 600; margin: 0; }
.product h3 a { text-decoration: none; color: var(--ink); }
.product .muted { font-size: 13px; margin: 0; }
.price { margin-top: auto; padding-top: 6px; }
.price strong { font-size: 19px; font-weight: 800; color: var(--navy); }
.price s { color: var(--muted); font-size: 14px; margin-right: 6px; }
.price.big strong { font-size: 28px; }
.product .btn { margin-top: 8px; }
.product.dark { background: var(--navy); border-color: var(--navy-700); }
.product.dark .product-img { background: #1A3B7A; }
.product.dark h3 a { color: #fff; }
.product.dark .muted { color: #C3CEE3; }
.product.dark .price strong { color: var(--gold); }

/* Tab lọc */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #C9D1E0; background: #fff; color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.count { margin: 0 0 12px; }

/* Lý do */
.reason { padding: 24px; border-radius: var(--radius); background: var(--gray); display: flex; flex-direction: column; gap: 6px; }
.s-gray .reason { background: #fff; }
.s-dark .reason { background: var(--navy); }
.reason-n { font-size: 32px; font-weight: 800; color: var(--gold-text); }
.s-dark .reason-n { color: var(--gold); }
.reason-t { font-size: 18px; font-weight: 800; color: var(--navy); }
.s-dark .reason-t { color: #fff; }
.section .center { margin-bottom: 28px; }

/* Chia đôi + liên hệ */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: start; }
.split-img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 3; object-fit: cover; }
.info { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 16px 0; }
.info dt { font-weight: 700; color: var(--navy); }
.info dd { margin: 0; }
.s-dark .info dt { color: var(--gold); }
.s-dark .info a { color: #fff; }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--radius); margin-top: 8px; }
.lead-form { padding: 26px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.lead-form h2 { font-size: 22px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.lead-form input, .lead-form select, .lead-form textarea { min-height: 46px; border: 1px solid #A9B4C8; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink); }
.lead-form .btn { min-height: 52px; font-size: 16px; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }
.alert.ok { background: #E7F6EC; color: #14532D; border: 1px solid #A7DDB8; }
.alert.err { background: #FDECEC; color: #8A1C1C; border: 1px solid #F3B4B4; }

/* Trang con */
.page-head { background: var(--gray); border-bottom: 1px solid var(--line); padding: 32px 0; }
.page-head.slim { padding: 14px 0; }
.page-head h1 { font-size: 34px; font-weight: 800; color: var(--navy); }
.page-head .lead { color: var(--muted); margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; }
.empty { text-align: center; padding: 40px 0; }
.product-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: start; }
.pd-img { border-radius: 16px; overflow: hidden; background: var(--tint); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.pd-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pd-info h1 { font-size: 30px; font-weight: 800; color: var(--navy); }
.pd-content { margin: 16px 0; padding: 16px; background: var(--gray); border-radius: 12px; }

/* Chân trang */
.footer { background: var(--navy-900); color: #C3CEE3; font-size: 14px; }
.footer a { color: #E6ECF6; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 32px; }
.footer h2 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; margin-bottom: 8px; }
.footer-brand .logo-name { color: #fff; font-size: 20px; }
.footer-brand .logo-first { color: var(--gold); }
.footer-bottom { border-top: 1px solid #22386A; text-align: center; padding: 14px 24px; font-size: 13px; }

/* Nút nổi + thanh dưới (mobile) */
.float-btns { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.float-btns a { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; font-size: 12px; box-shadow: 0 4px 14px rgba(11,31,71,.3); }
.float-zalo { background: var(--navy); color: #fff; }
.float-zalo:hover { color: #fff; }
.float-call { background: var(--gold); color: var(--navy-900); }
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--tint); }
  .header-actions { flex-basis: 100%; order: 3; }
  .search { flex: 1; }
  .search input { width: 100%; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 24px; }
  .hero-grid { padding-top: 28px; padding-bottom: 36px; gap: 24px; }
  .hero-img { order: -1; }
  .topbar-in span:first-child { display: none; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { padding: 14px; }
  .cat .muted { display: none; }
  .cat-name { font-size: 15px; }
  .product-body { padding: 10px; }
  .product .muted { display: none; }
  .price strong { font-size: 16px; }
  .float-btns { display: none; }
  .mobile-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #C9D1E0; z-index: 60; }
  .mobile-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 800; text-decoration: none; font-size: 14px; }
  .mb-call { background: var(--gold); color: var(--navy-900); }
  .mb-zalo { background: var(--navy); color: #fff; }
  .mb-quote { border: 1.5px solid var(--navy); color: var(--navy); }
  body { padding-bottom: 72px; }
  .split { grid-template-columns: 1fr; }
  .product-detail, .hero-grid { grid-template-columns: 1fr; }
}

/* ===== Đánh giá ===== */
.stars { position: relative; display: inline-block; line-height: 0; vertical-align: -2px; white-space: nowrap; }
.stars svg { display: inline-block; margin-right: 1px; }
.stars-bg svg { fill: #D5DBE6; }
.stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; }
.stars-fg svg { fill: #F2A900; }
.s-dark .stars-bg svg { fill: #3B5998; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.product.dark .card-rating { color: #C3CEE3; }
.pd-rating { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 8px; }
.reviews-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 32px; align-items: start; }
.rv-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.rv-summary { padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rv-avg { font-size: 48px; font-weight: 800; color: var(--navy); line-height: 1; }
.rv-avg small { font-size: 18px; color: var(--muted); font-weight: 600; }
.rv-dist { list-style: none; margin: 10px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rv-dist li { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 8px; }
.rv-dist .bar { height: 8px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.rv-dist .bar span { display: block; height: 100%; background: #F2A900; border-radius: 99px; }
.rv-dist .n { text-align: right; color: var(--muted); }
.rv-empty { margin: 0; color: var(--muted); }
.rv-write summary { list-style: none; }
.rv-write summary::-webkit-details-marker { display: none; }
.rv-write[open] summary { margin-bottom: 12px; }
.rv-list { display: flex; flex-direction: column; gap: 14px; }
.rv { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rv:first-child { padding-top: 0; }
.rv header { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.rv p { margin: 0; }
.rv-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.rv-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 2px; }
.rv-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.rv-badge.ok { background: #E7F6EC; color: #14532D; }
.rv-reply { margin-top: 10px; padding: 10px 14px; background: var(--gray); border-left: 3px solid var(--gold); border-radius: 6px; font-size: 14px; }
.review-form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.review-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.review-form input:not([type=radio]), .review-form select, .review-form textarea { min-height: 46px; border: 1px solid #A9B4C8; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }
.review-form .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.review-form .small, .small { font-size: 13px; margin: 0; }
.req { color: #B42318; }
.hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; padding: 0; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { cursor: pointer; padding: 2px; border-radius: 6px; }
.star-row label svg { fill: #D5DBE6; transition: fill .1s, transform .1s; }
.star-row input:checked ~ label svg, .star-row label:hover svg, .star-row label:hover ~ label svg { fill: #F2A900; }
.star-row:hover input:checked ~ label svg { fill: #D5DBE6; }
.star-row:hover label:hover svg, .star-row:hover label:hover ~ label svg { fill: #F2A900; }
.star-row input:focus-visible + label { outline: 3px solid var(--gold); }
.testimonials { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.testi { margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.testi blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); flex: 1; }
.testi figcaption { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.rv-total { display: flex; align-items: center; gap: 8px; }
.narrow { max-width: 720px; }
.invite-product { display: flex; gap: 14px; align-items: center; padding: 14px; margin-bottom: 16px; }
.invite-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.invite-product .eyebrow { display: block; margin: 0; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #C9D1E0; text-decoration: none; font-weight: 700; }
.pager a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 760px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .rv-side { position: static; }
  .card-rating span { display: none; }
}

.review-form label { display: block; }
.review-form label > input, .review-form label > select, .review-form label > textarea { display: block; width: 100%; margin-top: 6px; }
