.hwwh-root,
.hwwh-root * {
    box-sizing: border-box;
}

.hwwh-root {
    --hwwh-primary: #33cc33;
    --hwwh-secondary: #00b33d;
    --hwwh-container: 1280px;
    --hwwh-soft: rgba(51, 204, 51, .09);
    --hwwh-soft-2: rgba(0, 179, 61, .13);
    --hwwh-text: #12141a;
    --hwwh-muted: #4b5563;
    --hwwh-border: rgba(15, 23, 42, .09);
    --hwwh-shadow: 0 18px 45px rgba(15, 23, 42, .10);
    color: var(--hwwh-text);
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow: hidden;
}

.hwwh-root,
.hwwh-root * {
    font-family: Arial, Helvetica, sans-serif !important;
}

.hwwh-root img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hwwh-container {
    width: min(var(--hwwh-container), calc(100vw - 40px));
    margin-left: auto;
    margin-right: auto;
}

.hwwh-section {
    position: relative;
    padding: clamp(28px, 4vw, 56px) 0;
    background: linear-gradient(180deg, #fff 0%, #fbfffc 100%);
}

.hwwh-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(51, 204, 51, .10), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(0, 179, 61, .08), transparent 30%);
}

.hwwh-hero-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fff;
}

.hwwh-hero-full a,
.hwwh-hero-full picture,
.hwwh-hero-full img {
    width: 100%;
}

.hwwh-hero-full img {
    object-fit: cover;
}

.hwwh-intro-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.18fr repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.hwwh-intro-copy h2,
.hwwh-feature-copy h2,
.hwwh-title-line h2 {
    margin: 0;
    letter-spacing: -0.018em;
    line-height: 1.14;
    font-weight: 700;
    color: var(--hwwh-text);
}

.hwwh-intro-copy h2 {
    font-size: clamp(26px, 2.7vw, 40px);
    margin-bottom: 18px;
}

.hwwh-richtext {
    color: var(--hwwh-muted);
    font-size: clamp(16px, 1.25vw, 19px);
    max-width: 720px;
}

.hwwh-richtext p {
    margin: 0 0 14px;
}

.hwwh-card {
    position: relative;
    z-index: 1;
    border: 1px solid var(--hwwh-border);
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    box-shadow: var(--hwwh-shadow);
    overflow: hidden;
}

.hwwh-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--hwwh-soft);
    top: -86px;
    right: -82px;
    pointer-events: none;
}

.hwwh-card-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 204, 51, .14), rgba(51, 204, 51, .04));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hwwh-card-icon img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
}

.hwwh-card h3 {
    margin: 0 0 14px;
    font-size: clamp(19px, 1.6vw, 25px);
    line-height: 1.25;
    font-weight: 800;
    color: var(--hwwh-text);
}

.hwwh-card p {
    margin: 0;
    color: var(--hwwh-muted);
    font-size: 16px;
}

.hwwh-intro-card,
.hwwh-why-card {
    padding: clamp(26px, 3vw, 42px) 26px;
    text-align: center;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hwwh-feature-section {
    background: linear-gradient(135deg, #ffffff 0%, #f7fff8 45%, #ffffff 100%);
}

.hwwh-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(28px, 4vw, 56px);
}

.hwwh-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hwwh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 18px;
    border: 1px solid rgba(51, 204, 51, .42);
    border-radius: 999px;
    color: var(--hwwh-primary);
    font-weight: 800;
    background: rgba(255,255,255,.78);
    box-shadow: 0 8px 20px rgba(51, 204, 51, .08);
}

.hwwh-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hwwh-primary);
    box-shadow: 0 0 0 6px rgba(51, 204, 51, .12);
}

.hwwh-feature-copy h2 {
    font-size: clamp(30px, 3.45vw, 54px);
    margin-bottom: 20px;
}

.hwwh-feature-copy h2 span,
.hwwh-title-line h2 {
    color: var(--hwwh-primary);
}

.hwwh-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hwwh-mini-card {
    padding: 18px 16px;
    border: 1px solid var(--hwwh-border);
    background: rgba(255,255,255,.86);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .07);
}

