/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* màu thanh menu  */
@media (max-width: 849px) {
  /* Nền header trắng + bóng nhẹ tách khỏi banner */
  #header .header-main {
    background-color: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  }

  /* Icon menu, giỏ hàng... chuyển sang cam */
  #header .header-main .nav > li > a,
  #header .header-main .nav > li > a i,
  #header .header-main .nav > li > a .cart-icon strong {
    color: #ff6b1a !important;
  }

  /* Viền nút hamburger */
  #header .header-main .nav > li > a.is-outline,
  #header .header-main .nav > li > a .cart-icon strong {
    border-color: #ff6b1a !important;
  }
}

/* ===== Ảnh sản phẩm: khung vuông đều nhau, không nhảy chiều cao ===== */
.single-product .product-gallery-slider .woocommerce-product-gallery__image{background:#fff}
.single-product .product-gallery-slider .woocommerce-product-gallery__image a{display:block}
.single-product .product-gallery-slider .woocommerce-product-gallery__image img{
    display:block;width:100%;
    aspect-ratio:1/1;height:auto!important;
    object-fit:contain;background:#fff;
}
/* Ảnh nhỏ bên dưới */
.single-product .product-thumbnails .col a{display:block}
.single-product .product-thumbnails img{
    display:block;width:100%;
    aspect-ratio:1/1;height:auto!important;
    object-fit:contain;background:#fff;border-radius:8px;
}

.nav-right{
	max-width: 520px;
}

.badge {
	margin-top: 10px;
    margin-left: 10px;
    backface-visibility: hidden;
    display: table;
    height: 2.0em;
    /* pointer-events: none; */
    width: 6.8em;
    z-index: 20;
}

@media((min-width: 767px) and (max-width: 850px)){
	.badge{
	margin-top: -15px !important;
    margin-left: 10px;
    backface-visibility: hidden;
    display: table;
    height: 1.6em;
    /* pointer-events: none; */
    width: 6.8em;

	}
}

@media(max-width: 549px){
	.badge{
		margin-top: -15px !important;
	}
}

.container {
    max-width: 1500px;
}

.row {
    max-width: 1500px;
 
}

.text_1{
  color: black;
    font-size: 30px;
    font-weight: 700;
}

.title_spcb{
  font-size: 24px;
  font-weight: 600;
}

.text_3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 70px !important;
    line-height: 96px;
}

.text_3d{
  margin-top: -40px;
  font-size: 20px;
}

.mau_thiet_ke{
  padding-left: 30px;
}

.pc_3d{
  margin-bottom: 0 !important;
}

.sec_3d{
  text-align: center;
}

.button_1{
  background-color: #b11016;
}

.header-main .searchform .ux-search-submit {
    bottom: 2px;
    right: 0px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    /* margin: 3px; */
    background: #7a0c12;
}

.header-main .nav > li > a {
    line-height: unset !important;
}

.header:not(.transparent) .header-nav-main.nav > li > a {
    font-size: 14px;
    color: #ffffff;
}


