/* ==========================================================================
   TOPSOFT.VN - TRANG GIỚI THIỆU SẢN PHẨM (dùng kèm home.css)
   ========================================================================== */

/* ----- Hero ----- */
.ts-phero { padding: 1.75rem 0 4rem; }

.ts-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; margin-bottom: 2.25rem; color: var(--ts-body); }
.ts-crumb a { color: var(--ts-body); text-decoration: none; }
.ts-crumb a:hover { color: var(--ts-blue); }
.ts-crumb i { font-size: .65rem; color: var(--ts-muted); }
.ts-crumb span { color: var(--ts-ink); font-weight: 600; }

.ts-phero-title { color: var(--ts-ink); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1.1rem; }

.ts-checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .65rem; }
.ts-checks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ts-ink); font-weight: 500; }
.ts-checks i { color: var(--ts-green); margin-top: .1rem; }

.ts-pwindow {
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    border: 1px solid var(--ts-line);
    box-shadow: 0 20px 40px -24px rgba(15, 27, 45, .35);
}
.ts-pwindow .carousel-item img { display: block; width: 100%; aspect-ratio: 1291 / 702; object-fit: cover; object-position: top left; background: #f1f5f9; }
.ts-shot-dots { position: absolute; left: 0; right: 0; bottom: .75rem; display: flex; justify-content: center; gap: .4rem; z-index: 2; }
.ts-shot-dots button { width: 22px; height: 5px; border: 0; border-radius: 3px; background: rgba(6, 22, 49, .3); padding: 0; transition: width .2s, background-color .2s; }
.ts-shot-dots button.active { width: 34px; background: var(--ts-red); }

/* ----- Số liệu nhanh ----- */
.ts-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    overflow: hidden;
}
.ts-kpis > div { padding: 1.4rem 1.5rem; border-right: 1px solid var(--ts-line); }
.ts-kpis > div:last-child { border-right: 0; }
.ts-kpis b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ts-blue); line-height: 1.2; }
.ts-kpis > div:nth-child(even) b { color: var(--ts-red); }
.ts-kpis span { display: block; margin-top: .3rem; font-size: .86rem; color: var(--ts-body); line-height: 1.45; }

@media (max-width: 991.98px) {
    .ts-kpis { grid-template-columns: repeat(2, 1fr); }
    .ts-kpis > div:nth-child(2) { border-right: 0; }
    .ts-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--ts-line); }
}

/* ----- Phân hệ ----- */
.ts-module {
    display: flex;
    gap: 1rem;
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ts-module:hover { border-color: var(--ts-blue-100); box-shadow: var(--ts-shadow-sm); }
.ts-module-icon { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; color: var(--ts-blue); background: var(--ts-blue-50); }
.row > div:nth-child(3n+2) .ts-module-icon { color: var(--ts-red); background: var(--ts-red-50); }
.ts-module h3 { color: var(--ts-ink); font-size: 1.08rem; font-weight: 700; margin-bottom: .4rem; }
.ts-module p { font-size: .9rem; line-height: 1.6; color: var(--ts-body); margin: 0; }

/* ----- Luồng số liệu ----- */
.ts-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ts-flow li {
    position: relative;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow-sm);
}
.ts-flow li::before {
    content: counter(list-item, decimal-leading-zero);
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ts-blue-100);
}
.ts-flow-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: var(--ts-blue); background: var(--ts-blue-50); margin-bottom: .9rem; }
.ts-flow-icon.is-red { color: #fff; background: var(--ts-red); }
.ts-flow b { display: block; color: var(--ts-ink); font-size: 1rem; margin-bottom: .3rem; }
.ts-flow small { display: block; color: var(--ts-body); font-size: .86rem; line-height: 1.55; }

@media (max-width: 575.98px) { .ts-flow { grid-template-columns: 1fr; } }

/* Biểu tượng tính năng lấy từ Admin: bỏ màu riêng, dùng màu thương hiệu */
#tinh-nang .ts-cap p { color: var(--ts-body); }

/* ----- Ứng dụng di động ----- */
.ts-papp { background: var(--ts-soft); border-top: 1px solid var(--ts-line); border-bottom: 1px solid var(--ts-line); }
.ts-papp-title { color: var(--ts-ink); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.25; margin-bottom: 1rem; }
.ts-papp-text { color: var(--ts-body); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.75rem; }

.ts-papp-phone {
    position: relative;
    display: inline-block;
    width: 260px;
    max-width: 70%;
    aspect-ratio: 9 / 16.6;
    padding: 9px;
    border-radius: 36px;
    background: #1e293b;
    box-shadow: 0 24px 48px -24px rgba(15, 27, 45, .5);
}
.ts-papp-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; display: block; }

