/* ============ Trang Sản phẩm (page-san-pham.php) ============ */
.hps {
    --navy: #0a2a66;
    --navy-dark: #071d47;
    --blue: #0a4fc1;
    --blue-hover: #083f9c;
    --bg: #f4f7fb;
    --tint: #e6eefa;
    --line: #dbe3ef;
    --text: #3d4a63;
    --muted: #5b6780;
    --gold-1: #f3e0ab;
    --gold-2: #d6ad5a;
    --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

/* flatsome-child.css ép font Inter !important cho h1-h6, p, span */
.hps h2,
.hps h3,
.hps p,
.hps span,
.hps li {
    font-family: var(--sans) !important;
}

.hps *,
.hps *::before,
.hps *::after {
    box-sizing: border-box;
}

.hps h2,
.hps h3,
.hps p,
.hps ol {
    margin: 0;
}

.hps a {
    text-decoration: none;
}

.hps-container {
    max-width: calc(1160px + 48px);
    margin: 0 auto;
    padding: 0 24px;
}

.hps-ico {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.hps-section {
    padding: 84px 0;
}

.hps-section--white {
    background: #fff;
}

.hps-head {
    max-width: 720px;
    margin-bottom: 38px;
}

.hps-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hps-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}

.hps-eyebrow--gold {
    color: var(--gold-1);
}

.hps-h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
}

.hps-h2--light {
    color: #fff;
}

.hps-sub {
    margin-top: 14px !important;
    font-size: 16.5px;
    color: var(--muted);
}

/* ---------- Buttons ---------- */
.hps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .2s, background .2s;
}

.hps-btn:hover {
    transform: translateY(-1px);
}

.hps-btn .hps-ico {
    width: 18px;
    height: 18px;
}

.hps-btn--primary,
.hps-btn--primary:hover {
    color: #fff;
}

.hps-btn--primary {
    background: var(--blue);
}

.hps-btn--primary:hover {
    background: var(--blue-hover);
}

.hps-btn--gold,
.hps-btn--gold:hover {
    color: var(--navy);
}

.hps-btn--gold {
    margin-top: 26px;
    padding: 14px 26px;
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    box-shadow: 0 10px 24px rgba(214, 173, 90, .35);
}

.hps-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
}

.hps-link:hover {
    color: var(--blue-hover);
}

.hps-link .hps-ico {
    width: 17px;
    height: 17px;
    transition: transform .2s;
}

.hps-link:hover .hps-ico {
    transform: translateX(3px);
}

/* ---------- Dòng nổi bật ---------- */
.hps-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hps-fcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: box-shadow .25s, transform .25s;
}

.hps-fcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(10, 42, 102, .12);
}

.hps-fcard__img {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--tint);
}

.hps-fcard__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.hps-fcard:hover .hps-fcard__img img {
    transform: scale(1.05);
}

.hps-fcard__tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: rgba(7, 29, 71, .78);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.hps-fcard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 26px;
}

.hps-fcard h3 {
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.hps-fcard h3 a {
    color: var(--navy);
}

.hps-fcard h3 a:hover {
    color: var(--blue);
}

.hps-fcard p {
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.hps-fcard__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* ---------- Gợi ý chọn dòng ---------- */
.hps-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hps-gcard {
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.hps-gcard__ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
}

.hps-gcard h3 {
    margin-bottom: 8px;
    font-size: 18.5px;
    font-weight: 700;
    color: var(--navy);
}

.hps-gcard p {
    flex: 1;
    font-size: 15px;
    color: var(--muted);
}

.hps-gcard__hint {
    align-self: flex-start;
    margin-top: 18px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    background: var(--tint);
    border-radius: 999px;
}

/* ---------- Lưới tất cả dòng ---------- */
.hps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hps-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color .2s, box-shadow .2s;
}

.hps-card:hover {
    border-color: var(--blue);
    box-shadow: 0 16px 34px rgba(10, 79, 193, .1);
}

.hps-card__img {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--tint);
}

.hps-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.hps-card:hover .hps-card__img img {
    transform: scale(1.05);
}

.hps-card__title {
    padding: 16px 18px 4px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy);
}

.hps-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}

.hps-card__more .hps-ico {
    width: 16px;
    height: 16px;
    transition: transform .2s;
}

.hps-card:hover .hps-card__more .hps-ico {
    transform: translateX(3px);
}

/* ---------- Quy trình báo giá (navy) ---------- */
.hps-section--navy {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 90%, rgba(22, 96, 224, .4), transparent 45%),
        linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.hps-section--navy::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 288px;
    background: rgba(255, 255, 255, .04);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hps-process {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.hps-process__head p {
    margin-top: 16px !important;
    font-size: 16.5px;
    color: #d4ddee;
}

.hps-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    list-style: none;
}

.hps-steps li {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
}

.hps-steps__n {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
    border-radius: 50%;
}

.hps-steps h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.hps-steps h3 .hps-ico {
    width: 18px;
    height: 18px;
    color: var(--gold-1);
}

.hps-steps p {
    font-size: 15px;
    color: #c4d0e6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hps-featured,
    .hps-guide {
        grid-template-columns: repeat(2, 1fr);
    }

    .hps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hps-process {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .hps-container {
        padding: 0 16px;
    }

    .hps-section {
        padding: 56px 0;
    }

    .hps-h2 {
        font-size: 26px;
    }

    .hps-head {
        margin-bottom: 28px;
    }

    .hps-featured,
    .hps-guide {
        grid-template-columns: 1fr;
    }

    .hps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hps-card__title {
        padding: 12px 12px 2px;
        font-size: 15px;
    }

    .hps-card__more {
        padding: 0 12px 14px;
        font-size: 13px;
    }

    .hps-fcard__actions {
        flex-wrap: wrap;
    }

    .hps-btn--gold {
        width: 100%;
    }
}
