/* Responsive overrides. Desktop rules stay in style.css (body min-width 1300px). */
@media (max-width: 1299px) {
  html,
  body {
    min-width: 0 !important;
    width: 100%;
    overflow-x: hidden;
  }

  .max-width,
  .wrap-content,
  .menu .wrap-content {
    width: 100% !important;
    max-width: 1300px;
    padding-left: 12px;
    padding-right: 12px;
  }

  img,
  video,
  iframe,
  svg {
    max-width: 100%;
    height: auto;
  }

  #footer-map iframe {
    height: 100% !important;
    max-width: none;
  }
}

@media (max-width: 991px) {
  header > nav.menu {
    display: none;
  }

  body.menu-mobile-opened .header {
    z-index: 10002;
  }

  .footer-news,
  .footer-news:nth-child(1),
  .footer-news:nth-child(2),
  .footer-news:nth-child(3) {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .left-albumhome,
  .right-albumhome {
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
  }

  .row-albumhome,
  .row-albumhome:nth-child(2n) {
    flex-direction: column;
  }

  .row-albumhome:nth-child(2n) .right-albumhome {
    margin: 0 0 24px;
    flex-direction: column;
  }

  .right-albumhome::before {
    display: none;
  }

  .right-albumhome-pic {
    flex-wrap: wrap;
    gap: 12px;
  }

  .right-albumhome-pic .albumhome-item {
    width: min(380px, 100%);
  }

  .product-for-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .product-for-pic,
  .product-for-info {
    width: 100%;
    max-width: 100%;
  }

  .slide-for-product,
  .box-slide-banggia,
  .album-product {
    max-width: 100%;
  }

  .title-home-name {
    font-size: 26px;
    line-height: 1.25;
  }

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

  .home-slogan span {
    font-size: 20px;
  }

  .albumhome-desc {
    font-size: 24px;
    line-height: 1.3;
    max-width: 100%;
  }

  .product-for-name a {
    font-size: 22px;
  }

  .pct {
    padding: 36px 0;
  }

  .footer-article {
    padding: 40px 0;
  }

  .footer-gg-map {
    margin-bottom: 0;
  }

  #footer-map {
    border-radius: 16px;
    height: 240px;
  }

  .menu-mobile ul li ul {
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 767px) {
  .row-cols-2 > *,
  .row-cols-3 > *,
  .row-cols-5 > *,
  .row-cols-sm-2 > *,
  .row-cols-sm-3 > *,
  .row-cols-sm-5 > * {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .row-cols-3 > *,
  .row-cols-5 > *,
  .row-cols-sm-3 > *,
  .row-cols-sm-5 > *,
  .row-cols-md-3 > * {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }
}
