:root {
    --primary-red: #e60012;
    --primary-hover: #cc0010;
    --bg-page: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-page);
}

.hw-container {
    max-width: 1220px;
    margin: 20px auto 60px;
    padding: 0 16px;
    box-sizing: border-box;
}

.hw-breadcrumb {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.hw-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.hw-breadcrumb a:hover {
    color: var(--text-dark);
}

/* BỐ CỤC 2 CỘT MÀN HÌNH MÁY TÍNH */
.hw-main-grid {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 30px;
}

.hw-left-sticky {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

/* THIẾT KẾ CARD PHẲNG HIỆN ĐẠI (KHÔNG DÙNG BORDER CỨNG) */
.hw-card-flat {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.hw-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

/* CỤM NÚT THAO TÁC - LUÔN HIỂN THỊ ĐẦY ĐỦ TRÊN MỌI THIẾT BỊ */
.hw-action-btns {
    display: flex !important;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.hw-btn-order {
    flex: 1.4;
    padding: 13px 18px;
    background: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.25);
    transition: background 0.15s ease;
}
.hw-btn-order:hover {
    background: var(--primary-hover);
}

.hw-btn-zalo {
    flex: 1;
    padding: 13px 16px;
    background: #eff6ff;
    color: #0284c7;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}
.hw-btn-zalo:hover {
    background: #dbeafe;
}

/* NỘI DUNG MÔ TẢ & SỬA LỖI DANH SÁCH BỊ SÁT MÉP LỀ */
.hw-article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}
.hw-article-content p {
    margin: 0 0 14px;
}
.hw-article-content ul, 
.hw-article-content ol {
    margin: 14px 0 18px 0;
    padding-left: 28px !important;
    box-sizing: border-box;
}
.hw-article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #334155;
}
.hw-article-content li::marker {
    color: var(--primary-red);
}
.hw-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* KHỐI FAQ ACCORDION */
.hw-faq-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.hw-faq-item[open] {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hw-faq-summary {
    font-weight: 600;
    color: #1e293b;
    font-size: 14.5px;
    cursor: pointer;
    outline: none;
    user-select: none;
}
.hw-faq-desc {
    margin: 10px 0 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* ẨN THANH BOTTOM BAR CỐ ĐỊNH */
.mobile-bottom-bar {
    display: none !important;
}

/* HIỆU ỨNG POPUP FADE-IN */
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* TỐI ƯU GIAO DIỆN DI ĐỘNG & IPAD FULL VIỀN 100%, KHÔNG BO TRÒN */
@media (max-width: 900px) {
    .hw-container {
        margin: 0 auto 50px;
        padding: 0;
        width: 100%;
    }
    .hw-breadcrumb {
        padding: 12px 16px;
        margin-bottom: 0;
    }
    .hw-main-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    .hw-left-sticky {
        position: static;
        gap: 12px;
    }
    /* Triệt tiêu hoàn toàn góc bo tròn và bóng đổ để tràn sát cạnh màn hình */
    .hw-card-flat {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .hw-product-img-box {
        height: 250px !important;
        border-radius: 0 !important;
    }
    .hw-action-btns {
        flex-direction: row; /* Giữ 2 nút song song nằm vừa vặn trên 1 hàng */
    }
}
