/* Desktop */
.max-width,
.wrap-content {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.container-custom {
  width: 100%;
  margin: 0 auto;
}

/* Tablet */
@media (max-width: 991px) {
  .max-width,
  .wrap-content {
    max-width: 960px;
    padding: 0 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .max-width,
  .wrap-content {
    max-width: 100%;
    padding: 0 15px;
  }
}

@media (max-width: 991px) {
  .header .wrap-content {
    max-width: 100%;
    padding: 0 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .header .wrap-content {
    padding: 0 15px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .flex-news-detail {
    display: block;
  }

  .news-left,
  .news-right {
    width: 100%;
    max-width: 100%;
  }

  .news-right {
    margin-top: 30px;
  }

  .title-detail h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  .content-main,
  .baonoidung {
    font-size: 15px;
    line-height: 1.7;
  }

  .content-main img,
  .baonoidung img,
  .content-main table,
  .baonoidung table,
  .content-main iframe,
  .baonoidung iframe {
    max-width: 100%;
    height: auto !important;
  }

  .box-readmore {
    padding: 12px;
    margin-bottom: 20px;
  }

  .tt-toc {
    font-size: 16px;
  }

  .item-news-one h3 {
    font-size: 17px;
  }

  .item-news-one .desc {
    -webkit-line-clamp: 2;
    font-size: 14px;
  }

  .item-news-all > a {
    gap: 10px;
  }

  .item-news-all .scale-img {
    flex: 0 0 100px;
    width: 100px;
  }

  .item-news-all img {
    width: 100px;
    height: 70px;
  }

  .item-news-all h3 {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .share {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .contact-article {
    display: block;
  }

  .left-contact-detail,
  .right-contact-detail {
    width: 100%;
    max-width: 100%;
  }

  .right-contact-detail {
    margin-top: 30px;
  }

  .row-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-item {
    display: grid;
    grid-template-columns: 50px 75px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .contact-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
  }

  .contact-item i svg {
    width: 35px;
    height: 35px;
  }

  .contact-item p {
    width: auto;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
  }

  .contact-item span {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Ẩn mobile */
.header-mobile {
  display: none;
}

@media (max-width: 991px) {
  .header > .wrap-content {
    display: none !important;
  }

  .header {
    padding: 0;
  }

  .header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    position: relative;
    z-index: 9999;
  }

  #hamburger,
  .icon-search-mobile {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
  }

  .header-mobile .header-logo {
    flex: 1;
    text-align: center;
  }

  .header-mobile .header-logo img {
    max-width: 170px;
    max-height: 55px;
    width: auto;
    height: auto;
  }

  .search-mobile {
    position: relative;
    flex-shrink: 0;
  }

  .search-mobile .search-grid {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
  }

  .search-mobile .search-grid.active {
    display: flex !important;
    align-items: center;
  }

  .search-mobile .search-grid input {
    width: calc(100% - 42px);
    min-width: 0;
    height: 40px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    outline: none;
  }

  .search-mobile .search-grid p {
    width: 40px;
    height: 40px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}

@media (max-width: 767px) {
  .container-custom,
  .wrap-content,
  .carts-app {
    width: 100%;
    max-width: 100%;
  }

  .container-custom {
    padding: 0 12px;
  }

  .carts-app {
    margin-top: 25px !important;
    margin-bottom: 30px !important;
  }

  .grid-pro-detail {
    display: block !important;
    margin-bottom: 30px !important;
  }

  .left-pro-detail,
  .right-pro-detail {
    width: 100% !important;
    max-width: 100%;
  }

  .right-pro-detail {
    margin-top: 20px;
  }

  .slick_photo1,
  .slick_photo1 .MagicZoom,
  .slick_photo1 picture,
  .slick_photo1 img {
    display: block;
    width: 100% !important;
    max-width: 100%;
  }

  .slick_photo1 img {
    height: auto !important;
    object-fit: contain;
  }

  .album-product {
    width: 100%;
    margin-top: 10px;
  }

  .swiper-pro-detail {
    width: 100%;
    padding: 0 25px;
    overflow: hidden;
  }

  .row-pro-detail {
    flex-wrap: nowrap !important;
    margin: 0 !important;
  }

  .col-pro-detail {
    padding: 0 !important;
  }

  .thumb-pro-detail {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .thumb-pro-detail picture,
  .thumb-pro-detail img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 28px;
    height: 28px;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 14px;
  }

  .title-pro-detail {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.4;
  }

  .product-price-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 5px 10px;
  }

  .attr-content-pro-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
  }

  .price-new-pro-detail {
    font-size: 20px;
  }

  .price-old-pro-detail {
    margin-left: 0;
    font-size: 14px;
  }

  .attr-pro-detail {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .desc-pro-detail,
  .info_nd {
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .baonoidung img {
    max-width: 100% !important;
    height: auto !important;
  }

  .baonoidung iframe,
  .baonoidung video {
    width: 100% !important;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .baonoidung table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
  }

  .social-plugin {
    max-width: 100%;
    margin-top: 15px;
    overflow: hidden;
  }

  .chitietsanpham {
    width: 100%;
  }

  .title-product-detail {
    padding: 10px 12px;
    font-size: 18px;
    line-height: 1.4;
  }

  .info_nd {
    padding-top: 15px;
  }

  .row-product {
    margin-right: -5px;
    margin-left: -5px;
  }

  .col-product {
    padding-right: 5px;
    padding-left: 5px;
    margin-bottom: 15px;
  }

  .product-pic,
  .product-pic a,
  .product-pic picture {
    display: block;
    width: 100%;
  }

  .product-pic img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  .product-name {
    margin: 8px 0 5px;
    font-size: 15px;
    line-height: 1.4;
  }

  .product-name a {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-desc {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .wrap-about {
    padding: 40px 0;
  }

  .row-about {
    flex-direction: column;
    gap: 30px;
  }

  .left-about,
  .right-about {
    width: 100%;
    max-width: 100%;
  }

  .left-about {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .about-img,
  .about-img1 {
    display: none;
  }

  .right-about {
    padding: 0;
    text-align: left;
  }

  .title-about p {
    font-size: 18px;
  }

  .desc-about {
    font-size: 15px;
    line-height: 1.6;
  }

  .btn-more {
    margin-top: 20px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .wrap-product {
    padding: 40px 0;
  }

  .productnb-home,
  .productnb-home-slide {
    width: 100%;
  }

  .productnb-home {
    margin-bottom: 25px;
    text-align: center;
  }

  .group-btn-slide-product {
    justify-content: center;
    margin-top: 15px;
  }

  .productnb-home-slide {
    overflow: hidden;
  }

  .productnb-home-slide .swiper {
    overflow: hidden;
  }

  .productnb-home-slide .swiper-slide {
    height: auto;
  }

  .product-name {
    font-size: 15px;
  }

  .product-desc {
    font-size: 13px;
  }
  .wrap-product::before {
    display: none;
  }

  .title-dichvu {
    font-size: 25px;
  }

  .wrap-news .title-main {
    font-size: 25px;
  }
  .wrap-partner .title-main {
    font-size: 25px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .wrap-newsletter {
    padding: 40px 0;
  }

  .left-newsletter {
    width: 100%;
  }

  .newsletter-head {
    text-align: center;
    margin-bottom: 20px;
  }

  .newsletter-title {
    font-size: 26px;
    line-height: 1.3;
  }

  .newsletter-slogan {
    font-size: 15px;
    line-height: 1.6;
  }

  .form-newsletter .d-flex {
    display: block !important;
  }

  .col-newsletter,
  .col-newsletter.w-100 {
    width: 100% !important;
    margin-bottom: 15px;
  }

  .form-newsletter .form-control {
    height: 48px;
    padding: 0 15px;
    font-size: 15px;
    border-radius: 6px;
  }

  .form-newsletter textarea.form-control {
    height: 120px;
    padding: 12px 15px;
    resize: none;
  }

  .form-newsletter button {
    width: 100%;
    height: 48px;
    font-size: 16px;
    margin-top: 5px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .wrap-tieuchi {
    padding: 40px 0;
  }

  /* Ẩn banner giữa */
  .center-tieuchi {
    display: none;
  }

  .grid-tieuchi {
    display: block;
  }

  .left-tieuchi,
  .right-tieuchi {
    width: 100%;
  }

  .tieuchi-item,
  .tieuchi-item.tieuchi-rev {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    text-align: left;
  }

  .tieuchi-img {
    display: none;
  }

  .tieuchi-info {
    flex: 1;
  }

  .tieuchi-name {
    font-size: 16px;
    /* margin-bottom: 6px; */
    padding: 10px;
  }

  .tieuchi-desc {
    font-size: 14px;
    line-height: 1.6;
    padding: 10px;
  }

  .home-slogan {
    font-size: 25px;
  }

  .title-home-name {
    font-size: 30px;
  }
}
