/* Extra small devices (portrait phones, less than 576px) */
/* Css mobile */
@media only screen and (max-device-width: 576px),
  only screen and (max-width: 576px) {
  /* header */
  .header_top-right {
    display: none;
  }
  .container.header_body {
    flex-wrap: wrap;
  }
  .header_body-logo {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 0;
  }
  .header_body-logo .logo {
    width: 100%;
    height: 100%;
  }
  .header_body-logo header {
    display: none;
  }
  .header_body-logo p {
    font-size: 14px;
  }
  .header_top-left {
    display: flex;
    justify-content: center;
    width: 100%;
    font-size: 14px;
  }
  .header_body-right {
    display: none;
  }
  .search_mobile {
    display: block;
  }
  .header_bottom {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .block_breadcrumb {
    font-size: 14px;
    width: 100%;
    padding: 0px 6px;
  }
  .intro_page {
    font-size: 14px;
  }
  .intro_page h1 {
    font-size: 20px;
  }
  .intro_page h2 {
    font-size: 18px;
  }
  .intro_page h3,
  .intro_page h4 {
    font-size: 16px;
  }
  /* body main */
  .product_item {
    --number-row: 1;
    min-width: unset;
  }
  .product_item-bottom button {
    font-size: 10px;
  }
  /* footer */
  .header_bottom-menu {
    display: none;
  }
  .block_footer {
    padding-top: 0;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-spread {
    margin: 0.6rem;
  }
  .footer-fanpage {
    text-align: center;
    height: 180px;
  }
  .footer-bottom {
    margin-top: 1rem;
  }
  .list-item {
    padding: 1rem;
  }
  /* menu footer */
  .block_menu-float {
    border-radius: unset;
    width: 100%;
  }
  .block_menu-float ul {
    padding: 0;
  }
  .menu-float-zalo span {
    right: 14px;
    font-size: 9px;
  }
  .block_menu-float svg {
    width: 26px;
  }
  .block_menu-float p {
    font-size: 11px;
  }
  /* modal */
  .modal-video .embed-responsive,
  .quickview-video iframe,
  .detail-video .responsive-iframe-youtube {
    height: 500px;
  }
  .modal1_body {
    margin: unset;
    z-index: 99;
  }
  .search-product {
    padding: 0;
  }
  .modal-footer {
    justify-content: center;
  }
  .search-header {
    font-size: 1.2rem;
  }
  .search-body-item {
    flex-wrap: wrap;
    padding: 5px 0;
  }
  .search-body {
    font-size: 15px;
  }
  .search-body-item .title {
    width: 100%;
    text-align: center;
    margin: 6px 0;
  }
  .search-body-item .content {
    margin: auto;
    gap: 12px;
    padding: 4px 10px;
  }
  .list-size .content {
    max-height: 16vh;
  }
  .list-size .content li,
  .list-color li {
    width: 28vw;
    font-size: 14px;
  }
  .search-body-item.list-area li,
  .search-body-item.list-origin li,
  .search-body-item.list-hight li,
  .search-body-item.list-style li {
    min-width: 108px;
    width: auto;
    font-size: 12px;
  }
  /* product detail */

  .product-detail-top {
    flex-wrap: wrap;
    padding: 0.6rem;
  }
  .product-detail-body,
  .product-detail-video {
    margin: -12px;
  }
  .detail-top-left .list-images {
    display: none;
  }
  .detail-info {
    flex-wrap: wrap;
  }
  .detail-title {
    text-align: center;
    word-wrap: break-word;
  }
  .detail-top-right p {
    font-size: 14px;
    text-align: center;
  }
  .detail-top-right .table {
    font-size: 14px;
  }
  .total-price {
    padding: 1rem 0;
  }
  .spinfo-img {
    font-size: 14px;
    line-height: normal;
    padding: 4px;
  }
  .phone-contact {
    bottom: 90px;
    left: 16px;
  }
  .phone-contact p {
    display: none;
  }
  .offcanvas-end {
    width: 76%;
  }
}
/* exception size */
@media (min-width: 576px) and (max-width: 759.99px) {
  .header_top {
    font-size: 14px;
  }
  .header_bottom-menu li a {
    padding: 10px 6px;
    font-size: 11px;
    line-height: 36px;
  }
  .header_body-right li {
    line-height: 30px !important;
  }
}
@media (max-width: 825px) {
  .header_bottom-menu li {
    display: none;
  }
}
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 991.98px) {
  /* header */
  .block_adver {
    display: flex;
    flex-direction: column-reverse;
  }
  .header_top {
    font-size: 14px;
  }
  .header_body {
    max-width: 100%;
  }
  .header_body-logo {
    display: block;
    padding: 0 0.4rem;
  }
  .header_body-logo .logo {
    width: auto;
  }
  .header_body-logo header {
    font-size: 1.2rem;
    display: none;
  }
  .header_body-logo p {
    font-size: 0.8rem;
  }
  .search-top-header {
    display: none;
  }
  .search_mobile {
    display: block;
    margin: 10px auto;
  }
  .header_slide_text {
    margin: 9px;
  }
  .header_body-right li {
    font-size: 14px;
    line-height: 30px !important;
  }
  .header_bottom-menu {
    /* justify-content: space-evenly; */
    display: none;
  }
  .mobile-menu {
    display: flex;
  }
  .mobile-menu:hover {
    background: #dc3545;
  }
  .header_bottom-menu li {
    border-left: unset;
  }
  .header_bottom-menu li a {
    padding: 5px;
    font-size: 11px;
    line-height: 34px;
  }
  .header_bottom {
    line-height: 2.4rem;
    justify-content: space-between;
  }
  .block_breadcrumb {
    font-size: 14px;
  }
  /* main contents */
  .product_item {
    min-width: unset;
    --number-row: 2;
  }
  .product_item-bottom button {
    font-size: 10px;
  }
  .block_adver {
    display: flex;
    flex-direction: column-reverse;
  }
  .detail-top-left,
  .detail-top-right {
    flex: unset;
  }
  /* footer */
  .block_footer {
    padding-bottom: 6rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
  }
  .block_menu-float svg {
    width: 24px;
  }
  .block_menu-float p {
    font-size: 12px;
  }
  .menu-float-zalo span {
    font-size: 8px;
    top: 8px;
    right: 17px;
  }
  .footer-contact {
    margin-bottom: 2rem;
  }
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .header_body-logo header {
    font-size: 1.6rem;
  }
  .header_body-logo p {
    font-size: 1rem;
  }
  .header_body-logo .logo {
    width: 115px;
    height: 115px;
  }
  .header_bottom-menu li {
    font-size: 12px;
  }
  .product_item {
    min-width: unset;
    --number-row: 3;
  }
  .footer-top {
    flex-wrap: wrap;
  }
  .footer-contact {
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin-bottom: 1rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .product_item {
    min-width: unset;
    --number-row: 4;
  }
  .modal1_body {
    margin: auto;
  }
}

/* ===============================
   Responsive riêng cho các model iPad phổ biến
   =============================== */

/* iPad 9.7", iPad Mini - 768x1024 */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  .product_item {
    --number-row: 2;
  }
  .header_bottom-menu li {
    font-size: 13px;
  }
}

/* iPad Air 10.5" - 820x1180 */
@media only screen and (min-device-width: 810px) and (max-device-width: 1180px) {
  .product_item {
    --number-row: 2;
  }
  .header_bottom {
    padding: 0.5rem 1rem;
  }
  .detail-title {
    font-size: 1.4rem;
  }
}

/* iPad Pro 12.9" - 1024x1366 */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) {
  .product_item {
    --number-row: 3;
  }
  .header_top,
  .header_bottom {
    font-size: 14px;
  }
  .header_body {
    max-width: 100%;
    padding: 0 1.2rem;
  }
  .footer-top {
    justify-content: space-between;
  }
  .footer-fanpage {
    height: 220px;
  }
}
/* iPad Pro 11" - 834x1194 */
@media only screen and (min-device-width: 834px) and (max-device-width: 1194px) {
  .container {
    max-width: 100%;
  }
  .product_item {
    --number-row: 3;
  }
  .header_top,
  .header_bottom {
    font-size: 13px;
  }
  .footer-top {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* CSS dành riêng cho iPad 9.7" Landscape */
/* iPad Mini - Landscape (1024x768) */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  .header_top,
  .header_bottom {
    font-size: 13px;
  }
}