.hwwh-mini-card h3 {
    margin: 0 0 7px;
    color: var(--hwwh-primary);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.hwwh-mini-card p {
    margin: 0;
    color: var(--hwwh-muted);
    font-size: 14px;
}

.hwwh-feature-media {
    position: relative;
    padding: clamp(18px, 2.4vw, 30px);
    min-height: clamp(420px, 34vw, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hwwh-feature-media::before,
.hwwh-feature-media::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(51, 204, 51, .20);
    border-radius: 50%;
    inset: 10%;
    transform: rotate(-8deg);
}

.hwwh-feature-media::after {
    inset: 18%;
    border-color: rgba(0, 179, 61, .18);
    transform: rotate(12deg);
}

.hwwh-image-glow {
    position: absolute;
    width: 72%;
    height: 48%;
    bottom: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 204, 51, .25), rgba(51, 204, 51, .03) 65%, transparent 72%);
    filter: blur(6px);
}

.hwwh-feature-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    border-radius: 24px;
    filter: drop-shadow(0 20px 35px rgba(15, 23, 42, .13));
}

.hwwh-title-line {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
    margin-bottom: 24px;
}

.hwwh-title-line span {
    flex: 1;
    height: 1px;
    max-width: 330px;
    background: linear-gradient(90deg, transparent, rgba(15,23,42,.16), transparent);
}

.hwwh-title-line h2 {
    font-size: clamp(22px, 2.35vw, 34px);
    text-transform: uppercase;
}

.hwwh-why-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

@media (max-width: 1180px) {
    .hwwh-intro-grid,
    .hwwh-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hwwh-intro-copy {
        grid-column: 1 / -1;
    }
    .hwwh-feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hwwh-feature-media {
        order: -1;
        min-height: 280px;
        max-width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .hwwh-container {
        width: min(100% - 28px, var(--hwwh-container));
    }
    .hwwh-section {
        padding: 28px 0;
    }
    .hwwh-intro-grid,
    .hwwh-why-grid,
    .hwwh-mini-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hwwh-feature-copy h2 {
        font-size: clamp(28px, 8vw, 38px);
    }
    .hwwh-feature-media {
        padding: 8px;
        min-height: 220px;
        max-width: 100%;
    }
    .hwwh-feature-media img {
        border-radius: 18px;
    }
    .hwwh-title-line {
        gap: 10px;
    }
    .hwwh-title-line span {
        display: none;
    }
    .hwwh-intro-card,
    .hwwh-why-card {
        min-height: auto;
        padding: 26px 20px;
    }
}


/* Tinh chỉnh riêng cho section Điều hoà / TV để tránh khoảng trống dưới ảnh */
.hwwh-climate .hwwh-feature-grid {
    align-items: center;
}

.hwwh-climate .hwwh-feature-copy {
    align-self: center;
}

.hwwh-climate .hwwh-feature-media {
    align-self: center;
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
}

.hwwh-climate .hwwh-feature-media img {
    height: auto;
    max-height: 620px;
}

@media (max-width: 1180px) {
    .hwwh-climate .hwwh-feature-media {
        min-height: 0;
    }
}


/* Tăng riêng kích thước ảnh cho section Điều hoà / TV để cân hơn với khối text */
.hwwh-climate .hwwh-feature-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 3vw, 42px);
}

.hwwh-climate .hwwh-feature-media {
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 0;
}

.hwwh-climate .hwwh-feature-media img {
    width: 104%;
    max-width: none;
    margin-right: -2%;
    height: auto;
    max-height: none;
}

@media (max-width: 1180px) {
    .hwwh-climate .hwwh-feature-grid {
        grid-template-columns: 1fr;
    }

    .hwwh-climate .hwwh-feature-media {
        justify-content: center;
        padding-left: 8px;
        padding-right: 8px;
    }

    .hwwh-climate .hwwh-feature-media img {
        width: 100%;
        margin-right: 0;
        max-width: 100%;
    }
}


/* Dịch ảnh section Khóa thông minh xuống nhẹ để cân với khối text */
.hwwh-lock .hwwh-feature-grid {
    align-items: start;
}

.hwwh-lock .hwwh-feature-media {
    margin-top: 26px;
}

@media (max-width: 1180px) {
    .hwwh-lock .hwwh-feature-grid {
        align-items: center;
    }

    .hwwh-lock .hwwh-feature-media {
        margin-top: 0;
    }
}


/* Dịch ảnh section Camera thông minh xuống nhẹ để cân với khối text */
.hwwh-camera .hwwh-feature-grid {
    align-items: start;
}

