.p-0 {
  padding: 0 !important;
}
.p-1 {
  padding: 10px !important;
}
.p-2 {
  padding: 20px !important;
}
.p-3 {
  padding: 30px !important;
}
.p-4 {
  padding: 40px !important;
}
.p-5 {
  padding: 50px !important;
}
.p-6 {
  padding: 60px !important;
}
.p-7 {
  padding: 70px !important;
}
.p-8 {
  padding: 80px !important;
}
.p-9 {
  padding: 90px !important;
}
.p-10 {
  padding: 100px !important;
}
.p-11 {
  padding: 110px !important;
}
.p-12 {
  padding: 120px !important;
}
.p-13 {
  padding: 130px !important;
}
.p-14 {
  padding: 140px !important;
}
.p-15 {
  padding: 150px !important;
}
.p-16 {
  padding: 160px !important;
}
.p-17 {
  padding: 170px !important;
}
.p-18 {
  padding: 180px !important;
}
.p-19 {
  padding: 190px !important;
}
.p-20 {
  padding: 200px !important;
}
.pt-0 {
  padding-top: 0 !important;
}
.pt-1 {
  padding-top: 10px !important;
}
.pt-2 {
  padding-top: 20px !important;
}
.pt-3 {
  padding-top: 30px !important;
}
.pt-4 {
  padding-top: 40px !important;
}
.pt-5 {
  padding-top: 50px !important;
}
.pt-6 {
  padding-top: 60px !important;
}
.pt-7 {
  padding-top: 70px !important;
}
.pt-8 {
  padding-top: 80px !important;
}
.pt-9 {
  padding-top: 90px !important;
}
.pt-10 {
  padding-top: 100px !important;
}
.pt-11 {
  padding-top: 110px !important;
}
.pt-12 {
  padding-top: 120px !important;
}
.pt-13 {
  padding-top: 130px !important;
}
.pt-14 {
  padding-top: 140px !important;
}
.pt-15 {
  padding-top: 150px !important;
}
.pt-16 {
  padding-top: 160px !important;
}
.pt-17 {
  padding-top: 170px !important;
}
.pt-18 {
  padding-top: 180px !important;
}
.pt-19 {
  padding-top: 190px !important;
}
.pt-20 {
  padding-top: 200px !important;
}
.pr-0 {
  padding-right: 0 !important;
}
.pr-1 {
  padding-right: 10px !important;
}
.pr-2 {
  padding-right: 20px !important;
}
.pr-3 {
  padding-right: 30px !important;
}
.pr-4 {
  padding-right: 40px !important;
}
.pr-5 {
  padding-right: 50px !important;
}
.pr-6 {
  padding-right: 60px !important;
}
.pr-7 {
  padding-right: 70px !important;
}
.pr-8 {
  padding-right: 80px !important;
}
.pr-9 {
  padding-right: 90px !important;
}
.pr-10 {
  padding-right: 100px !important;
}
.pr-11 {
  padding-right: 110px !important;
}
.pr-12 {
  padding-right: 120px !important;
}
.pr-13 {
  padding-right: 130px !important;
}
.pr-14 {
  padding-right: 140px !important;
}
.pr-15 {
  padding-right: 150px !important;
}
.pr-16 {
  padding-right: 160px !important;
}
.pr-17 {
  padding-right: 170px !important;
}
.pr-18 {
  padding-right: 180px !important;
}
.pr-19 {
  padding-right: 190px !important;
}
.pr-20 {
  padding-right: 200px !important;
}
.pb-0 {
  padding-bottom: 0 !important;
}
.pb-1 {
  padding-bottom: 10px !important;
}
.pb-2 {
  padding-bottom: 20px !important;
}
.pb-3 {
  padding-bottom: 30px !important;
}
.pb-4 {
  padding-bottom: 40px !important;
}
.pb-5 {
  padding-bottom: 50px !important;
}
.pb-6 {
  padding-bottom: 60px !important;
}
.pb-7 {
  padding-bottom: 70px !important;
}
.pb-8 {
  padding-bottom: 80px !important;
}
.pb-9 {
  padding-bottom: 90px !important;
}
.pb-10 {
  padding-bottom: 100px !important;
}
.pb-11 {
  padding-bottom: 110px !important;
}
.pb-12 {
  padding-bottom: 120px !important;
}
.pb-13 {
  padding-bottom: 130px !important;
}
.pb-14 {
  padding-bottom: 140px !important;
}
.pb-15 {
  padding-bottom: 150px !important;
}
.pb-16 {
  padding-bottom: 160px !important;
}
.pb-17 {
  padding-bottom: 170px !important;
}
.pb-18 {
  padding-bottom: 180px !important;
}
.pb-19 {
  padding-bottom: 190px !important;
}
.pb-20 {
  padding-bottom: 200px !important;
}
.pb-26 {
  padding-bottom: 260px !important;
}
.pl-0 {
  padding-left: 0 !important;
}
.pl-1 {
  padding-left: 10px !important;
}
.pl-2 {
  padding-left: 20px !important;
}
.pl-3 {
  padding-left: 30px !important;
}
.pl-4 {
  padding-left: 40px !important;
}
.pl-5 {
  padding-left: 50px !important;
}
.pl-6 {
  padding-left: 60px !important;
}
.pl-7 {
  padding-left: 70px !important;
}
.pl-8 {
  padding-left: 80px !important;
}
.pl-9 {
  padding-left: 90px !important;
}
.pl-10 {
  padding-left: 100px !important;
}
.pl-11 {
  padding-left: 110px !important;
}
.pl-12 {
  padding-left: 120px !important;
}
.pl-13 {
  padding-left: 130px !important;
}
.pl-14 {
  padding-left: 140px !important;
}
.pl-15 {
  padding-left: 150px !important;
}
.pl-16 {
  padding-left: 160px !important;
}
.pl-17 {
  padding-left: 170px !important;
}
.pl-18 {
  padding-left: 180px !important;
}
.pl-19 {
  padding-left: 190px !important;
}
.pl-20 {
  padding-left: 200px !important;
}
.mlr-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}
.m-0 {
  margin: 0 !important;
}
.m-1 {
  margin: 10px !important;
}
.m-2 {
  margin: 20px !important;
}
.m-3 {
  margin: 30px !important;
}
.m-4 {
  margin: 40px !important;
}
.m-5 {
  margin: 50px !important;
}
.m-6 {
  margin: 60px !important;
}
.m-7 {
  margin: 70px !important;
}
.m-8 {
  margin: 80px !important;
}
.m-9 {
  margin: 90px !important;
}
.m-10 {
  margin: 100px !important;
}
.m-11 {
  margin: 110px !important;
}
.m-12 {
  margin: 120px !important;
}
.m-13 {
  margin: 130px !important;
}
.m-14 {
  margin: 140px !important;
}
.m-15 {
  margin: 150px !important;
}
.m-16 {
  margin: 160px !important;
}
.m-17 {
  margin: 170px !important;
}
.m-18 {
  margin: 180px !important;
}
.m-19 {
  margin: 190px !important;
}
.m-20 {
  margin: 200px !important;
}
.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 10px !important;
}
.mt-2 {
  margin-top: 20px !important;
}
.mt-3 {
  margin-top: 30px !important;
}
.mt-4 {
  margin-top: 40px !important;
}
.mt-5 {
  margin-top: 50px !important;
}
.mt-6 {
  margin-top: 60px !important;
}
.mt-7 {
  margin-top: 70px !important;
}
.mt-8 {
  margin-top: 80px !important;
}
.mt-9 {
  margin-top: 90px !important;
}
.mt-10 {
  margin-top: 100px !important;
}
.mt-11 {
  margin-top: 110px !important;
}
.mt-12 {
  margin-top: 120px !important;
}
.mt-13 {
  margin-top: 130px !important;
}
.mt-14 {
  margin-top: 140px !important;
}
.mt-15 {
  margin-top: 150px !important;
}
.mt-16 {
  margin-top: 160px !important;
}
.mt-17 {
  margin-top: 170px !important;
}
.mt-18 {
  margin-top: 180px !important;
}
.mt-19 {
  margin-top: 190px !important;
}
.mt-20 {
  margin-top: 200px !important;
}
.mr-0 {
  margin-right: 0 !important;
}
.mr-1 {
  margin-right: 10px !important;
}
.mr-2 {
  margin-right: 20px !important;
}
.mr-3 {
  margin-right: 30px !important;
}
.mr-4 {
  margin-right: 40px !important;
}
.mr-5 {
  margin-right: 50px !important;
}
.mr-6 {
  margin-right: 60px !important;
}
.mr-7 {
  margin-right: 70px !important;
}
.mr-8 {
  margin-right: 80px !important;
}
.mr-9 {
  margin-right: 90px !important;
}
.mr-10 {
  margin-right: 100px !important;
}
.mr-11 {
  margin-right: 110px !important;
}
.mr-12 {
  margin-right: 120px !important;
}
.mr-13 {
  margin-right: 130px !important;
}
.mr-14 {
  margin-right: 140px !important;
}
.mr-15 {
  margin-right: 150px !important;
}
.mr-16 {
  margin-right: 160px !important;
}
.mr-17 {
  margin-right: 170px !important;
}
.mr-18 {
  margin-right: 180px !important;
}
.mr-19 {
  margin-right: 190px !important;
}
.mr-20 {
  margin-right: 200px !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 10px !important;
}
.mb-2 {
  margin-bottom: 20px !important;
}
.mb-3 {
  margin-bottom: 30px !important;
}
.mb-4 {
  margin-bottom: 40px !important;
}
.mb-5 {
  margin-bottom: 50px !important;
}
.mb-6 {
  margin-bottom: 60px !important;
}
.mb-7 {
  margin-bottom: 70px !important;
}
.mb-8 {
  margin-bottom: 80px !important;
}
.mb-9 {
  margin-bottom: 90px !important;
}
.mb-10 {
  margin-bottom: 100px !important;
}
.mb-11 {
  margin-bottom: 110px !important;
}
.mb-12 {
  margin-bottom: 120px !important;
}
.mb-13 {
  margin-bottom: 130px !important;
}
.mb-14 {
  margin-bottom: 140px !important;
}
.mb-15 {
  margin-bottom: 150px !important;
}
.mb-16 {
  margin-bottom: 160px !important;
}
.mb-17 {
  margin-bottom: 170px !important;
}
.mb-18 {
  margin-bottom: 180px !important;
}
.mb-19 {
  margin-bottom: 190px !important;
}
.mb-20 {
  margin-bottom: 200px !important;
}
.ml-0 {
  margin-left: 0 !important;
}
.ml-1 {
  margin-left: 10px !important;
}
.ml-2 {
  margin-left: 20px !important;
}
.ml-3 {
  margin-left: 30px !important;
}
.ml-4 {
  margin-left: 40px !important;
}
.ml-5 {
  margin-left: 50px !important;
}
.ml-6 {
  margin-left: 60px !important;
}
.ml-7 {
  margin-left: 70px !important;
}
.ml-8 {
  margin-left: 80px !important;
}
.ml-9 {
  margin-left: 90px !important;
}
.ml-10 {
  margin-left: 100px !important;
}
.ml-11 {
  margin-left: 110px !important;
}
.ml-12 {
  margin-left: 120px !important;
}
.ml-13 {
  margin-left: 130px !important;
}
.ml-14 {
  margin-left: 140px !important;
}
.ml-15 {
  margin-left: 150px !important;
}
.ml-16 {
  margin-left: 160px !important;
}
.ml-17 {
  margin-left: 170px !important;
}
.ml-18 {
  margin-left: 180px !important;
}
.ml-19 {
  margin-left: 190px !important;
}
.ml-20 {
  margin-left: 200px !important;
}
.mtn-0 {
  margin-top: 0 !important;
}
.mtn-1 {
  margin-top: -10px !important;
}
.mtn-2 {
  margin-top: -20px !important;
}
.mtn-3 {
  margin-top: -30px !important;
}
.mtn-4 {
  margin-top: -40px !important;
}
.mtn-5 {
  margin-top: -50px !important;
}
.mtn-6 {
  margin-top: -60px !important;
}
.mtn-7 {
  margin-top: -70px !important;
}
.mtn-8 {
  margin-top: -80px !important;
}
.mtn-9 {
  margin-top: -90px !important;
}
.mtn-10 {
  margin-top: -100px !important;
}
.mtn-11 {
  margin-top: -110px !important;
}
.mtn-12 {
  margin-top: -120px !important;
}
.mtn-13 {
  margin-top: -130px !important;
}
.mtn-14 {
  margin-top: -140px !important;
}
.mtn-15 {
  margin-top: -150px !important;
}
.mtn-16 {
  margin-top: -160px !important;
}
.mtn-17 {
  margin-top: -170px !important;
}
.mtn-18 {
  margin-top: -180px !important;
}
.mtn-19 {
  margin-top: -190px !important;
}
.mtn-20 {
  margin-top: -200px !important;
}
.mrn-0 {
  margin-right: 0 !important;
}
.mrn-1 {
  margin-right: -10px !important;
}
.mrn-2 {
  margin-right: -20px !important;
}
.mrn-3 {
  margin-right: -30px !important;
}
.mrn-4 {
  margin-right: -40px !important;
}
.mrn-5 {
  margin-right: -50px !important;
}
.mrn-6 {
  margin-right: -60px !important;
}
.mrn-7 {
  margin-right: -70px !important;
}
.mrn-8 {
  margin-right: -80px !important;
}
.mrn-9 {
  margin-right: -90px !important;
}
.mrn-10 {
  margin-right: -100px !important;
}
.mrn-11 {
  margin-right: -110px !important;
}
.mrn-12 {
  margin-right: -120px !important;
}
.mrn-13 {
  margin-right: -130px !important;
}
.mrn-14 {
  margin-right: -140px !important;
}
.mrn-15 {
  margin-right: -150px !important;
}
.mrn-16 {
  margin-right: -160px !important;
}
.mrn-17 {
  margin-right: -170px !important;
}
.mrn-18 {
  margin-right: -180px !important;
}
.mrn-19 {
  margin-right: -190px !important;
}
.mrn-20 {
  margin-right: -200px !important;
}
.mbn-0 {
  margin-bottom: 0 !important;
}
.mbn-1 {
  margin-bottom: -10px !important;
}
.mbn-2 {
  margin-bottom: -20px !important;
}
.mbn-3 {
  margin-bottom: -30px !important;
}
.mbn-4 {
  margin-bottom: -40px !important;
}
.mbn-5 {
  margin-bottom: -50px !important;
}
.mbn-6 {
  margin-bottom: -60px !important;
}
.mbn-7 {
  margin-bottom: -70px !important;
}
.mbn-8 {
  margin-bottom: -80px !important;
}
.mbn-9 {
  margin-bottom: -90px !important;
}
.mbn-10 {
  margin-bottom: -100px !important;
}
.mbn-11 {
  margin-bottom: -110px !important;
}
.mbn-12 {
  margin-bottom: -120px !important;
}
.mbn-13 {
  margin-bottom: -130px !important;
}
.mbn-14 {
  margin-bottom: -140px !important;
}
.mbn-15 {
  margin-bottom: -150px !important;
}
.mbn-16 {
  margin-bottom: -160px !important;
}
.mbn-17 {
  margin-bottom: -170px !important;
}
.mbn-18 {
  margin-bottom: -180px !important;
}
.mbn-19 {
  margin-bottom: -190px !important;
}
.mbn-20 {
  margin-bottom: -200px !important;
}
.mln-0 {
  margin-left: 0 !important;
}
.mln-1 {
  margin-left: -10px !important;
}
.mln-2 {
  margin-left: -20px !important;
}
.mln-3 {
  margin-left: -30px !important;
}
.mln-4 {
  margin-left: -40px !important;
}
.mln-5 {
  margin-left: -50px !important;
}
.mln-6 {
  margin-left: -60px !important;
}
.mln-7 {
  margin-left: -70px !important;
}
.mln-8 {
  margin-left: -80px !important;
}
.mln-9 {
  margin-left: -90px !important;
}
.mln-10 {
  margin-left: -100px !important;
}
.mln-11 {
  margin-left: -110px !important;
}
.mln-12 {
  margin-left: -120px !important;
}
.mln-13 {
  margin-left: -130px !important;
}
.mln-14 {
  margin-left: -140px !important;
}
.mln-15 {
  margin-left: -150px !important;
}
.mln-16 {
  margin-left: -160px !important;
}
.mln-17 {
  margin-left: -170px !important;
}
.mln-18 {
  margin-left: -180px !important;
}
.mln-19 {
  margin-left: -190px !important;
}
.mln-20 {
  margin-left: -200px !important;
}



