/* CSS riêng cho các trang con (không dùng ở trang chủ): danh mục, chi tiết, giới thiệu, liên hệ, giỏ hàng, chính sách */
/* ---------- Breadcrumb + page hero chung ---------- */
.breadcrumb-section { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: .85rem 0; }
.breadcrumb-section .breadcrumb { margin: 0; font-size: .86rem; } .breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }
.breadcrumb-item a { color: var(--ink-2); } .breadcrumb-item a:hover { color: var(--primary-color); } .breadcrumb-item.active { color: var(--muted); }
.page-title-bar { padding: 2.2rem 0 1.4rem; } .page-title-bar h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin: 0; }

/* ---------- Đầu trang con ---------- */
.page-head { padding: 1.5rem 0 2rem; background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 7%, var(--light-color, #fff)), #fff); border-bottom: 1px solid var(--line); }
.page-head .breadcrumb { margin: 0 0 1rem; font-size: .86rem; }
.page-head .breadcrumb-item a { color: var(--ink-2); } .page-head .breadcrumb-item a:hover { color: var(--primary-color); } .page-head .breadcrumb-item.active { color: var(--muted); }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; margin: 0; text-wrap: balance; }
.page-lead { margin: .6rem 0 0; color: var(--muted); max-width: 70ch; font-size: 1.02rem; }
.page-kicker { display: inline-block; margin-bottom: .5rem; color: var(--primary-color); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Danh mục sản phẩm: sidebar + lưới ---------- */
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 2rem; align-items: start; }
.catalog-side { position: sticky; top: 92px; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1rem .75rem 1rem; box-shadow: var(--shadow-s); }
.sidebar-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 .6rem .6rem; font-weight: 700; }
.cat-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border-radius: var(--radius-s); color: var(--ink-2); font-size: .93rem; font-weight: 500; transition: background .15s, color .15s; cursor: pointer; list-style: none; }
.cat-link small { background: var(--bg-soft); color: var(--muted); border-radius: 999px; padding: 0 .5rem; font-size: .72rem; line-height: 1.5; }
.cat-link:hover { background: color-mix(in srgb, var(--primary-color) 8%, transparent); color: var(--primary-color); }
.cat-link.is-active { background: color-mix(in srgb, var(--primary-color) 12%, transparent); color: var(--primary-color); font-weight: 700; }
.cat-group summary::-webkit-details-marker { display: none; } .cat-group summary i { font-size: .65rem; transition: transform .2s; } .cat-group[open] > summary i { transform: rotate(180deg); }
.cat-sub { margin: .1rem 0 .4rem .9rem; padding-left: .5rem; border-left: 2px solid var(--line); } .cat-sub .cat-link { font-size: .88rem; padding: .42rem .6rem; font-weight: 400; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.catalog-toolbar strong { color: var(--ink); }
.toolbar-sort .form-select { min-width: 150px; border-radius: 999px; }
.inline-search { display: flex; gap: .6rem; margin-bottom: 1.5rem; } .inline-search .form-control { height: 46px; border-radius: 999px; padding: 0 1.2rem; border: 1.5px solid color-mix(in srgb, var(--border-color, #cbd5e1) 70%, var(--text-muted, #64748b)); }
.inline-search .btn { white-space: nowrap; }
.empty-box { text-align: center; padding: 3.5rem 1.5rem; border: 1.5px dashed var(--line); border-radius: var(--radius-m); background: var(--bg-soft); }
.empty-icon { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 10%, #fff); margin-bottom: 1rem; }
.empty-box h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; } .empty-box p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.25rem; }
.pagination-wrap { margin-top: 2.25rem; display: flex; justify-content: center; }
.pagination { gap: .3rem; flex-wrap: wrap; justify-content: center; } .page-link { border-radius: 999px !important; border: 1px solid var(--line); color: var(--ink-2); min-width: 40px; text-align: center; font-weight: 500; }
.page-link:hover { background: color-mix(in srgb, var(--primary-color) 9%, transparent); color: var(--primary-color); border-color: transparent; } .page-item.active .page-link { background: var(--primary-color); border-color: var(--primary-color); color: #fff; } .page-item.disabled .page-link { color: var(--muted); background: transparent; }
@media (max-width: 991.98px) { .catalog { grid-template-columns: minmax(0, 1fr); gap: 1rem; } .catalog-side { position: static; } .page-head { padding: 1.1rem 0 1.5rem; } }

/* ---------- Chi tiết sản phẩm ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pd-main { position: relative; aspect-ratio: 1 / 1; background: var(--light-color, #f4f6fa); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pd-main > a { display: block; width: 100%; height: 100%; } .pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .4s var(--ease); } .pd-main:hover img { transform: scale(1.04); }
.pd-main .product-badge { position: absolute; top: .9rem; left: .9rem; z-index: 2; padding: .25rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--success-color); } .pd-main .product-badge.sale { left: auto; right: .9rem; background: var(--danger-color); }
.pd-zoom { position: absolute; right: .9rem; bottom: .9rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-s); pointer-events: none; }
.pd-noimg { font-size: 3rem; color: var(--muted); }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.pd-thumbs .thumbnail-item { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff; overflow: hidden; cursor: pointer; transition: border-color .15s; }
.pd-thumbs .thumbnail-item img { width: 100%; height: 100%; object-fit: contain; } .pd-thumbs .thumbnail-item.active, .pd-thumbs .thumbnail-item:hover { border-color: var(--primary-color); }
.pd-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin: 0 0 1rem; line-height: 1.3; }
.pd-price { padding: 1rem 1.2rem; background: color-mix(in srgb, var(--primary-color) 6%, #fff); border-radius: var(--radius-m); margin-bottom: 1.25rem; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.pd-price .current-price { font-size: 1.7rem; font-weight: 800; color: var(--primary-color); } .pd-price .old-price { color: var(--muted); text-decoration: line-through; } .pd-price small { flex-basis: 100%; color: var(--muted); font-size: .84rem; }
.pd-meta { margin: 0 0 1.5rem; } .pd-meta > div { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; } .pd-meta dt { flex: 0 0 110px; color: var(--muted); font-weight: 500; } .pd-meta dd { margin: 0; color: var(--ink); font-weight: 500; } .pd-meta a { color: var(--primary-color); }
.pd-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; } .pd-actions .btn { flex: 1 1 220px; } .pd-call { flex: 1 1 100%; text-align: center; color: var(--ink-2); font-weight: 600; padding: .4rem; } .pd-call i { color: var(--primary-color); margin-right: .4rem; } .pd-call:hover { color: var(--primary-color); }
.pd-assure { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; } .pd-assure li { display: flex; align-items: center; gap: .65rem; color: var(--ink-2); font-size: .94rem; } .pd-assure i { width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--primary-color) 10%, #fff); color: var(--primary-color); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.pd-share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; } .pd-share a, .pd-share button { display: inline-flex; align-items: center; gap: .4rem; height: 36px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .85rem; cursor: pointer; transition: border-color .15s, color .15s; } .pd-share a:hover, .pd-share button:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pd-tabs { border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; overflow: hidden; }
.pd-tabnav { display: flex; gap: .25rem; padding: .5rem .75rem 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow-x: auto; flex-wrap: nowrap; }
.pd-tabnav .nav-link { border: 0; background: none; padding: .8rem 1.1rem; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; } .pd-tabnav .nav-link.active { color: var(--primary-color); border-bottom-color: var(--primary-color); background: transparent; }
.pd-tabs .tab-pane { padding: clamp(1rem, 3vw, 2rem); }
/* Nội dung bài viết/CMS dùng chung */
.prose { min-width: 0; overflow-wrap: anywhere; line-height: 1.8; color: var(--ink-2); } .prose img, .prose iframe, .prose video { max-width: 100%; height: auto; border-radius: var(--radius-s); }
.prose *, .prose [style*="width"] { max-width: 100% !important; box-sizing: border-box; }
.prose h2, .prose h3, .prose h4, .prose p, .prose div, .prose figure { width: auto !important; }
.prose pre { overflow-x: auto; white-space: pre-wrap; } .prose iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.prose h2, .prose h3, .prose h4 { margin: 1.6rem 0 .7rem; font-weight: 700; } .prose p { margin-bottom: 1rem; } .prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1rem; } .prose a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; } .prose table td, .prose table th { border: 1px solid var(--line); padding: .55rem .8rem; } .prose blockquote { border-left: 4px solid var(--primary-color); padding: .5rem 1rem; margin: 1.2rem 0; background: var(--bg-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
@media (max-width: 991.98px) { .pd { grid-template-columns: minmax(0, 1fr); } .pd-actions .btn { flex-basis: 100%; } }

/* ---------- Thẻ nội dung (tin tức / dịch vụ / dự án) ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } .grid-full { grid-column: 1 / -1; }
.media-grid [hidden] { display: none !important; }
.media-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; color: inherit; transition: transform .22s var(--ease), box-shadow .22s; }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); color: inherit; }
.media-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 12%, #fff), var(--light-color, #f4f6fa)); overflow: hidden; }
.media-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .5s var(--ease); } .media-card:hover .media-thumb img { transform: scale(1.06); }
.media-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: color-mix(in srgb, var(--primary-color) 45%, #fff); }
.media-badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; padding: .22rem .75rem; border-radius: 999px; background: var(--primary-color); color: #fff; font-size: .74rem; font-weight: 700; } .media-badge.static { position: static; display: inline-block; margin-bottom: .6rem; }
.media-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.media-meta { color: var(--muted); font-size: .82rem; margin-bottom: .45rem; display: block; } .media-meta i { margin-right: .35rem; }
.media-body h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.4; margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-body p { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.media-body .link-arrow { margin-top: auto; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip-link { padding: .45rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.chip-link:hover { border-color: var(--primary-color); color: var(--primary-color); } .chip-link.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.news-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; margin-bottom: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; color: inherit; transition: box-shadow .22s; } .news-hero:hover { box-shadow: var(--shadow-m); color: inherit; }
.news-hero-img { position: relative; min-height: 320px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 12%, #fff), var(--light-color, #f4f6fa)); } .news-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.news-hero-body { padding: clamp(1.25rem, 3vw, 2.25rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; } .news-hero-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; margin: .3rem 0 .7rem; } .news-hero-body p { color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 991.98px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .news-hero { grid-template-columns: minmax(0, 1fr); } .news-hero-img { min-height: 0; width: 100%; aspect-ratio: 16 / 9; } }
@media (max-width: 575.98px) { .media-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; } .chip-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: -.25rem; padding: 0 .25rem .4rem; scrollbar-width: none; } .chip-link { white-space: nowrap; } }

/* ---------- Trang chi tiết (tin tức / dịch vụ / dự án) ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.detail-main { min-width: 0; } .detail-side { position: sticky; top: 92px; display: grid; gap: 1.25rem; }
.article-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.3; margin: .5rem 0 .9rem; text-wrap: balance; }
.article-cats { display: flex; gap: .4rem; flex-wrap: wrap; } .chip { display: inline-flex; padding: .2rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--primary-color) 10%, #fff); color: var(--primary-color); font-size: .78rem; font-weight: 600; }
.article-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; } .article-meta i { margin-right: .4rem; }
.article-cover { margin: 0 0 1.75rem; border-radius: var(--radius-m); overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 8.5; } .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.detail-share a, .detail-share button { display: inline-flex; align-items: center; gap: .4rem; height: 36px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .85rem; cursor: pointer; transition: all .15s; } .detail-share a:hover, .detail-share button:hover { border-color: var(--primary-color); color: var(--primary-color); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.25rem; box-shadow: var(--shadow-s); }
.side-title { font-size: 1rem; font-weight: 700; margin: 0 0 .9rem; }
.side-post { display: flex; gap: .8rem; padding: .6rem 0; color: inherit; border-top: 1px solid var(--line); } .side-post:first-of-type { border-top: 0; padding-top: 0; } .side-post:hover strong { color: var(--primary-color); }
.side-thumb { position: relative; flex: 0 0 72px; height: 72px; border-radius: var(--radius-s); overflow: hidden; background: color-mix(in srgb, var(--primary-color) 10%, #fff); display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--primary-color) 45%, #fff); } .side-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.side-post strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; line-height: 1.4; } .side-post small { color: var(--muted); }
.side-cta { background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 8%, #fff), #fff); } .side-cta p { color: var(--muted); font-size: .92rem; }
.info-list { margin: 0; } .info-list > div { padding: .6rem 0; border-top: 1px solid var(--line); } .info-list > div:first-child { border-top: 0; padding-top: 0; } .info-list dt { color: var(--muted); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; } .info-list dd { margin: .1rem 0 0; color: var(--ink); font-weight: 600; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; } .cs-box { padding: 1.25rem 1.4rem; border-radius: var(--radius-m); background: color-mix(in srgb, var(--warning-color) 10%, #fff); border: 1px solid color-mix(in srgb, var(--warning-color) 30%, #fff); } .cs-box.cs-ok { background: color-mix(in srgb, var(--success-color) 9%, #fff); border-color: color-mix(in srgb, var(--success-color) 30%, #fff); }
.cs-box h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; } .cs-box h2 i { margin-right: .4rem; color: var(--warning-color); } .cs-ok h2 i { color: var(--success-color); } .cs-box p { margin: 0; color: var(--ink-2); }
.detail-h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; } .gallery-grid a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-soft); } .gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); } .gallery-grid a:hover img { transform: scale(1.06); }
.related-block { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 991.98px) { .detail-layout { grid-template-columns: minmax(0, 1fr); } .detail-side { position: static; } }
@media (max-width: 575.98px) { .cs-grid { grid-template-columns: 1fr; } .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Trang giới thiệu ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; } .split-rev .split-img { order: -1; }
.split-img { position: relative; margin: 0; border-radius: var(--radius-l); overflow: visible; } .split-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-m); background: var(--bg-soft); }
.about-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; margin: .3rem 0 1rem; text-wrap: balance; } .about-h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin: .3rem 0 1rem; } .about-text { color: var(--ink-2); line-height: 1.8; }
.stat-row { display: flex; gap: 2.25rem; margin-top: 1.5rem; flex-wrap: wrap; } .stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--primary-color); line-height: 1.1; } .stat span { color: var(--muted); font-size: .9rem; }
.float-badge { position: absolute; right: -14px; bottom: 24px; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-m); } .float-badge i { font-size: 1.6rem; color: var(--primary-color); } .float-badge span { display: flex; flex-direction: column; font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 600; } .float-badge strong { font-size: 1.4rem; color: var(--ink); line-height: 1.1; }
.bars { margin-top: 1.5rem; display: grid; gap: 1rem; } .bar-top { display: flex; justify-content: space-between; margin-bottom: .35rem; font-size: .92rem; } .bar-track { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; } .bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-color), var(--primary-dark)); }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; } .check-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; color: var(--ink); } .check-list i { color: var(--success-color); margin-top: .3rem; }
.vm-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991.98px) { .split { grid-template-columns: minmax(0, 1fr); } .split-rev .split-img { order: 0; } .float-badge { right: 10px; } .vm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .vm-grid { grid-template-columns: 1fr; } .stat-row { gap: 1.5rem; } }

/* ---------- Trang liên hệ ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.info-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; box-shadow: var(--shadow-s); transition: box-shadow .2s, transform .2s var(--ease); }
.info-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.info-card .ico { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); font-size: 1.15rem; margin-bottom: 1rem; box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color) 28%, transparent); }
.info-card h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: .75rem; }
.info-main { margin: 0 0 1rem; color: var(--ink-2); line-height: 1.6; }
.info-line { display: block; padding: .55rem .75rem; margin: 0 -.75rem .15rem; border-radius: var(--radius-s); color: var(--ink); transition: background .15s; } .info-line:hover { background: color-mix(in srgb, var(--primary-color) 7%, transparent); color: var(--ink); }
.info-line small { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; } .info-line strong { display: block; font-size: 1.12rem; font-weight: 700; overflow-wrap: anywhere; }
.info-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1rem; }
.info-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.info-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.info-btn.is-primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; } .info-btn.is-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-m); position: relative; }
.contact-form-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.contact-form .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; } .contact-form .req { color: var(--danger-color); }
.contact-form .form-control, .contact-form .form-select { min-height: 48px; border-radius: var(--radius-s); border: 1.5px solid color-mix(in srgb, var(--border-color, #cbd5e1) 70%, var(--text-muted, #64748b)); padding: .6rem .95rem; transition: border-color .15s, box-shadow .15s; }
.contact-form textarea.form-control { min-height: 130px; } .contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 15%, transparent); }
.contact-form .form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); } .contact-form .form-check-label a { color: var(--primary-color); text-decoration: underline; }
.contact-side { display: grid; gap: 1.25rem; position: sticky; top: 92px; }
.map-card { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); background: var(--bg-soft); } .map-card iframe { display: block; width: 100%; height: 340px; border: 0; }
.social-row { display: flex; flex-wrap: wrap; gap: .5rem; } .social-row a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: .9rem; font-weight: 500; transition: all .15s; } .social-row a:hover { border-color: var(--primary-color); color: var(--primary-color); }
@media (max-width: 575.98px) { .info-btn { flex: 1 1 auto; min-height: 44px; } .info-card { padding: 1.25rem; } }
@media (max-width: 991.98px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-side { position: static; } .map-card iframe { height: 280px; } }

/* ---------- Giỏ hàng / thanh toán / thành công ---------- */
.steps-bar { display: flex; justify-content: center; gap: 0; list-style: none; padding: 0; margin: 0 0 2rem; counter-reset: s; }
.steps-bar li { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-weight: 500; font-size: .92rem; } .steps-bar li + li::before { content: ''; width: clamp(24px, 6vw, 64px); height: 2px; background: var(--line); margin: 0 .75rem; }
.steps-bar .dot { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); border: 2px solid var(--line); font-size: .82rem; font-weight: 700; }
.steps-bar .is-current { color: var(--primary-color); font-weight: 700; } .steps-bar .is-current .dot { background: var(--primary-color); border-color: var(--primary-color); color: #fff; } .steps-bar .is-done { color: var(--ink-2); } .steps-bar .is-done .dot { background: var(--success-color); border-color: var(--success-color); color: #fff; } .steps-bar li.is-done + li::before, .steps-bar li.is-current::before { background: var(--primary-color); }
@media (max-width: 575.98px) { .steps-bar .lbl { display: none; } .steps-bar li.is-current .lbl { display: inline; } }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
.cart-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); }
.cart-table { width: 100%; border-collapse: collapse; } .cart-table th { background: var(--bg-soft); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; padding: .8rem 1rem; font-weight: 600; } .cart-table td { padding: 1rem; border-top: 1px solid var(--line); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: .9rem; } .cart-thumb { flex: 0 0 64px; height: 64px; border-radius: var(--radius-s); background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); } .cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-name { display: block; font-weight: 600; color: var(--ink); line-height: 1.35; } a.cart-name:hover { color: var(--primary-color); } .cart-remove { display: inline-block; margin-top: .25rem; font-size: .82rem; color: var(--muted); } .cart-remove:hover { color: var(--danger-color); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; } .qty button { width: 34px; height: 36px; border: 0; background: transparent; color: var(--ink-2); } .qty button:hover { background: var(--bg-soft); color: var(--primary-color); } .qty input { width: 44px; height: 36px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; } .qty input:focus { outline: 0; } .qty input::-webkit-inner-spin-button { display: none; }
.amount { color: var(--primary-color); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.4rem; box-shadow: var(--shadow-s); position: sticky; top: 92px; }
.cart-summary h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }
.summary-item { display: flex; justify-content: space-between; padding: .45rem 0; color: var(--ink-2); font-size: .94rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; margin: .5rem 0 1rem; border-top: 1px dashed var(--line); font-weight: 700; } .summary-total .value { font-size: 1.45rem; font-weight: 800; color: var(--primary-color); }
.summary-note { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--shadow-s); margin-bottom: 1.25rem; } .form-card.narrow { max-width: 520px; margin-inline: auto; }
.form-card h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .6rem; } .form-card .num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; }
.form-card .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; } .form-card .req { color: var(--danger-color); }
.form-card .form-control, .form-card .form-select { min-height: 48px; border-radius: var(--radius-s); border: 1.5px solid color-mix(in srgb, var(--border-color, #cbd5e1) 70%, var(--text-muted, #64748b)); } .form-card textarea.form-control { min-height: 96px; }
.form-card .form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 15%, transparent); }
.pay-options { display: grid; gap: .75rem; } .payment-method { position: relative; } .payment-method input { position: absolute; opacity: 0; } .payment-method label { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius-m); cursor: pointer; transition: all .15s; } .payment-method label i { font-size: 1.3rem; color: var(--primary-color); width: 28px; text-align: center; } .payment-method label strong { display: block; } .payment-method label small { color: var(--muted); }
.payment-method input:checked + label, .payment-method.selected label { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 6%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 12%, transparent); } .payment-method input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--primary-color) 55%, #fff); outline-offset: 2px; }
.mini-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; max-height: 280px; overflow-y: auto; } .mini-list li { display: flex; align-items: center; gap: .75rem; font-size: .92rem; } .mini-thumb { position: relative; flex: 0 0 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--muted); } .mini-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; } .mini-thumb em { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .7rem; font-style: normal; display: flex; align-items: center; justify-content: center; } .mini-name { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.success-card { text-align: center; max-width: 640px; margin: 0 auto 2rem; } .success-badge { width: 72px; height: 72px; border-radius: 50%; background: var(--success-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; box-shadow: 0 10px 28px color-mix(in srgb, var(--success-color) 35%, transparent); margin-bottom: 1rem; } .success-card h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; } .success-lead { color: var(--ink-2); margin: .5rem 0; }
.success-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } .success-grid .form-card { margin-bottom: 0; }
.order-totals { max-width: 360px; margin: 1rem 0 0 auto; } .order-totals > div { display: flex; justify-content: space-between; padding: .4rem 0; color: var(--ink-2); } .order-totals .grand { border-top: 1px dashed var(--line); margin-top: .4rem; padding-top: .8rem; font-size: 1.2rem; font-weight: 800; color: var(--primary-color); }
@media (max-width: 991.98px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } .cart-summary { position: static; } .success-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .cart-table thead { display: none; } .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; } .cart-table tr { padding: .9rem 1rem; border-top: 1px solid var(--line); } .cart-table tr:first-child { border-top: 0; } .cart-table td { border: 0; padding: .3rem 0; text-align: left !important; display: flex; justify-content: space-between; align-items: center; gap: 1rem; } .cart-table td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; } .cart-table td[data-label="Sản phẩm"] { display: block; } .cart-table td[data-label="Sản phẩm"]::before { display: none; }
}