.hwwh-camera .hwwh-feature-media {
    margin-top: 24px;
}

@media (max-width: 1180px) {
    .hwwh-camera .hwwh-feature-grid {
        align-items: center;
    }

    .hwwh-camera .hwwh-feature-media {
        margin-top: 0;
    }
}


/* Mobile riêng cho section giọng nói: 3 cột nằm cùng 1 hàng, không ảnh hưởng PC */
@media (max-width: 767px) {
    .hwwh-voice .hwwh-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .hwwh-voice .hwwh-mini-card {
        padding: 14px 10px;
    }

    .hwwh-voice .hwwh-mini-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .hwwh-voice .hwwh-mini-card p {
        font-size: 12px;
        line-height: 1.45;
    }
}


/* Mobile riêng cho section khóa: 3 ô nằm cùng 1 hàng, không ảnh hưởng PC */
@media (max-width: 767px) {
    .hwwh-lock .hwwh-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .hwwh-lock .hwwh-mini-card {
        padding: 14px 10px;
    }

    .hwwh-lock .hwwh-mini-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .hwwh-lock .hwwh-mini-card p {
        font-size: 12px;
        line-height: 1.45;
    }
}

/* Mobile riêng cho section camera và điều hoà/TV: 4 ô chia thành 2 cột, không ảnh hưởng PC */
@media (max-width: 767px) {
    .hwwh-camera .hwwh-mini-grid,
    .hwwh-climate .hwwh-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hwwh-camera .hwwh-mini-card,
    .hwwh-climate .hwwh-mini-card {
        padding: 16px 12px;
    }

    .hwwh-camera .hwwh-mini-card h3,
    .hwwh-climate .hwwh-mini-card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .hwwh-camera .hwwh-mini-card p,
    .hwwh-climate .hwwh-mini-card p {
        font-size: 12px;
        line-height: 1.5;
    }
}


/* Mobile riêng cho section Vì sao nên chọn: 2 cột, mỗi cột 2 ô, không ảnh hưởng PC */
@media (max-width: 767px) {
    .hwwh-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hwwh-why-card {
        padding: 18px 12px;
        border-radius: 16px;
    }

    .hwwh-why-card .hwwh-card-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 12px;
    }

    .hwwh-why-card .hwwh-card-icon img {
        width: 40px;
        height: 40px;
    }

    .hwwh-why-card h3 {
        font-size: 16px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .hwwh-why-card p {
        font-size: 13px;
        line-height: 1.45;
    }
}


/* Chốt font Arial và làm tiêu đề gọn hơn để tránh lỗi hiển thị dấu tiếng Việt */
.hwwh-root,
.hwwh-root * {
    font-family: Arial, Helvetica, sans-serif !important;
}

.hwwh-intro-copy h2,
.hwwh-feature-copy h2,
.hwwh-title-line h2 {
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.14;
}

.hwwh-feature-copy h2 {
    font-size: clamp(30px, 3.45vw, 54px);
}

.hwwh-intro-copy h2 {
    font-size: clamp(26px, 2.7vw, 40px);
}

.hwwh-title-line h2 {
    font-size: clamp(22px, 2.35vw, 34px);
}

@media (max-width: 767px) {
    .hwwh-feature-copy h2 {
        font-size: clamp(28px, 8vw, 38px);
    }
}


/* Sửa riêng font section cuối */
.hwwh-why-card,
.hwwh-why-card h3,
.hwwh-why-card p {
    font-family: Arial, Helvetica, sans-serif !important;
}