/* ===== Header đẹp, hiện đại cho Nam Phong ===== */
/* Glass effect cho header + làm đẹp menu item */
/* Không chỉnh logo, không chỉnh hiệu ứng/logo cũ */

:root {
  --np-primary: #0b66c3;
  --np-text: #1f2937;
  --np-glass: rgba(255, 255, 255, 0.78);
  --np-border: rgba(255, 255, 255, 0.35);
}

/* Chỉ nền header dạng glass */
#header {
  position: relative;
  top: auto;
  z-index: 100;
  background: var(--np-glass);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(2, 24, 62, 0.08);
}

/* Restore desktop scroll behavior: only fixed after scrolling */
@media (min-width: 992px) {
  #header.fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

#header,
#header .logo img,
#header .main-menu,
#header .view-search,
#header .language {
  transition: 0.22s ease;
}

#header .logo img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Menu layout gọn, đẹp hơn */
#header .main-menu ul {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .main-menu ul li {
  margin: 0;
}

/* Chỉ sửa item menu */
#header .main-menu ul li > a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--np-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
}

#header .main-menu ul li > a:hover {
  color: var(--np-primary);
  background: rgba(11, 102, 195, 0.1);
}

/* Active menu */
#header .main-menu ul li.active > a,
#header .main-menu ul li.home.active > a {
  color: #fff;
  background: linear-gradient(135deg, #0b66c3, #2a8af0);
  box-shadow: 0 8px 20px rgba(11, 102, 195, 0.25);
}

