@media screen and (min-width: 768px) and (max-width: 1440px) {
  .section_intro .flex {
    gap: 3%;
  }
  .section_intro .imgs {
    min-width: 60%;
  }
  .contact_form .content {
    max-width: 144rem;
  }
  .product_preview .gap {
    gap: 3%;
  }
}
@media screen and (min-width: 768px) and (max-width: 1220px) {
  .content {
    padding: 0 2rem;
  }
  .swiper_content {
    padding: 1.5rem 2rem;
  }
  .home_banner .control_box {
    width: calc(100% - 4rem);
    left: 2rem;
  }
  header .flex {
    gap: 4rem;
  }
  header .btns {
    gap: 4rem;
  }
  .contact_form .flex {
    gap: 3%;
  }
  .post_main .share {
    right: 2vw;
  }
  .product_preview .left {
    min-width: 57%;
  }
  .products_category ul {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .content,
  .swiper_content {
    max-width: 896px;
  }
  .home_category .item {
    min-height: 45.6rem;
  }
  .contact_form .content {
    max-width: 896px;
  }
  .product_download .list a {
    gap: 5%;
  }
  .product_preview .swiper_box {
    margin-top: 5rem;
  }
  .products_category ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media screen and (max-width: 1024px) {
  header .content {
    max-width: 896px;
  }
  header nav {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
  }
  header nav.active {
    pointer-events: all;
  }
  header nav.active .close {
    opacity: 1;
  }
  header nav.active .con {
    opacity: 1;
    transform: translate(0);
  }
  header nav .close {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    opacity: 0;
  }
  header nav .con {
    position: absolute;
    left: 0;
    top: 0;
    width: min(300px, 80vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: rgba(0 0 0/10%) 0 0 24px;
    transition: all 0.3s;
    opacity: 0;
    transform: translateX(-100%);
  }
  header nav .con .close_box {
    padding: 32px 20px 20px;
    border-bottom: 1px solid #eee;
    text-align: right;
  }
  header nav .con .close_box .close {
    display: inline-block;
    width: 15px;
    height: 15px;
    filter: brightness(0);
    background: url('../img/mobile-menu/close.svg') no-repeat center / contain;
    cursor: pointer;
    transition: all 0.3s;
  }
  header nav .con .close_box .close:hover {
    transform: rotate(180deg);
  }
  header nav .con .close_box + div {
    flex: 1;
    overflow: auto;
  }
  header nav .con .close_box + div::-webkit-scrollbar {
    width: 5px;
  }
  header nav .con .close_box + div::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 10px;
  }
  header nav .con .menu {
    display: block;
  }
  header nav .con .menu > li {
    cursor: pointer;
  }
  header nav .con .menu > li::before {
    display: none;
  }
  header nav .con .menu > li > a {
    color: var(--title_color);
    line-height: 64px;
    padding: 0 0 0 32px;
    font-size: 18px;
  }
  header nav .con .menu > li > a:hover {
    color: var(--theme_color);
  }
  header nav .con .menu > li.menu-item-has-children > a {
    margin-right: 52px;
  }
  header nav .con .menu > li.menu-item-has-children::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: url(../img/mobile-menu/select.svg) no-repeat center / contain;
    position: absolute;
    left: calc(100% - 32px);
    top: 26px;
    transition: all 0.3s;
  }
  header nav .con .menu > li.active::after {
    transform: rotate(180deg);
  }
  header nav .con .menu > li:hover ul {
    padding: 16px 24px;
  }
  header nav .con .menu .current-menu-item > a,
  header nav .con .menu .current-menu-parent > a {
    color: var(--theme_color);
  }
  header nav .con .sub-menu {
    position: static;
    padding: 16px 24px;
    background-color: #f8f8f8;
    margin: 0 32px;
    box-shadow: none;
    border-radius: 8px;
    display: none;
    opacity: 1;
    pointer-events: all;
    transition: none;
    transform: translate(0);
    min-width: unset;
  }
  header nav .con .sub-menu li {
    transform: translate(0);
  }
  header nav .con .sub-menu li a {
    padding: 8px 0;
    word-break: break-word;
    font-size: 14px;
    color: var(--title_color);
  }
  header nav .con .sub-menu li a:hover {
    color: var(--theme_color);
  }
  header .btn_search {
    width: 22px;
  }
  header .btn_menu {
    display: block;
    width: 23px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s;
    background: url(../img/mobile-menu/nav-btn.svg) no-repeat center / contain;
  }
}
@media screen and (min-width: 768px) and (max-width: 896px) {
  .content,
  .swiper_content {
    max-width: 768px;
  }
  .contact_form .content {
    max-width: 768px;
  }
  .products_main .list .product_list {
    grid-template-columns: repeat(2, 1fr);
  }
}