.hwwh-why-card h3 {
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.hwwh-why-card p {
    font-size: 15px;
    line-height: 1.55;
}


/* Sửa riêng lỗi font ở Section 2 - các card Kết nối / Điều khiển / Mở rộng */
.hwwh-intro-card,
.hwwh-intro-card h3,
.hwwh-intro-card p {
    font-family: Arial, Helvetica, sans-serif !important;
}

.hwwh-intro-card h3 {
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

.hwwh-intro-card p {
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: 0;
}


/* Sửa riêng font cho các thẻ mini ở section Khóa / Camera / Điều hòa-TV */
.hwwh-lock .hwwh-mini-card,
.hwwh-lock .hwwh-mini-card h3,
.hwwh-lock .hwwh-mini-card p,
.hwwh-camera .hwwh-mini-card,
.hwwh-camera .hwwh-mini-card h3,
.hwwh-camera .hwwh-mini-card p,
.hwwh-climate .hwwh-mini-card,
.hwwh-climate .hwwh-mini-card h3,
.hwwh-climate .hwwh-mini-card p {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0 !important;
    font-style: normal !important;
}

.hwwh-lock .hwwh-mini-card h3,
.hwwh-camera .hwwh-mini-card h3,
.hwwh-climate .hwwh-mini-card h3 {
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.3;
    font-weight: 700;
    text-rendering: geometricPrecision;
}

.hwwh-lock .hwwh-mini-card p,
.hwwh-camera .hwwh-mini-card p,
.hwwh-climate .hwwh-mini-card p {
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
    text-rendering: geometricPrecision;
}

@media (max-width: 767px) {
    .hwwh-lock .hwwh-mini-card h3,
    .hwwh-camera .hwwh-mini-card h3,
    .hwwh-climate .hwwh-mini-card h3 {
        font-size: 14px;
        line-height: 1.28;
    }

    .hwwh-lock .hwwh-mini-card p,
    .hwwh-camera .hwwh-mini-card p,
    .hwwh-climate .hwwh-mini-card p {
        font-size: 12px;
        line-height: 1.48;
    }
}


/* Tinh chỉnh riêng heading mobile/tablet để giữ các cụm từ trên cùng 1 dòng */
@media (max-width: 1100px) {
    .hwwh-lock .hwwh-feature-copy h2 {
        font-size: clamp(26px, 5.4vw, 42px);
        line-height: 1.16;
    }

    .hwwh-camera .hwwh-feature-copy h2 {
        font-size: clamp(26px, 5.2vw, 42px);
        line-height: 1.16;
    }
}


/* Đưa nguyên cụm "ngôi nhà" xuống cùng một dòng ở section Khóa trên tablet/mobile */
.hwwh-lock-title-newline {
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .hwwh-lock-title-newline {
        display: block;
    }
}


.hwwh-camera-title-newline {
    display: block;
    white-space: nowrap;
}


/* Mobile: đưa cụm "ngôi nhà" lên liền dòng, không tách riêng */
@media (max-width: 767px) {
    .hwwh-lock-title-newline {
        display: inline;
        white-space: normal;
    }
}


/* Mobile: đưa cụm "an ninh chủ động" lên liền dòng, không tách riêng */
@media (max-width: 767px) {
    .hwwh-camera-title-newline {
        display: inline;
        white-space: normal;
    }
}


/* Desktop: giãn dòng phần text bên trái của section Khóa để cân hơn với ảnh */
@media (min-width: 768px) {
    .hwwh-lock .hwwh-feature-copy h2 {
        line-height: 1.18;
        margin-bottom: 24px;
    }

    .hwwh-lock .hwwh-richtext {
        line-height: 1.7;
    }

    .hwwh-lock .hwwh-richtext p {
        margin-bottom: 18px;
    }

    .hwwh-lock .hwwh-mini-grid {
        margin-top: 34px;
    }
}


/* Tuỳ chỉnh ảnh từ trang quản trị: chỉ áp dụng trên PC, không ảnh hưởng mobile/tablet */
@media (min-width: 1181px) {
    .hwwh-feature-media img {
        width: var(--hwwh-img-width, 100%) !important;
        height: auto !important;
        max-width: none;
        transform: translate(var(--hwwh-img-x, 0px), var(--hwwh-img-y, 0px));
        transition: transform .2s ease, width .2s ease;
    }
}

@media (max-width: 1180px) {
    .hwwh-feature-media img {
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Chuyển toàn bộ heading chính về màu đen */
.hwwh-intro-copy h2,
.hwwh-intro-copy h2 span,
.hwwh-feature-copy h2,
.hwwh-feature-copy h2 span,
.hwwh-title-line h2,
.hwwh-title-line h2 span {
    color: var(--hwwh-text) !important;
}


/* Sửa lỗi font riêng cho nhãn nhỏ phía trên heading */
.hwwh-eyebrow {
    font-family: Arial, Helvetica, "Arial Unicode MS", sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hwwh-eyebrow *,
.hwwh-eyebrow::before {
    font-family: Arial, Helvetica, "Arial Unicode MS", sans-serif !important;
}