/* Responsive nhẹ */
@media (max-width: 992px) {
  #header .main-menu ul li > a {
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
  }
}


/* ===== Kết thúc header đẹp, hiện đại cho Nam Phong ===== */

/* ===== Footer modern glass-dark ===== */
:root {
  --ft-bg-1: #0b1f3a;
  --ft-bg-2: #12345f;
  --ft-text: #ffffff;
  --ft-muted: #ffffff;
  --ft-accent: #5fb0ff;
  --ft-border: rgba(255, 255, 255, 0.14);
}

#footer {
  position: relative;
  color: var(--ft-text);
  background: linear-gradient(160deg, #2f855a, #2f855a, #2f855a);
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(95, 176, 255, 0.16), transparent 38%),
              radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.08), transparent 36%);
  pointer-events: none;
}

#footer .container {
  position: relative;
  z-index: 1;
}

/* Vùng trên */
#footer .footer-top {
  padding: 42px 0 24px;
  border-bottom: 1px solid var(--ft-border);
}

#footer .footer-title {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

#footer .footer-sub p {
  margin-bottom: 10px;
  line-height: 1.75;
  color: var(--ft-muted);
}

#footer .footer-sub strong {
  color: #ffffff;
}

#footer .footer-sub a {
  color: var(--ft-text);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: all 0.2s ease;
}