/* ===== Trang tin tức ===== */
.hs-breadcrumb { font-size: 13px; color: #666; margin-bottom: 12px; }
.hs-breadcrumb a { color: #666; }
.hs-news-banner img { border-radius: 12px; }

/* Hộp nền trắng bo góc */
.hs-box > .col-inner,
.row.hs-box { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.hs-box-title { font-size: 22px; font-weight: 700; margin: 0 0 12px; }

/* Thẻ bài viết */
.hs-news-page .box-blog-post {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.08); height: 100%;
}
.hs-news-page .box-blog-post .box-text { padding: 10px 12px 14px; text-align: left; }
.hs-news-page .box-blog-post .is-divider { display: none; }
.hs-news-page .post-title {
  font-size: 16px; font-weight: 600; line-height: 1.5; color: #222;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-news-page .box-blog-post:hover .post-title { color: #B5121B; }
.hs-news-page .from_the_blog_excerpt {
  font-size: 14px; color: #555; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-news-page .post-meta { font-size: 14px; color: #555; margin-top: 8px; }

/* Bài nổi bật lớn: tiêu đề đỏ */
.hs-featured-main .post-title { color: #B5121B; font-size: 18px; }

/* Sidebar */
.hs-side-posts .box-blog-post { box-shadow: none; border: 1px solid #eee; margin-bottom: 10px; }
.hs-side-posts .post-title { font-size: 15px; }
.hs-news-search { display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; margin: 0; }
.hs-news-search input { border: 0; box-shadow: none; margin: 0; height: 44px; }
.hs-news-search button { background: none; color: #666; margin: 0; padding: 0 14px; min-height: 44px; }
.hs-cat-list { list-style: none; margin: 0; }
.hs-cat-list li { margin: 0; padding: 10px 0; }
.hs-cat-list a { color: #333; font-size: 16px; }
.hs-cat-list a:hover { color: #B5121B; }

/* Nút Xem thêm */
.hs-more.button {
  border: 1px solid #B5121B !important; color: #B5121B !important; background: transparent !important;
  padding: 0 40px; text-transform: none; font-weight: 600;
}
.hs-more.button:hover { background: #B5121B !important; color: #fff !important; }

/* 4 ô cam kết */
.hs-services .col-inner { background: #fff; border-radius: 12px; padding: 24px 10px; text-align: center; height: 100%; }
.hs-services h4 { font-size: 16px; margin: 10px 0 6px; }
.hs-services a { color: #2a5bd7; text-decoration: underline; }

/* ===== Ô bài viết cao đều – bản sửa ===== */

/* 1. Các ô trong cùng hàng cao bằng nhau */
.hs-news-page .row > .post-item { display: flex; }
.hs-news-page .post-item > .col-inner {
  display: flex; flex-direction: column; width: 100%;
}
.hs-news-page .post-item > .col-inner > * { flex: 1 1 auto; }

/* 2. Thẻ bài viết (trừ kiểu ảnh trái ở sidebar) */
.hs-news-page .box-blog-post:not(.box-vertical) {
  display: flex !important; flex-direction: column; height: 100%;
}
.hs-news-page .box-blog-post:not(.box-vertical) .box-text {
  flex: 1 1 auto; display: flex; flex-direction: column;
  padding: 12px 12px 14px !important; text-align: left;
}
.hs-news-page .box-blog-post:not(.box-vertical) .box-text-inner {
  display: flex; flex-direction: column; flex: 1 1 auto;
}

/* 3. Ảnh cùng tỉ lệ 16:9 */
.hs-news-page .box-blog-post:not(.box-vertical) .box-image .image-cover {
  padding-top: 56.25% !important;
}
.hs-news-page .box-blog-post .box-image img { object-fit: cover; }

/* 4. Tiêu đề: đúng 2 dòng, không lộ dòng thứ 3 */
.hs-news-page .box-blog-post .post-title {
  font-size: 16px !important; line-height: 24px !important;
  height: 48px; max-height: 48px;
  margin: 0 0 8px !important; padding: 0 !important;
  overflow: hidden;
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.hs-news-page .box-blog-post .post-title * {
  font-size: inherit !important; line-height: inherit !important;
}

/* 5. Ngày đăng */
.hs-news-page .box-blog-post .post-meta {
  font-size: 14px; line-height: 20px; margin: 0 0 6px; opacity: 1; color: #666;
}

/* 6. Đoạn trích: đúng 2 dòng */
.hs-news-page .box-blog-post .from_the_blog_excerpt {
  font-size: 14px !important; line-height: 22px !important;
  height: 44px; max-height: 44px; margin: 0 !important;
  overflow: hidden; color: #555;
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}

/* 7. Bài nổi bật lớn: tiêu đề to hơn, vẫn 2 dòng */
.hs-featured-main .box-blog-post .post-title {
  font-size: 18px !important; line-height: 27px !important;
  height: 54px; max-height: 54px; color: #B5121B;
}

/* Bài nổi bật lớn kéo cao bằng cột 4 bài bên phải (chỉ trên máy tính) */
@media (min-width: 850px) {
  .hs-featured-main > .col-inner,
  .hs-featured-main .row,
  .hs-featured-main .post-item,
  .hs-featured-main .post-item > .col-inner { height: 100%; }
  .hs-featured-main .box-blog-post .box-image { flex: 1 1 auto; position: relative; }
  .hs-featured-main .box-blog-post .box-image .image-cover {
    padding-top: 0 !important; height: 100%; min-height: 280px;
  }
}

/* 8. Sidebar "Tin mới nhất" (ảnh trái): tiêu đề 2 dòng, trích 1 dòng */
.hs-side-posts .box-blog-post .post-title {
  font-size: 15px !important; line-height: 22px !important;
  height: 44px; max-height: 44px;
}
.hs-side-posts .box-blog-post .from_the_blog_excerpt {
  -webkit-line-clamp: 1; height: 22px; max-height: 22px;
}

.box-image {
    width: 100% !important;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}



.section-title span .title{
    text-transform: none !important;
}

/* ===== Trang chuyên mục bài viết ===== */
body.hs-news-body #main { background: #f2f2f2; }
.hs-cat-archive { padding: 15px 0 30px; }
.hs-cat-title { font-size: 24px; font-weight: 700; margin: 0 0 16px; }

/* Thẻ bài viết cao đều */
.hs-card-col { display: flex; }
.hs-card-col > .col-inner { width: 100%; }
.hs-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.hs-card-img { display: block; position: relative; padding-top: 56.25%; background: #eee; }
.hs-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-card-body { flex: 1; display: flex; flex-direction: column; padding: 10px 12px 12px; }

.hs-card-title {
  font-size: 16px; font-weight: 600; line-height: 1.5; height: 3em; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-card-title a { color: #222; }
.hs-card-title a:hover { color: #B5121B; }

.hs-card-excerpt {
  font-size: 14px; line-height: 1.6; height: 3.2em; color: #555; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.hs-card-footer {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: #555;
}
.hs-card-footer svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.hs-share { color: #555; }
.hs-share:hover { color: #B5121B; }

/* Hộp sidebar */
.hs-side-box { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 20px; }

/* Phân trang */
.hs-cat-archive .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.hs-cat-archive .page-numbers {
  min-width: 38px; height: 38px; line-height: 38px; padding: 0 8px;
  text-align: center; border-radius: 20px; background: #fff; color: #333; font-weight: 600;
}
.hs-cat-archive .page-numbers.current,
.hs-cat-archive a.page-numbers:hover { background: #B5121B; color: #fff; }

.hs-search-count { font-size: 15px; color: #555; margin: -8px 0 16px; }
.hs-search-count strong { color: #B5121B; }
.hs-empty { background: #fff; border-radius: 12px; padding: 24px; font-size: 15px; color: #555; }
.hs-empty p:last-child { margin-bottom: 0; }

/* ===== Sidebar: Tin mới nhất (ảnh trái – chữ phải) ===== */
.hs-latest-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.hs-latest-list li.hs-latest-item {
  display: flex; gap: 12px; align-items: stretch;
  list-style: none !important; margin: 0 0 12px !important; padding: 0 !important;
  border: 1px solid #eee; border-radius: 10px; overflow: hidden; background: #fff;
}
.hs-latest-list li.hs-latest-item:last-child { margin-bottom: 0 !important; }

.hs-latest-thumb {
  flex: 0 0 42%; max-width: 42%;
  position: relative; display: block; background: #eee; min-height: 110px;
}
.hs-latest-thumb img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; margin: 0;
}

.hs-latest-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; padding: 10px 10px 10px 0;
}
.hs-latest-title {
  font-size: 15px; font-weight: 600; line-height: 22px; color: #222;
  max-height: 44px; overflow: hidden; margin-bottom: 4px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.hs-latest-title:hover { color: #B5121B; }
.hs-latest-excerpt {
  font-size: 13px; line-height: 20px; color: #666;
  max-height: 20px; overflow: hidden; margin: 0 0 6px !important;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
}
.hs-latest-date { margin-top: auto; font-size: 13px; color: #666; white-space: nowrap; }
.hs-latest-date svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ===== Trang bài viết chi tiết ===== */
.hs-single-box {
  background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px;
}
.hs-single-cats { margin-bottom: 8px; }
.hs-single-cats a {
  display: inline-block; font-size: 13px; font-weight: 600; color: #B5121B;
  background: #fcecef; border-radius: 20px; padding: 3px 12px; margin: 0 6px 6px 0;
}
.hs-single-title { font-size: 28px; line-height: 1.4; font-weight: 700; color: #222; margin: 0 0 10px; }
.hs-single-meta {
  display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: #666;
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid #eee;
}
.hs-single-meta svg { vertical-align: -3px; margin-right: 4px; }
.hs-single-thumb img { width: 100%; border-radius: 10px; margin-bottom: 20px; }

/* Nội dung bài viết */
.hs-single-content { font-size: 16px; line-height: 1.8; color: #333; }
.hs-single-content h2 { font-size: 22px; margin: 28px 0 12px; color: #222; }
.hs-single-content h3 { font-size: 19px; margin: 24px 0 10px; color: #222; }
.hs-single-content img { border-radius: 8px; height: auto; }
.hs-single-content a { color: #B5121B; text-decoration: underline; }
.hs-single-content blockquote {
  border-left: 4px solid #B5121B; background: #fafafa; padding: 12px 18px; margin: 20px 0;
}
.hs-single-tags { margin-top: 20px; font-size: 14px; }
.hs-single-tags a {
  display: inline-block; background: #f2f2f2; color: #444; border-radius: 20px;
  padding: 3px 12px; margin: 0 6px 6px 0;
}
.hs-single-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee;
}
.hs-single-share .social-icons { margin: 0; }

/* ===== Form Đăng ký nhận tin (CF7) ===== */
.hs-subscribe label {
  display: block; font-size: 14px; font-weight: 600; color: #222; margin-bottom: 6px;
}
.hs-subscribe label span { color: #B5121B; }
.hs-subscribe .wpcf7-form-control-wrap { display: block; }
.hs-subscribe textarea {
  height: 110px; min-height: 110px; margin: 0; resize: vertical;
  border: 1px solid #ccc; border-radius: 8px; box-shadow: none; padding: 10px 12px;
}
.hs-counter { font-size: 12px; color: #666; margin: 4px 0 16px; }
.hs-subscribe-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; align-items: end;
}
.hs-subscribe input[type="text"],
.hs-subscribe input[type="email"],
.hs-subscribe input[type="tel"] {
  height: 48px; margin: 0; border: 1px solid #ccc; border-radius: 8px; box-shadow: none; padding: 0 12px;
}
.hs-subscribe textarea:focus,
.hs-subscribe input:focus { border-color: #B5121B; box-shadow: 0 0 0 2px rgba(181,18,27,.1); }
.hs-subscribe .wpcf7-submit {
  height: 48px; margin: 0; padding: 0 28px; border: 0; border-radius: 30px;
  background: #B5121B; color: #fff; font-size: 15px; font-weight: 700; text-transform: none;
}
.hs-subscribe .wpcf7-submit:hover { background: #8f0e15; }
.hs-field-btn { position: relative; }
.hs-subscribe .wpcf7-spinner { position: absolute; right: -30px; top: 12px; margin: 0; }
.hs-subscribe .wpcf7-not-valid-tip { font-size: 12px; margin-top: 4px; }
.hs-subscribe-box .wpcf7-response-output {
  margin: 16px 0 0 !important; border-radius: 8px; font-size: 14px; padding: 10px 14px !important;
}

/* Bài liên quan */
.hs-related .row { margin-left: -8px; margin-right: -8px; }

/* Mobile */
@media (max-width: 849px) {
  .hs-single-box { padding: 16px; }
  .hs-single-title { font-size: 22px; }
  .hs-subscribe-row { grid-template-columns: 1fr; }
  .hs-subscribe .wpcf7-submit { width: 100%; }
}

/* ===== Nút Xem thêm + thanh tiến trình ===== */
.hs-loadmore-footer { text-align: center; margin-top: 8px; }
.hs-loadmore-status { font-size: 14px; color: #222; margin: 0 0 8px; }
.hs-loadmore-bar {
  width: 100%; max-width: 450px; height: 4px; margin: 0 auto 18px;
  background: #e0e0e0; border-radius: 4px; overflow: hidden;
}
.hs-loadmore-bar span {
  display: block; height: 100%; min-width: 8px;
  background: #FF6B1A; border-radius: 4px; transition: width .4s ease;
}
.hs-loadmore-btn {
  min-width: 160px; height: 48px; margin: 0 !important; padding: 0 30px !important;
  border: 1px solid #FF6B1A !important; border-radius: 30px !important;
  background: transparent !important; color: #FF6B1A !important;
  font-size: 16px; font-weight: 700; text-transform: none !important; line-height: 46px;
  cursor: pointer; transition: all .2s;
}
.hs-loadmore-btn:hover { background: #FF6B1A !important; color: #fff !important; }
.hs-loadmore-btn:disabled { opacity: .6; cursor: wait; }


/* ===== Section: Chương trình khuyến mãi ===== */
.hs-promo .section-title-container { margin-bottom: 16px; }
.hs-promo .section-title {
  display: flex; align-items: center; justify-content: space-between;
  border: 0; font-size: 24px; font-weight: 700; color: #222; text-transform: none;
}
.hs-promo .section-title b { display: none; }
.hs-promo .section-title-main { text-transform: none !important;
    border: 0;
    padding: 0;
    font-size: 22px; }

/* Nút "Xem tất cả" */
.hs-promo .section-title a {
  font-size: 15px; font-weight: 600; color: #FF6B1A; text-transform: none;
  border: 1px solid #FF6B1A; border-radius: 30px; padding: 4px 14px; margin: 0;
}
.hs-promo .section-title a:hover { background: #FF6B1A; color: #fff; }
.hs-promo .section-title a i { display: none; }

/* Slider: chỉ hiện ảnh banner */
.hs-promo-slider .box-text { display: none !important; }
.hs-promo-slider .box-blog-post { box-shadow: none; background: transparent; }
.hs-promo-slider .box-image { border-radius: 10px; overflow: hidden; }
.hs-promo-slider .box-image img { transition: transform .4s; }
.hs-promo-slider .box-blog-post:hover .box-image img { transform: scale(1.03); }
.hs-promo-slider .badge { display: none; }

.slider-nav-circle .flickity-prev-next-button svg{
    top:145px !important;
}

/* Màn hình nhỏ: mũi tên thu vào trong để không tràn ngoài màn hình */
@media (max-width: 849px) {
  .hs-promo-slider .flickity-prev-next-button.previous { left: 4px !important; }
  .hs-promo-slider .flickity-prev-next-button.next { right: 4px !important; }
}

/* ================= Trang Liên hệ (page-lien-he.php) ================= */
.hslh{--hs-red:#ff6b1a;--hs-border:#e5e5e5;background:#f5f5f5;padding:20px 0 50px}
.hslh__wrap{max-width:1600px;margin:0 auto;padding:0 20px}
.hslh-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Breadcrumb (dự phòng khi chưa có [hs_breadcrumb]) */
.hslh__crumb{margin-bottom:16px}
.hslh .hsb{font-size:13px;color:#666;margin:0;line-height:1.5}
.hslh .hsb a{color:#666}
.hslh .hsb a:hover{color:var(--hs-red)}
.hslh .hsb__sep{margin:0 6px;color:#aaa}
.hslh .hsb__cur{color:#222}

/* Lưới 2 cột */
.hslh__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:stretch;margin-bottom:24px}
.hslh__card{background:#fff;border-radius:16px;padding:28px;box-sizing:border-box}
.hslh__right{height: 1236px;;background:#fff;border-radius:16px;padding:32px;box-sizing:border-box;min-width:0}
/* Cột trái cao bằng cột form, nội dung (số liệu + bản đồ) nằm giữa → không còn khoảng trống lệch phía dưới */
.hslh__left{background:#fdf7f3;display:flex;flex-direction:column;justify-content:center;min-width:0}

/* Ô số liệu */
.hslh-stats{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin:0 0 24px}
.hslh-stat{flex:1 1 auto;justify-content:center;box-sizing:border-box;display:flex;align-items:center;gap:10px;background:var(--hs-red);color:#fff;border-radius:14px;padding:14px 18px;box-shadow:0 4px 12px rgba(200,16,46,.25)}
.hslh-stat__pre{font-size:15px;line-height:1.2;text-align:center}
.hslh-stat__num{white-space:nowrap;font-size:clamp(30px,2.6vw,40px);font-weight:800;color:#f5c542;line-height:1}
.hslh-stat__txt{white-space:nowrap;font-size:15px;line-height:1.25;font-weight:600}
.hslh__map img{display:block;width:100%;max-width:720px;height:auto;margin:0 auto;border-radius:12px}

/* Hotline + Email */
.hslh-info{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px}
.hslh-info__card{min-width:0;display:flex;gap:14px;align-items:center;border:1px solid var(--hs-border);border-radius:10px;padding:16px;background:#fff;color:#222;text-decoration:none}
.hslh-info__card *{text-decoration:none}
.hslh-info__card:hover{border-color:var(--hs-red);color:#222}
.hslh-info__icon{flex:0 0 48px;height:48px;border-radius:50%;background:var(--hs-red);color:#fff;display:flex;align-items:center;justify-content:center}
.hslh-info__card strong{display:block;font-size:15px}
.hslh-info__big{display:block;color:var(--hs-red);font-size:22px;font-weight:700;line-height:1.3}
.hslh-info__card small{display:block;color:#666;font-size:14px;overflow-wrap:anywhere}

/* Form CF7 (giữ nguyên class trong form: hs-cf, hs-field, hs-row...) */
.hs-cf{border:1px solid var(--hs-border);border-radius:10px;padding:20px;background:#fff}
.hs-cf p{margin:0}
.hs-cf br{display:none}
.hs-cf__title{font-size:20px;margin:0 0 6px}
.hs-cf__desc{font-size:14px;color:#444;margin-bottom:18px}
.hs-cf label{display:block;font-weight:400;font-size:15px;color:#222;margin-bottom:6px}
.hs-cf .req{color:var(--hs-red)}
.hs-field{margin-bottom:16px}
.hs-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.hs-cf input[type=text],.hs-cf input[type=email],.hs-cf input[type=tel],.hs-cf select,.hs-cf textarea{box-sizing:border-box;width:100%;height:48px;margin:0;border:1px solid #d9d9d9;border-radius:8px;padding:0 14px;font-size:15px;box-shadow:none;background-color:#fff}
.hs-cf textarea{height:120px;min-height:120px;padding:12px 14px;resize:vertical}
.hs-cf input:focus,.hs-cf select:focus,.hs-cf textarea:focus{border-color:var(--hs-red);box-shadow:none}
.hs-cf .hs-hidden{display:none!important}
.hs-count{text-align:right;font-size:12px;color:#888;margin-top:4px}
.hs-submit-row{display:flex;gap:20px;align-items:center;margin-top:20px}
.hs-consent{flex:1;font-size:13px;color:#555;line-height:1.5}
.hs-consent a{color:var(--hs-red);text-decoration:underline}
.hs-cf input[type=submit]{flex:none;height:48px;margin:0;padding:0 34px;border-radius:24px;background:#eee;color:#333;font-weight:600;text-transform:none}
.hs-cf input[type=submit]:hover{background:var(--hs-red);color:#fff}
.hs-cf .wpcf7-not-valid-tip{font-size:13px;margin-top:4px}

/* 4 ô cam kết */
.hslh-camket{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.hslh-ck{background:#fff;border-radius:12px;padding:28px 16px;text-align:center}
.hslh-ck__icon{color:var(--hs-red);margin-bottom:14px}
.hslh-ck__icon svg{width:40px;height:40px}
.hslh-ck h4{font-size:16px;margin:0 0 6px}
.hslh-ck h4 b{color:var(--hs-red)}
.hslh-ck p{margin:0;font-size:14px}
.hslh-ck a{color:#1a56db;text-decoration:underline}

/* Bản đồ Google: khoảng cách đều với khối trên / dưới (ghi đè CSS trong page-lien-he.php) */
.hslh .hslh-gmap{margin:0 0 24px;border:0;border-radius:16px}

/* Responsive */
/* Laptop nhỏ / tablet ngang: 2 cột hẹp → form chật, chữ đồng ý bị bó → xếp 1 cột */
@media (max-width:1099px){
  .hslh__grid{grid-template-columns:1fr}
  .hslh__left{padding:24px}
  .hslh__right{padding:28px}
  .hslh-camket{grid-template-columns:1fr 1fr}
}
@media (max-width:849px){
  .hslh__grid{grid-template-columns:1fr}
  .hslh-camket{grid-template-columns:1fr 1fr}
  .hslh-info,.hs-row{grid-template-columns:1fr}
  .hs-submit-row{flex-direction:column;align-items:stretch}
  .hs-cf input[type=submit]{width:100%}
  .text_3d {
    padding: 0px 5px;
    margin-top: -40px;
    font-size: 18px;
}

.hslh__right{
      height: unset;
    }
}
@media (max-width:549px){
  .hslh__wrap{padding:0 12px}
  .hslh__grid,.hslh-camket{gap:14px}
  .hslh__left,.hslh__right{padding:16px;border-radius:12px}
  .hs-cf{padding:16px}
  .hslh-stats{gap:10px;margin-bottom:16px}
  .hslh-stat{flex-basis:100%}
  .hslh-camket{grid-template-columns:1fr}
  .hslh-stat{padding:12px 16px}
  .hslh-stat__num{font-size:32px}
  .text_3 {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 34.5px !important;
    line-height: 66px;
}

   .hslh__right{
      height: unset;
    }
}

.text_3d {
    padding: 0 10px;
    margin-top: -15px;
    font-size: 17.0px;
}

  .hs-promo .section-title a {
    margin-top: 10px !important;
    
}


/* trang giới thiệu */

.km-about {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 15px;
  text-align: center;
  color: rgba(255,255,255,.92);
  font-size: 16.5px;
  line-height: 1.85;
}
.km-about p {
  margin: 0 0 14px;
}
.km-slogan {
  margin: 32px auto 0;
  padding: 20px 28px;
  max-width: 560px;
  border: 1px solid rgba(255,193,7,.55);
  border-radius: 10px;
  background: rgba(0,0,0,.12);
}
.km-slogan-label {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 6px;
}
.km-slogan strong {
  display: block;
  font-size: 24px;
  line-height: 1.4;
  color: #FFC107;
}
@media (max-width: 549px) {
  .km-about { font-size: 15px; text-align: left; }
  .km-slogan { text-align: center; }
  .km-slogan strong { font-size: 20px; }
}

/* ===== Tầm nhìn – Sứ mệnh – Giá trị cốt lõi ===== */
.km-vmv {
  --km-red: #ff6b1a;
  --km-gold: #ffc107;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 15px 10px;
}
.km-vmv-head { text-align: center; margin-bottom: 40px; }
.km-vmv-head h2 {
     font-weight: 800;
    font-family: serif;
    color: var(--km-red);
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 12px;
}
.km-vmv-bar {
  display: inline-block;
  width: 70px; height: 4px;
  border-radius: 2px;
  background: var(--km-gold);
}

/* 2 thẻ Tầm nhìn / Sứ mệnh */
.km-vmv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.km-vmv-card {
  background: #fff;
  border-radius: 12px;
  border-top: 4px solid var(--km-red);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  padding: 34px 32px 30px;
  transition: transform .25s, box-shadow .25s;
}
.km-vmv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(174,0,0,.15);
}
.km-vmv-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--km-red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.km-vmv-card h3 {
  color: var(--km-red);
  font-size: 22px;
  margin: 0 0 10px;
}
.km-vmv-card p {
  color: #444;
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

/* Dải Giá trị cốt lõi */
.km-values {
  margin-top: 32px;
  background: var(--km-red);
  border-radius: 12px;
  padding: 30px 28px 34px;
  text-align: center;
}
.km-values h3 {
  color: var(--km-gold);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 22px;
}
.km-values-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.km-value {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,193,7,.45);
  border-radius: 10px;
  padding: 18px 10px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  transition: background .25s;
}
.km-value:hover { background: rgba(255,255,255,.16); }
.km-value span {
  display: block;
  color: var(--km-gold);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

/* Tablet & mobile */
@media (max-width: 849px) {
  .km-values-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 549px) {
  .km-vmv { padding: 40px 15px 20px; }
  .km-vmv-head h2 { font-size: 22px; }
  .km-vmv-grid { grid-template-columns: 1fr; gap: 20px; }
  .km-vmv-card { padding: 26px 22px; }
  .km-values-list { grid-template-columns: repeat(2, 1fr); }
  .km-value:last-child { grid-column: span 2; }
}

/* ===== Hệ thống sản phẩm ===== */
.km-prod { padding-top: 20px; }
.km-prod-intro {
  max-width: 820px;
  margin: -16px auto 36px;
  text-align: center;
  color: #555;
  font-size: 16.5px;
  line-height: 1.8;
}
.km-cats {
  display: grid;
  grid-template-columns: repeat(var(--km-cols, 2), 1fr);
  gap: 32px 28px;
}
.km-cat {
  display: block;
  color: inherit;
  text-decoration: none;
}
.km-cat-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f2;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.km-cat-thumb img.km-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.km-cat:hover .km-cat-img { transform: scale(1.06); }
.km-cat-title {
  margin: 16px 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #222;
  transition: color .2s;
}
.km-cat:hover .km-cat-title { color: #ae0000; }
.km-cat-desc {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.65;
}
@media (max-width: 849px) {
  .km-cats { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
}
@media (max-width: 549px) {
  .km-cats { grid-template-columns: 1fr; }
  .km-prod-intro { font-size: 15px; text-align: left; }
}

/* ===== Vì sao chọn Khải Minh Home ===== */
.km-why-wrap {
  background: #fbf5f5;
}
.km-why-kicker {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
}
.km-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.km-why-item {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  padding: 30px 26px 28px;
  border: 1px solid #f0e2e2;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.km-why-item::after {
  content: attr(data-no);
  position: absolute;
  top: 10px; right: 18px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: rgba(174,0,0,.07);
  transition: color .25s;
}
.km-why-item:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(174,0,0,.13);
}
.km-why-item:hover::after { color: rgba(255,193,7,.35); }
.km-why-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(174,0,0,.08);
  color: #ae0000;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .25s, color .25s;
}
.km-why-item:hover .km-why-icon {
  background: #ae0000;
  color: #fff;
}
.km-why-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #222;
}
.km-why-item p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 849px) {
  .km-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 549px) {
  .km-why-grid { grid-template-columns: 1fr; gap: 16px; }
  .km-why-item { padding: 24px 20px; }
}

/* ===== Thương hiệu & Đối tác ===== */
.km-prod-intro p { margin: 0 0 8px; }
.km-brands {
  position: relative;
  padding: 0 52px;
}
.km-brands-track {
  --km-gap: 24px;
  --km-show: 5;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--km-rows, 2), auto);
  grid-auto-columns: calc((100% - (var(--km-show) - 1) * var(--km-gap)) / var(--km-show));
  gap: var(--km-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.km-brands-track::-webkit-scrollbar { display: none; }
.km-brand {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f4f4;
  scroll-snap-align: start;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.km-brand-logo, .km-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
}
.km-brand-logo img {
  object-fit: contain;
  transition: transform .4s ease;
}
.km-brand-logo em {
  display: flex; height: 100%;
  align-items: center; justify-content: center;
  font-style: normal; font-weight: 700; color: #ae0000;
}
.km-brand-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 12px 12px;
  background: linear-gradient(to top, rgba(120,0,0,.95), rgba(120,0,0,.75) 70%, transparent);
  color: #fff;
  text-align: center;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.km-brand-info strong { display: block; font-size: 15px; }
.km-brand-info small { display: block; margin-top: 3px; font-size: 12.5px; color: #ffd75a; line-height: 1.4; }
.km-brand:hover .km-brand-info { transform: translateY(0); }
.km-brand:hover .km-brand-logo img { transform: scale(1.05); }

.km-brands-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  margin: 0; padding: 0;
  border-radius: 50%;
  border: 0;
  /* background: #f1e6e6; */
  color: #ae0000;
  font-size: 50px;
  line-height: 36px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.km-brands-nav.prev { left: 0; }
.km-brands-nav.next { right: 0; }

.km-partner-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.km-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
}
.km-btn-red { background: #ae0000; color: #fff; border: 2px solid #ae0000; }
.km-btn-red:hover { background: #8a0000; border-color: #8a0000; color: #fff; }
.km-btn-line { color: #ae0000; border: 2px solid #ae0000; }
.km-btn-line:hover { background: #ae0000; color: #fff; }

@media (max-width: 849px) {
  .km-brands-track { --km-show: 3; --km-gap: 16px; }
}
@media (max-width: 549px) {
  .km-brands { padding: 0 34px; }
  .km-brands-track { --km-show: 2; --km-gap: 12px; }
  .km-brands-nav { width: 30px; height: 30px; font-size: 22px; line-height: 28px; }
}
@media (hover: none) {
  .km-brand-info { display: none; }
}


/* Cân bằng 2 cột: rộng bằng nhau + cao bằng nhau (máy tính) */
    @media(min-width:850px){
      .hsp .product-main .content-row{align-items:stretch!important;flex-wrap:nowrap;max-width: 1200px !important;}
      .hsp .product-main .product-gallery{flex:0 0 calc(50% - 7.5px)!important;max-width:calc(50% - 7.5px)!important;padding-left:15px!important;padding-right:0!important;display:flex;flex-direction:column}
      .hsp .product-main .product-info{flex:0 0 calc(50% - 22.5px)!important;max-width:calc(50% - 22.5px)!important;margin:0 15px 30px!important}
      .hsp .product-gallery .product-images{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center}
    }


    /* Điện thoại + tablet: 2 khung trắng tách rời, không chồng nhau, không tràn ngang */
    @media(max-width:849px){
      .hsp .product-main{overflow-x:hidden}
      .hsp .product-main .content-row{margin-left:0!important;margin-right:0!important;display:block}
      .hsp .product-main .product-gallery{flex:none!important;max-width:100%!important;width:100%!important;padding:0 12px!important;margin:0 0 14px!important}
      .hsp .product-gallery .product-images{margin:0!important;border-radius:12px}
      .hsp .product-main .product-info{flex:none!important;max-width:none!important;width:auto!important;margin:0 12px 20px!important;padding:16px 16px 20px!important;border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
      .hsp .product-info .product-title{font-size:20px;line-height:1.35}
      .hsp-price__now,.hsp-price__now .amount{font-size:22px}
      .hsp-vat{margin-bottom:12px;padding-bottom:12px}
      .hsp form.cart .single_add_to_cart_button,.hsp .hsp-buynow{height:46px;font-size:15px;padding:0 10px!important}
      .hsp-call{height:auto;min-height:46px;padding:8px 12px;flex-wrap:wrap;row-gap:2px;font-size:14px;text-align:center}
      .hsp-commit__item{padding:10px;font-size:13px;gap:8px}
      .hsp .woocommerce-tabs,.hsp-related{margin-left:12px!important;margin-right:12px!important}
    }
    /* Tablet: ảnh không quá to */
    @media(min-width:550px) and (max-width:849px){
      .hsp .product-gallery .product-images img{max-height:460px;width:auto;margin:0 auto;object-fit:contain}
    }
    /* Điện thoại nhỏ: 2 nút xếp dọc cho dễ bấm */
    @media(max-width:379px){
      .hsp form.cart .single_add_to_cart_button,.hsp .hsp-buynow{flex:1 1 100%}
      .hsp-commit__grid{grid-template-columns:1fr}
    }