@media (max-width: 400px) {
  .galleries {
    -moz-column-count: 1;
    -webkit-column-count: 1;
    column-count: 1;
  }
}

@media (max-width: 739px) {
  body {
    padding-bottom: 50px;
  }

  .tab-content table,
  .tab-content tbody,
  .tab-content tr {
    width: 100%;
  }

  .tab-content tr {
    display: flex;
    flex-direction: column;
  }
  .tab-content p{
    margin: 0 !important;
  }
  .tab-content td {
    width: 100% !important;
    display: block;
  }

  .tab-content td:nth-child(2) {
    display: none;
    /* bỏ cột rỗng */
  }

  .intro-detail iframe,
  .review-box iframe {
    width: 100% !important;
  }

  .homenews-box {
    padding: 10px;
  }

  .camket-item {
    border: 1px solid var(--greencolor);
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 135px;
  }

  .footer-copyright {
    text-align: left;
  }

  .footer-social {
    justify-content: center;
  }

  .homeinfo-item {
    display: block;
  }

  .homeinfo-item-img {
    width: 100%;
    border-bottom: 1px solid #fff;
  }

  .homeinfo-wrapper .grid {
    padding: 0px;
  }

  .homeinfo-intro {
    padding: 0 10px;
    font-size: 16px;
    text-align: center;
  }

  .homeinfo-item-name {
    float: left;
    line-height: 60px;
  }

  .homeinfo-item-img::before {
    opacity: 0;
  }

  .homeinfo-item-img img {
    max-width: 60px;
    float: left;
    height: 60px;
  }

  .item-top,
  .item-service {
    padding: 10px;
  }

  .homeservice-item-top {
    background-size: 80% 90%;
    background-position: right center;
    background-repeat: no-repeat;
  }

  .homeservice-name {
    font-size: 20px;
  }

  .home-service-item img {
    min-height: 200px;
    object-fit: cover;
  }

  .homeservice-wrapper .grid {
    padding: 0px;
    margin: 0;
  }

  .homenews-item img {
    min-height: 150px;
    object-fit: cover;
  }

  .f-title {
    border: none;
  }

  .slidehome-content h2 {
    font-size: 36px;
    max-width: 350px;
    letter-spacing: 1px;
  }

  .slidehome-content {
    transform: translate(-50%, 30%);
  }

  .btn-muangay {
    padding: 10px 30px;
  }

  .cart {
    float: right;
  }

  .search-mb {
    float: right;
    margin-right: 5px;
    font-size: 20px;
  }

  .cartnumber {
    top: -5px;
  }

  .frm-search-mb {
    position: absolute;
    top: 40px;
    display: none;
    right: 0px;
  }

  #searchformtab input {
    background-color: #fff;
  }

  .closeX {
    position: absolute;
    top: -10px;
    right: 0px;
  }

  .select_wrap {
    max-width: 100%;
  }

  .default_option i {
    color: #0039ba;
  }

  .homecat-title {
    font-size: 26px;
  }

  .list-whyus .cell-1-2:nth-child(even) {
    transform: none;
  }

  .hvr-float-shadow {
    margin-bottom: 10px;
  }

  .slide-box {
    position: absolute;
    right: 80%;
    color: #fff;
    transform: translate(50%, -50%);
    top: 65%;
    width: 100%;
    z-index: 100;
    font-size: 12px;
  }

  /*.contact-wrapper {*/
  /*  background: none;*/
  /*}*/

  .contact-wrapper .homecat-title {
    text-align: center;
  }

  .contact-wrapper iframe {
    width: 100%;
    max-width: 370px !important;
  }

  .catinfo-wrapper {
    /*background-image: none;*/
    padding: 0;
    margin: 0;
  }
  
  .intro-toggle-box {
    margin: 0;
    padding: 0;
  }

  .banner-text {
    text-align: center;
  }

  .banner {
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .banner-avatar img {
    margin: auto;
  }

  .banner-cta {
    padding: 20px 0;
  }

  .trainghiem-content,
  .trainghiem-image {
    flex: 0 0 50%;
  }

  .trainghiem-item {
    align-items: stretch;
    /* 🔥 cực quan trọng */
  }

  .trainghiem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .trainghiem-content p {
    margin: 0;
  }

  .trainghiem-content {
    padding: 20px;
  }

  .trainghiem-content {
    overflow: hidden;
  }

  .main-detail {
    text-align: center;
  }

  .main-detail .homecat-title {
    text-transform: none;
    text-align: center;
  }

  .menuboxfooter {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .menuboxfooter.active {
    max-height: 500px;
  }

  .footer-title-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .footer-title-mobile::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(315deg);
    transition: 0.3s;
    margin: 0 10px;
  }

  .footer-title-mobile.active::after {
    transform: rotate(-135deg);
  }

  .footer-block {
    border-bottom: 1px solid #ccc;
  }

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

  .contact-map {
    order: 2;
  }

  .frm-contact {
    order: 1;
  }

  .img-art {
    width: auto;
  }

  .main-img {
    width: auto;
    height: auto;
  }

  /* .review-wrapper {
    background: url('uploaded/pic-cat/123.png');
  } */
  .header_block {
    position: unset !important;
  }
}

@media (max-width: 800px) {
  .galleries {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
  }
}

@media (max-width: 1000px) {
  .galleries {
    -moz-column-count: 3;
    -webkit-column-count: 3;
    column-count: 3;
  }
}

@media (max-width: 1200px) {
  .galleries {
    -moz-column-count: 4;
    -webkit-column-count: 4;
    column-count: 4;
  }
}

@media (max-width: 1600px) {
  .homechude-inner .flex-container>.cell-1-3:nth-child(5) {
    margin-top: -110px;
  }

  .homechude-inner .flex-container>.cell-1-3:nth-child(7),
  .homechude-inner .flex-container>.cell-1-3:nth-child(9) {
    margin-top: -100px;
  }

  .homechude-inner .flex-container>.cell-1-3:nth-child(4),
  .homechude-inner .flex-container>.cell-1-3:nth-child(6) {
    margin-top: -10px;
  }

  .homechude-inner .flex-container>.cell-1-3:nth-child(8) {
    margin-top: -10px;
  }

  .contact-wrapper iframe {
    width: 100%;
    max-width: 775px !important;
  }

  .contact-wrapper .frm-contact {
    padding: 15px 25px !important;
  }

  /*
  .nav > li > a {
    padding: 0 7px !important;
  } */
}

@media (min-width: 1919px) {
  .grid {
    width: 100%;
    max-width: 1315px;
    margin: 0 auto;
  }

  .contact-wrapper img {
    max-width: 95% !important;
  }
}