#footer .footer-sub a:hover {
  color: var(--ft-accent);
  border-bottom-color: var(--ft-accent);
}

/* Logo/brand trong footer */
#footer .footer-sub img {
  margin: 8px 10px 0 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  transition: transform 0.2s ease, background 0.2s ease;
}

#footer .footer-sub img:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

/* Vùng dưới */
#footer .footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 62px;
  text-align: center;
  color: var(--ft-muted);
  font-size: 14px;
}

#footer .footer-bottom i {
  font-style: normal;
}

/* Back to top nếu có */
#footer .back-to-top {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

/* Mobile */
@media (max-width: 768px) {
  #footer .footer-title {
    font-size: 18px;
  }

  #footer .footer-top {
    padding: 30px 0 18px;
  }

  #footer .footer-sub p {
    font-size: 14px;
  }

  #footer .footer-sub img {
    margin-right: 6px;
    margin-bottom: 6px;
  }

  #footer .footer-bottom {
    min-height: 54px;
    font-size: 13px;
    padding: 8px 0;
  }
}

#footer .footer-brand-logos {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
}

#footer .footer-brand-logos img {
  width: 130px !important;
  height: 62px !important;
  object-fit: contain !important;
  display: block;
  padding: 8px;
  margin: 0 !important;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

html {
  scroll-behavior: smooth;
}