/* ---------- Trang chính sách (policy) ---------- */
.policy { padding-top: 2.5rem; }
.policy-head { margin-bottom: 2rem; } .policy-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; margin: 0 0 .35rem; }
.policy-head .eyebrow-text { color: var(--primary-color); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .35rem; }
.policy-meta { color: var(--muted); margin: 0; font-size: .92rem; }
.policy-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; align-items: start; }
.policy-toc { position: sticky; top: 96px; padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-soft); }
.policy-toc strong { display: block; margin-bottom: .6rem; color: var(--ink); }
.policy-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.policy-toc li { counter-increment: toc; } .policy-toc a { display: block; padding: .32rem .5rem; border-radius: 6px; color: var(--ink-2); font-size: .9rem; }
.policy-toc a::before { content: counter(toc) '. '; color: var(--muted); } .policy-toc a:hover { background: color-mix(in srgb, var(--primary-color) 9%, transparent); color: var(--primary-color); }
.policy-body { max-width: 78ch; }
.policy-body section { margin-bottom: 2.25rem; scroll-margin-top: 96px; }
.policy-body h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 .8rem; padding-bottom: .5rem; border-bottom: 2px solid color-mix(in srgb, var(--primary-color) 20%, #fff); }
.policy-body h3 { font-size: 1.05rem; font-weight: 700; margin: 1.1rem 0 .5rem; }
.policy-body p, .policy-body li { line-height: 1.75; } .policy-body ul { padding-left: 1.2rem; } .policy-body li { margin-bottom: .4rem; }
.policy-body a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.policy-body code { background: var(--bg-soft); padding: .1rem .4rem; border-radius: 5px; font-size: .86em; color: var(--ink); }
.policy-table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius-s); }
.policy-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; } .policy-table th, .policy-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy-table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; } .policy-table tr:last-child td { border-bottom: 0; }
.policy-contact { padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-soft); } .policy-contact div { margin-top: .4rem; } .policy-contact i { width: 20px; color: var(--primary-color); }
@media (max-width: 991.98px) { .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .policy-toc { position: static; } .policy-toc ol { columns: 2; column-gap: 1rem; } }
@media (max-width: 575.98px) { .policy-toc ol { columns: 1; } .policy-body h2 { font-size: 1.2rem; } }