.ts-store {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem 1.1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ts-line);
    color: var(--ts-ink);
    text-decoration: none;
    transition: border-color .2s;
}
.ts-store:hover { color: var(--ts-ink); border-color: var(--ts-blue); }
.ts-store i { font-size: 1.6rem; color: var(--ts-ink); }
.ts-store small { display: block; font-size: .68rem; color: var(--ts-body); line-height: 1; }
.ts-store b { display: block; font-size: 1rem; line-height: 1.2; }

/* ----- Bảng giá ----- */
.ts-price {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    transition: transform .25s, box-shadow .25s;
}
.ts-price:hover { box-shadow: var(--ts-shadow-sm); }
.ts-price.is-featured { border: 2px solid var(--ts-blue); }
.ts-price-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--ts-blue); color: #fff; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .3rem .9rem; white-space: nowrap; }
.ts-price h3 { color: var(--ts-ink); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.ts-price-value { font-size: 2.2rem; font-weight: 800; color: var(--ts-blue); line-height: 1.1; letter-spacing: -.02em; }

.ts-price-period { color: var(--ts-body); font-size: .88rem; margin: .3rem 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px dashed var(--ts-line); }
.ts-price ul { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; display: grid; gap: .7rem; align-content: start; }
.ts-price li { display: flex; gap: .6rem; font-size: .92rem; color: var(--ts-ink); line-height: 1.5; }
.ts-price li i { color: var(--ts-green); font-size: 1.05rem; line-height: 1.35; }

/* ----- Nội dung chi tiết ----- */
.ts-rich { height: 100%; padding: 2.25rem; background: #fff; border: 1px solid var(--ts-line); border-radius: var(--ts-radius-lg); color: var(--ts-ink); line-height: 1.8; }
.ts-rich h2 { color: var(--ts-ink); font-size: 1.5rem; font-weight: 800; margin-bottom: 1.25rem; }
.ts-rich h3, .ts-rich h4, .ts-rich h5 { color: var(--ts-ink); font-weight: 700; margin-top: 1.5rem; }
.ts-rich ul { padding-left: 1.2rem; }
.ts-rich li { margin-bottom: .4rem; }
.ts-rich li::marker { color: var(--ts-red); }
.ts-rich img { max-width: 100%; height: auto; border-radius: 12px; }

.ts-side {
    position: sticky;
    top: 100px;
    padding: 2rem;
    border-radius: var(--ts-radius-lg);
    background: var(--ts-blue-50);
    border: 1px solid var(--ts-blue-100);
}
.ts-side-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--ts-blue); margin-bottom: 1rem; }
.ts-side h3 { color: var(--ts-ink); font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; }
.ts-side p { color: var(--ts-body); font-size: .93rem; line-height: 1.65; margin-bottom: 1.25rem; }
.ts-side-hotline { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--ts-blue-100); text-align: center; }
.ts-side-hotline small { display: block; color: var(--ts-body); font-size: .8rem; }
.ts-side-hotline a { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.35rem; font-weight: 800; color: var(--ts-red); text-decoration: none; }

@media (max-width: 575.98px) { .ts-rich, .ts-side { padding: 1.5rem; } }