.slider-item img,
.product-card img,
.news-card img,
.featured img {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (max-width: 1199px) {
  #header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #banner::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Mobile/Tablet Stability Fixes ===== */
@media (max-width: 1199px) {
  /* Prevent header desktop flex menu from breaking mobile drawer */
  #header .main-menu ul {
    display: block;
  }
  #header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
  .main-menu {
    background: rgba(15, 23, 42, 0.96) !important;
  }
  #header .main-menu ul li > a {
    display: block;
    height: auto;
    border-radius: 0;
    padding: 11px 14px;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600;
  }
  #header .main-menu ul li > a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
  }
  #header .main-menu ul li.active > a,
  #header .main-menu ul li.home.active > a {
    background: rgba(11, 102, 195, 0.9);
    color: #ffffff !important;
    box-shadow: none;
  }
  .view-menu {
    background: #0b66c3 !important;
  }
  .view-search {
    color: #0f172a !important;
  }
}

@media (max-width: 991px) {
  .news-categories {
    gap: 12px;
    flex-wrap: wrap;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .featured h3 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .slideshow .item img {
    height: 250px !important;
    object-position: center center;
  }
  .slider-content {
    display: none;
  }

  /* Trang sản phẩm: tab cha cuộn ngang, không xếp full-width chồng lên nhau */
  .product-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  .product-tabs .tab-item {
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
  }
  .sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sub-tabs .sub-tab {
    flex: 1 1 100%;
    text-align: center;
  }

  .contact-premium {
    padding: 32px 0;
  }
  .contact-info-box,
  .contact-form-box {
    margin-bottom: 16px;
    padding: 22px !important;
  }

  .home-box-about .zing-content,
  .home-box-content {
    font-size: 15px;
    line-height: 1.65;
  }

  #footer .footer-brand-logos img {
    width: 46% !important;
    height: 58px !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px !important;
  }
  .slideshow .item img {
    height: 210px !important;
  }
  .main-menu ul li a {
    font-size: 13px !important;
  }
  .banner-title {
    font-size: 22px !important;
    line-height: 1.3;
  }
  .banner-excerpt {
    font-size: 13px !important;
    max-height: none;
  }
  .product-card h4 {
    min-height: 93px;
    font-size: 13px;
    padding: 10px;
  }
  .overlay {
    padding: 10px !important;
    font-size: 12px;
    line-height: 1.45;
  }
}