/* ---------- Mobile: vùng chạm tối thiểu ~44px ---------- */
@media (max-width: 767.98px) {
    .cat-link { min-height: 44px; }
    .cat-sub .cat-link { min-height: 44px; }
    .pd-share a, .pd-share button, .detail-share a, .detail-share button { height: 44px; }
    .pd-call { padding: .8rem; }
    .chip-link { min-height: 44px; display: inline-flex; align-items: center; }
    .page-link { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
    .qty button, .qty input { height: 44px; } .qty button { width: 44px; }
    .side-post { padding: .85rem 0; }
    .social-row a { min-height: 44px; }
    .toolbar-sort .form-select { min-height: 44px; }
    .pd-meta a { display: inline-block; padding: .25rem 0; }
}

/* Phân trang tiếng Việt */
.pager { display: flex; flex-direction: column; align-items: center; gap: .75rem; width: 100%; } .pager-info { margin: 0; color: var(--muted); font-size: .88rem; text-align: center; } .pager .pagination { margin: 0; }

/* Giới hạn bề rộng chữ ở đầu trang để dễ đọc, tự xuống dòng đẹp (không kéo hết chiều ngang) */
.page-head h1 { max-width: 20em; overflow-wrap: anywhere; }
.page-head .page-lead { max-width: 60ch; }
.page-kicker { display: block; max-width: 40em; line-height: 1.5; overflow-wrap: anywhere; }
.about-title { max-width: 20em; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .page-head h1 { max-width: 100%; } .page-kicker { font-size: .74rem; letter-spacing: .06em; } .page-head .page-lead { font-size: .97rem; } }

/* Nội dung bài viết/sản phẩm: dòng chữ không quá dài (~75 ký tự) để dễ đọc; ảnh, bảng vẫn rộng hết khung */
.prose p, .prose li, .prose h2, .prose h3, .prose h4, .prose blockquote { max-width: 74ch !important; }
.prose img, .prose table, .prose iframe, .prose figure { max-width: 100% !important; }
