/* Responsive */
@media (max-width: 1025px) {
	#hamburger {
		display: block;
	}
	.menu-head {
		display: none;
	}art-head {
		padding: 5px;
		font-size: 12px;
	}
	.header {
		padding: 10px 0px;
	}
	.flex-product-main {
		display: block;
	}
	.flex-product-main .left-product {
		position: fixed;
		z-index: 999;
		top: 0px;
		left: 0px;
		width: 280px;
		transform: translateX(-280px);
		bottom: 0px;
		overflow-y: auto;
		overflow-x: hidden;
		background: #fff;
		box-shadow: 0px 0px 15px rgba(0,0,0,.25);
		transition: all 0.4s ease;
		border-radius: 0;
	}
	.flex-product-main .left-product.show {
		transform: translateX(0px);
	}

	.flex-product-main .right-product {
		width: 100%;
	}

	.grid-product {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
	.filter{display: flex;}
	.menu-mobile-btn {
		display: flex;
		width: 35px;
		height: 35px;
		position: relative;
		flex-wrap: wrap;
		cursor: pointer;
		left: 0px;
	}
	.menu-mobile-btn span {
		display: inline-block;
		width: 100%;
		height: 3px;
		background: #000;
		margin: 4px 0px;
		left: 0;
	}
	.wrap-menu{width: calc(100% - 60px);}
	.menu ul {
		display: none !important;
	}
}
@media (max-width: 850px) {
	.news-left{width: 100%;}
	.news-right{width: 100%;margin-top: 30px;padding: 10px;}
}
@media (max-width: 769px) {
	.gutter-x-20{--bs-gutter-x: 10px;}
	.flex-about {
		flex-wrap: wrap;
	}
	.content-about {
		width: 100%;
	}

	.photo-about {
		margin-top: 20px;
		width: 100%;
		text-align: center;
	}
	.flex-video{
		flex-wrap: wrap;
	}
	.wr-video{width: 100%;}
	.wr-form{width: 100%;margin-top: 20px;}
	.item-news{padding: 5px;}
	.ds-news h3{font-size: 14px;}
	.text-cart{display: none;}
	.grid-pro-detail {
		display: block;
	}
	.grid-pro-detail .left-pro-detail {
		width: 100%;
		padding: 0px;
		border-right: none;
		/* Bỏ dính (sticky) ở responsive — layout đã chuyển sang xếp chồng (display:block),
		   sticky chỉ hợp lý với layout 2 cột trên desktop, trên mobile gây dính màn hình
		   một đoạn rồi mới thả ra, gây khó chịu khi cuộn. */
		position: static;
		top: auto;
	}
	.slick_photo1 {
		text-align: center;
	}
	.grid-pro-detail .right-pro-detail {
		width: 100%;
	}
	.grid-product, .grid-news {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.info-footer .flex-footer{
		display: block;
	}
	.box-footer{width: 100% !important;margin-top: 20px;}
}
@media (max-width: 440px) {

}
@media (max-width: 369px) {

}
/* =========================================================================
   HOÀNG PHÁT — RESPONSIVE (desktop >=1025px giữ đúng thiết kế gốc)
   ========================================================================= */

/* ---------- Desktop nhỏ / laptop: 1025px - 1500px ---------- */
@media (max-width: 1500px) {
    .hp-prd-section,
    .hp-service-section{padding:60px 40px}
    .hp-partner-section{padding:64px 40px}
    .hp-footer{padding:60px 40px 40px}
    .hp-nav{padding:0 40px}
    .hp-grid-prev{left:4px}
    .hp-grid-next{right:4px}
    .hp-header-inner{gap:32px}
    .hp-service-slider{--hp-spv:5}
}

@media (max-width: 1280px) {
    .hp-cat-tile{flex:1 1 0;width:auto}
    .hp-cat-side{display:none}
    .hp-service-name{font-size:18px}
    .hp-footer-columns{gap:60px}
    .hp-service-slider{--hp-spv:4}
}

/* Ẩn ô tìm kiếm trong mmenu riêng ở dải tablet 768-1024px (giữ nguyên hiện ở mobile <768px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .mmenu-search{display:none}
}

/* ---------- Tablet: 768px - 1024px ---------- */
@media (max-width: 1024px) {
    .hp-header-top::before{width:60%;clip-path:polygon(0 0,26px 100%,100% 100%,100% 0)}
    .hp-header-inner{height:60px;gap:16px}
    .hp-logo-img{width:66px;height:54px}
    .hp-search-box{width:240px}
    .hp-search .show-search{width:240px}
    .hp-hinfo{display:none}
    .hp-hline{display:none}
    .hp-hcircle,.hp-hcircle svg{width:36px;height:36px}
    .hp-hcircle{flex:0 0 36px}
    .hp-header-right{gap:12px}

    /* Hamburger + mmenu bắt đầu từ <1024px (không phải <768px) — thanh menu ngang ẩn hẳn, dùng offcanvas */
    .hp-menu-btn{display:flex}
    .hp-nav{display:none}

    .hp-cat-row{height:320px}
    .hp-cat-tile{height:320px}
    .hp-cat-tile-band{height:110px;padding:0 16px 20px}
    .hp-cat-tile-name{font-size:18px;line-height:26px;height:52px}

    .hp-section-title{font-size:26px;line-height:36px}
    .hp-grid-page{grid-template-columns:repeat(3,minmax(0,1fr))}
    .hp-card-pic,.hp-card-img{width:100%;height:auto;aspect-ratio:1/1}
    .hp-card-name{font-size:16px;line-height:20px}

    .hp-service-slider{--hp-spv:3;--hp-gap:16px}
    .hp-service-item{padding:18px 10px}
    .hp-service-name{font-size:16px}

    .hp-footer{padding:48px 24px 32px}
    .hp-footer-inner{gap:40px}
    .hp-footer-columns{gap:40px}
    .hp-col-about{width:100%;flex:1 1 100%}
    .hp-col-contact{width:100%;flex:1 1 100%}
    .hp-logo-track{gap:40px}
}

/* ---------- Mobile: <= 767px ---------- */
@media (max-width: 767px) {
    body.nav-menu-fixed{padding-top:120px}
    .hp-header.nav-menu-fixed{top:0}
    .hp-topline{display:none}

    .hp-header-top{height:64px}
    .hp-header-top::before{width:100%;clip-path:none}
    .hp-header-inner{height:64px;max-width:calc(100% - 16px);gap:6px;justify-content:space-between}
    .hp-logo-img{width:52px;height:42px}
    .hp-search{display:none}
    .hp-header-right{gap:3px;height:auto}
    .hp-hcontact{gap:6px}
    .hp-hinfo{display:none}
    .hp-hline{display:none}
    .hp-hcircle,.hp-hcircle svg{width:26px;height:26px}
    .hp-hcircle{flex:0 0 26px}
    .hp-lang{padding:0;gap:2px;height:auto;margin-left:0}
    .hp-menu-btn{width:32px;padding:0 4px}
    /* Dự phòng thanh cuộn dọc thật (chỉ xuất hiện khi tải trực tiếp trang, không xuất hiện trong
       môi trường test iframe) có thể chiếm mất ~15-17px chiều rộng khả dụng — chừa thêm biên an toàn
       để nút hamburger không bao giờ bị đẩy ra ngoài khung nhìn ở các trình duyệt/điều kiện khác nhau. */

    .hp-cat-row{flex-direction:column;height:auto}
    .hp-cat-tile{flex:1 1 auto;width:100%;height:220px}
    .hp-cat-tile-band{height:96px;padding:0 16px 16px}
    .hp-cat-tile-name{font-size:17px;line-height:24px;max-width:100%;height:48px}

    .hp-prd-section,.hp-service-section{padding:32px 16px}
    .hp-section-inner{gap:20px}
    .hp-section-title{font-size:20px;line-height:28px}
    .hp-section-more{position:static;transform:none;margin-top:4px}
    .hp-grid-page{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
    .hp-card--boxed{padding:10px 0}
    .hp-card-content{padding:0 8px}
    .hp-card-name{font-size:14px;line-height:18px}
    .hp-grid-nav{width:36px;height:36px}
    .hp-grid-prev{left:0}
    .hp-grid-next{right:0}

    .hp-service-slider{--hp-spv:2;--hp-gap:12px}
    .hp-service-item{padding:14px 6px}
    .hp-service-name{font-size:13px;white-space:normal;text-align:center}

    .hp-partner-section{padding:32px 16px}
    .hp-partner-inner{gap:24px}
    .hp-partner-title{font-size:16px;line-height:24px}
    .hp-logo-track{gap:20px}
    .hp-logo-item{height:26px}
    .hp-logo-item img{max-height:26px;max-width:110px}

    .hp-footer{padding:32px 16px 24px}
    .hp-footer-inner{gap:28px}
    .hp-footer-columns{flex-direction:column;gap:28px}
    .hp-fname{font-size:14px;line-height:16px}
    .hp-fbottom-row{flex-direction:column;align-items:flex-start;gap:12px}
    .hp-fpolicies{flex-wrap:wrap;gap:12px 18px}
}

@media (max-width: 440px) {
    .hp-grid-page{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width: 1024px) {
    .hp-cata-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 767px) {
    .hp-cata-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
    .hp-cata-body{padding:12px}
    .hp-cata-name{font-size:14px;line-height:20px}
    .hp-catad-title{font-size:22px;line-height:30px}
    .hp-catad-viewer{height:60vh;min-height:360px}
}

@media (max-width: 1024px) {
    .hp-dv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 767px) {
    .hp-dv-grid{grid-template-columns:1fr;gap:16px}
    .hp-dv-card{padding:20px 16px}
    .hp-dv-name{font-size:17px}
}

@media (max-width: 767px) {
    /* Logo tối trên nền menu tối ở mobile → đặt trên chip trắng cho dễ nhìn */
    .hp-logo{background:#FFFFFF;border-radius:8px;padding:4px 8px}
    /* Không để card ép cột grid rộng hơn khung (tránh tràn ngang) */
    .hp-card,.hp-cata-card,.hp-dv-card{min-width:0}
    .hp-card-pic,.hp-card-img{width:100%;max-width:100%;height:auto;aspect-ratio:1/1}
}