/* Global guard: avoid horizontal overflow on small devices */
html, body {
  overflow-x: hidden;
}

/* Floating leftover widget from old template can push layout on mobile */
.ddict_btn {
  display: none !important;
}

/* Global logo safety: avoid left clipping on all pages */
#header .logo img {
  margin-left: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 360px) !important;
  max-height: 90px !important;
}

/* Pixel-perfect logo sizing across desktop/tablet */
@media (min-width: 1200px) {
  #header .logo img {
    height: 82px !important;
    max-height: 82px !important;
  }
  #header.fixed .logo img {
    height: 50px !important;
    max-height: 50px !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  #header .logo img {
    height: 74px !important;
    max-height: 74px !important;
    max-width: min(100%, 320px) !important;
  }
  #header.fixed .logo img {
    height: 50px !important;
    max-height: 50px !important;
  }
}

:root {
  --np-brand: #2f855a;
}

/* Desktop nav polish + single brand active color */
@media (min-width: 992px) {
  #header .main-menu {
    margin-top: 28px !important;
  }

  .main-menu > ul > li > a {
    border-radius: 999px;
    transition: all 0.2s ease;
  }

  .main-menu > ul > li.menu-contact > a {
    background: transparent !important;
    color: #111827 !important;
  }

  .main-menu > ul > li.active > a {
    background: var(--np-brand) !important;
    color: #fff !important;
  }

  #header.fixed .main-menu {
    margin-top: 13px !important;
  }
}

/* ===== Hard mobile overrides (final) ===== */
@media (max-width: 991px) {
  #header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    padding: 6px 0 !important;
  }
  body {
    padding-top: 56px !important;
  }
  #header .logo img {
    height: 34px !important;
    max-width: 140px !important;
    object-fit: contain !important;
  }
  #header .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .view-menu {
    display: block !important;
    width: 38px !important;
    height: 34px !important;
    margin: 0 0 0 8px !important;
    background: #0b66c3 !important;
    color: #fff !important;
    border-radius: 8px !important;
    border: none !important;
  }
  .view-search {
    margin-top: 7px !important;
    color: #111827 !important;
    font-size: 24px !important;
  }

  .main-menu {
    top: 56px !important;
    background: #0f172a !important;
    padding: 8px 0 !important;
  }
  .main-menu ul li a,
  #header .main-menu ul li > a {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    padding: 10px 14px !important;
    border-radius: 0 !important;
  }
  #header .main-menu ul li.active > a,
  #header .main-menu ul li.home.active > a {
    background: #0b66c3 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  .slideshow .item img {
    height: 210px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .slideshow {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 575px) {
  .slideshow .item img {
    height: 180px !important;
  }
}

/* Product page mobile overflow fix */
@media (max-width: 767px) {
  .premium-section .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    overflow-x: hidden !important;
  }

  .premium-section .row {
    margin-left: -6px !important;
    margin-right: -6px !important;
  }

  .premium-section [class*="col-"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .premium-section .product-card,
  .premium-section .product-card-img-wrap,
  .premium-section .product-card-img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .premium-section .product-card-img-wrap {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  .premium-section .product-card-img {
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .premium-section .overlay {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

/* Trang sản phẩm: lưới rộng hơn một chút để tách các thẻ rõ ràng */
@media (min-width: 768px) {
  .premium-section .tab-content .row {
    margin-left: -14px !important;
    margin-right: -14px !important;
  }

  .premium-section .tab-content .row > [class*="col-"] {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Home "mark" image block overflow fix (mobile) */
@media (max-width: 767px) {
  .home-box-product .container,
  .home-box-product .tax-product-list {
    overflow-x: hidden !important;
  }

  .home-box-product .tax-product-list .row {
    margin-left: -6px !important;
    margin-right: -6px !important;
  }

  .home-box-product .tax-product-item {
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 12px !important;
  }

  .home-box-product .tax-product-box {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }

  .home-box-product .tax-product-item img {
    width: 100% !important;
    max-width: 100% !important;
    height: 170px !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .home-box-product .tax-product-item .mark {
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-box-product .tax-product-title {
    left: 10px !important;
    right: 10px !important;
    font-size: 13px !important;
  }

  .home-box-product .tax-product-title a {
    padding: 9px 8px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
}

/* Product page mobile UI tightening (app-like) */
@media (max-width: 767px) {
  #banner.banner-menu {
    border-bottom: 1px solid #e5e7eb !important;
  }

  #banner.banner-menu img {
    height: 148px !important;
    min-height: 148px !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  #banner.banner-menu::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.32) 100%
    ) !important;
  }

  #banner.banner-menu .banner-content {
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  #banner.banner-menu .banner-title {
    margin-left: 0 !important;
    margin-bottom: 4px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
  }

  #banner.banner-menu .banner-excerpt {
    max-width: 100% !important;
    max-height: none !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    opacity: 0.96 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .premium-section {
    padding: 14px 0 18px !important;
  }

  .premium-section .product-tabs {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
    padding-bottom: 8px !important;
    border-bottom: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .premium-section .product-tabs .tab-item {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #1f2937 !important;
  }

  .premium-section .product-tabs .tab-item.active {
    background: var(--np-brand) !important;
    color: #fff !important;
  }

  .premium-section .product-tabs .tab-item.active::after {
    display: none !important;
  }

  .premium-section .sub-tabs.center {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch;
  }

  .premium-section .sub-tabs .sub-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    line-height: 1.2 !important;
  }

  .premium-section .product-card.premium {
    margin-top: 10px !important;
    border-radius: 10px !important;
  }

  .premium-section .product-card h4 {
    font-size: 12px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 7 !important;
    line-clamp: 7 !important;
    overflow: hidden !important;
    min-height: 134px !important; /* ~7 dòng @ 12px + padding */
    padding: 8px !important;
    margin: 0 !important;
  }

  .premium-section .overlay {
    font-size: 11px !important;
    line-height: 1.35 !important;
    padding: 8px !important;
  }
}

@media (max-width: 480px) {
  #banner.banner-menu img {
    height: 128px !important;
    min-height: 128px !important;
  }

  #banner.banner-menu .banner-title {
    font-size: 18px !important;
  }

  #banner.banner-menu .banner-excerpt {
    font-size: 11px !important;
  }

  .premium-section {
    padding: 12px 0 16px !important;
  }
}

/* ===== Unified mobile typography + spacing (home/product/news/contact) ===== */
@media (max-width: 767px) {
  body {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
  }

  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #main-content,
  .home-box,
  .news-premium,
  .contact-premium,
  .premium-section {
    padding-top: 16px !important;
    padding-bottom: 18px !important;
  }

  .home-box-title,
  .left-title,
  .contact-info-box h2,
  .contact-form-box h3 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .home-box-content,
  .featured p,
  .news-card p,
  .contact-info-box p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* Home */
  .home-box-about .zing-content p {
    margin-bottom: 10px !important;
  }
  .home-office-item {
    padding: 12px 10px !important;
    min-height: 96px !important;
  }
  .home-office-item p:first-child {
    font-size: 14px !important;
  }
  .home-office-item p:last-child {
    font-size: 12px !important;
  }
  .home-box-product .tax-product-title a {
    border-radius: 8px !important;
  }

  /* Product page */
  .premium-section .product-card.premium {
    border-radius: 10px !important;
  }
  .premium-section .product-card h4 {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 7 !important;
    line-clamp: 7 !important;
    overflow: hidden !important;
    min-height: 140px !important; /* ~7 dòng @ 12.5px + padding */
  }

  /* News page */
  .news-premium {
    background: #f8fafc !important;
  }
  .news-left,
  .news-right {
    padding: 0 !important;
  }
  .news-categories {
    margin-bottom: 14px !important;
    gap: 8px !important;
    border-bottom: none !important;
    flex-wrap: wrap !important;
  }
  .news-categories a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    background: #eef2f7 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    color: #334155 !important;
    line-height: 1.25 !important;
    border: 1px solid #e2e8f0 !important;
  }
  .news-categories a:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
  }
  .news-categories a.active {
    background: var(--np-brand) !important;
    color: #fff !important;
    border-bottom: none !important;
    border-color: var(--np-brand) !important;
  }
  .featured h3 {
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .news-card {
    border-radius: 10px !important;
    padding: 10px !important;
  }
  .news-card h4 {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 8px 0 6px !important;
  }

  /* Contact page */
  .contact-premium {
    background: #f8fafc !important;
  }
  .contact-info-box,
  .contact-form-box {
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
  }
  .contact-form-box .form-group {
    margin-bottom: 10px !important;
  }
  .contact-form-box input,
  .contact-form-box textarea {
    font-size: 14px !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
  }
  .contact-form-box button {
    font-size: 13px !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px !important;
  }

  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .home-box-title,
  .left-title,
  .contact-info-box h2,
  .contact-form-box h3 {
    font-size: 18px !important;
  }

  .home-box-content,
  .featured p,
  .news-card p,
  .contact-info-box p {
    font-size: 13px !important;
  }

  .news-card h4 {
    font-size: 13px !important;
  }
}

/* News category style for tablet/desktop too (avoid red text) */
.news-categories a {
  color: #475569;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.news-categories a:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.news-categories a.active {
  color: var(--np-brand);
  background: #e8f1ff;
  border-color: #bfdbfe;
}

/* News category layout refinement (desktop/tablet) */
.news-categories {
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: none;
  flex-wrap: wrap;
}

.news-categories a {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

