@media (max-width:767.98px) {
  .home-flashsale .container {
    padding: 14px 10px 10px
  }

  .flashsale-head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 18px
  }

  .flashsale-head h2 {
    width: 150px;
    min-width: 135px;
    padding: 0;
    font-size: 17px
  }

  .flashsale-percent {
    display: none
  }

  .flashsale-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px
  }

  .flashsale-tabs button {
    min-width: max-content
  }

  .flashsale-grid:not(.is-slider) .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .flashsale-detail {
    align-items: flex-start;
    flex-direction: column
  }

  .flashsale-timer {
    font-size: 11px
  }

  .flashsale-timer b {
    min-width: 24px;
    padding: 4px 2px
  }

  .home-product-banner {
    display: none;
  }

  .home-product-card.home-product__custom .product-card-actions {
    display: none !important;
  }

  .slideKM__mb {
    order: 3;
  }

  .productCat__mb {
    order: 1;
  }

  .brand__mb {
    order: 0;
  }

  .product__mb {
    order: 2;
  }
}

/* Responsive best seller block */
@media (max-width: 1199.98px) {
  .best-seller-main {
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .best-seller-photo {
    grid-column: 2;
    grid-row: 1;
  }

  .best-seller-info {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .best-seller-banners {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}
@media (max-width: 990px) {

    .brand-overview-logo {
        top: 12px;
        left: 12px;
        width: 70px;
        height: 70px;
        padding: 8px;
        transform: none;
        border-radius: 12px;
    }
  
  }
@media (max-width: 767.98px) {
  .best-seller-section {
    padding: 12px 0;
  }

  .best-seller-box {
    padding: 14px 12px 16px;
  }

  .best-seller-box .title-main {
    margin-bottom: 14px;
  }

  .best-seller-box .title-main h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
  }

  .best-seller-level-one {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-right: -12px;
    margin-bottom: 12px;
    padding-right: 12px;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .best-seller-level-one::-webkit-scrollbar,
  .best-seller-cat-group::-webkit-scrollbar {
    display: none;
  }

  .best-seller-list-tab {
    flex: 0 0 auto;
    min-width: max-content;
    scroll-snap-align: start;
  }

  .best-seller-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 14px;
  }

  .best-seller-sidebar,
  .best-seller-photo,
  .best-seller-info,
  .best-seller-banners {
    grid-column: 1;
  }

  .best-seller-sidebar {
    grid-row: 1;
    min-width: 0;
  }

  .best-seller-photo {
    grid-row: 2;
    min-height: 220px;
  }

  .best-seller-info {
    grid-row: 3;
    padding: 14px;
  }

  .best-seller-banners {
    grid-row: 4;
  }

  .best-seller-cat-group.active {
    display: flex;
    gap: 8px;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .best-seller-cat-tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid #d8d8d8;
    border-radius: 18px;
    font-size: 14px;
    white-space: nowrap;
  }

  .best-seller-cat-tab.active {
    border-color: #009846;
    border-radius: 18px;
  }

  .best-seller-cat-tab i {
    margin-left: 8px;
  }

  .best-seller-photo img {
    height: auto;
    max-height: 280px;
  }

  .best-seller-desc {
    max-height: none;
  }

  .best-seller-banners {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 479.98px) {
  .best-seller-box .title-main h2 {
    font-size: 21px;
  }

  .best-seller-photo {
    min-height: 180px;
  }

  .best-seller-info h3 {
    font-size: 16px;
  }

  .best-seller-specs h3 {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .category-lists .col-xl-2 {
    width: 14.28%;
  }

  .category-lists span {
    max-width: 80%;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

/* Max-width */
@media (max-width: 1299.98px) {
  .header-bottom .header-ul .line {
    margin: 0px 5px;
  }

  .search-wrapper.active {
    width: 200px;
  }
}

@media (max-width: 1199.98px) {
  .menu {
    display: none;
  }

  .menu-bar-res {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 991.98px) {
  .customer-review-slider {width: 100%;}
  .customer-review-nav {display: none;}
  .home-product-banner {min-height: auto;}
  .slideshow>.banner:has(.ul-slide) {
    display: none;
  }

  .box-inf {
    width: 100%;
  }

  .fixed .menu-left {
    display: block;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
    vertical-align: top;
  }

  .header-top {
    text-align: right;
  }

  .header-top marquee {
    width: calc(100% - 150px);
    margin-right: 0px;
  }

  .slideshow .slider {
    padding-left: 0;
    width: 100%;
  }

  .slideshow {
    width: 100%;
    flex-wrap: wrap;
  }

  .slideshow .banner {
    width: 100%;
    margin-top: 10px;
  }

  .footer-title {
    margin-bottom: 0px;
  }

  .visao-item {
    margin: 0px 0px 20px 0px !important;
    max-width: 100%;
  }

  #product-title {
    width: 100%;
    -webkit-line-clamp: 3;
  }

  .left-pro-detail {
    width: 400px;
  }

  .right-pro-detail {
    width: calc(100% - 415px);
    padding: 0px;
  }

  .camket-pro-detail {
    width: 100%;
  }

  .best-seller-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 767.98px) {
  .home-product-card .product-price p {
    width: 100%;
    justify-content: start !important;
  }

  .price-new {
    display: block;
    width: 100%;
  }

  .box-inf {
    width: 100%;
  }

  .photo-brand {
    display: none;
  }

  .brand-group {
    flex-direction: column;
  }

  html,
  body {
    overflow-x: hidden;
  }

  div#header {
    z-index: 1000;
    min-height: 90px;
  }

  .header-top marquee {
    width: calc(100%);
  }

  .search-wrapper.active {
    width: 100%;
    position: relative;
  }

  .slideshow .slider {
    width: 100%;
  }

  .title-main {
    margin-bottom: 15px;
  }

  .wrap-cauhoi {
    background: none;
  }

  .wrap-cauhoi .accordion {
    max-width: 100%;
  }

  .doitac-item {
    padding: 10px;
  }

  .wrap-newsletter .hotline {
    min-height: 135px;
    padding-left: 120px;
  }

  .wrap-newsletter .hotline span {
    font-size: 20px;
    padding-bottom: 10px;
  }

  .wrap-newsletter .hotline a {
    font-size: 35px;
    line-height: 40px;
  }

  .footer {
    padding-bottom: 50px;
    padding-top: 20px;
  }

  .footer-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-ul li.line {
    display: none;
  }

  .wrap-product-list .slider-products,
  .wrap-product-list .slider-product-thumbs {
    width: 100%;
  }

  .wrap-product-list .slider-product-thumbs {
    margin-bottom: 30px;
  }

  .product-item .image,
  .product-item .info {
    width: 100%;
  }

  .footer-statistic,
  .footer-copyright {
    text-align: center;
  }

  .vanhoa-item {
    max-width: 100%;
  }

  #chuyenkhoaTabs .nav-item {
    width: 49.5%;
    margin-bottom: 3px;
  }

  #chuyenkhoaTabs .nav-link {
    font-size: 14px;
    width: 100%;
  }

  #chuyenkhoaTabs .nav-link img {
    width: 20px;
  }

  .giatri-item .info {
    min-height: auto;
  }

  .news-item .name {
    min-height: auto;
  }

  .news-item .line {
    margin-top: 0px;
  }

  .wrap-history {
    background: #f8f8f8;
  }

  .wrap-history .slider-nav,
  .wrap-history .slider-for {
    width: 100%;
  }

  .year-item.slick-current span {
    /* padding-left: 20px; */
  }

  .year-item.slick-current::before {
    /* right: auto; */
    /* left: 0px; */
  }

  .attr-pro-detail,
  .camket-pro-detail {
    width: 100%;
  }

  .left-pro-detail {
    margin: 0px auto;
  }

  .left-pro-detail {
    width: 100%;
  }

  .right-pro-detail {
    width: 100%;
  }

  .menu-wrapper .menu-toggle {
    width: 54px;
  }

  .menu-header {
    padding: 10px;
  }

  .menu-header .btn-close-menu {
    border: 1px solid #e0e0e0;
    color: #333;
    line-height: 21px;
    padding: 7px 5px 7px 0;
    position: relative;
    text-align: right;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #6e6e6e;
  }

  .menu-header .btn-close-menu::before,
  .menu-header .btn-close-menu::after {
    content: "";
    position: absolute;
    width: 1px;
    top: 4px;
    left: 8px;
    background-color: #fff;
    height: 8px;
  }

  .menu-header .btn-close-menu::before {
    transform: rotate(45deg);
  }

  .menu-header .btn-close-menu::after {
    transform: rotate(-45deg);
  }

  .menu-dropdown {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 100vw;
    /* toàn bộ chiều ngang */
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    border: none;
    border-radius: 0px;
    padding: 0px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
  }

  .menu-dropdown.open {
    display: block !important;
    right: 0;
    z-index: 1002;
  }

  .menu-left {
    width: 100px;
    height: calc(100vh - 49px);
    border-right: 0px;
  }

  .menu-right {
    padding: 10px;
    background: #fff;
  }

  .menu-panel .category-item {
    width: calc(100% / 3);
    padding: 0px;
  }

  #thuong-hieu .category-item {
    width: calc(100% / 3 - 6px);
    padding: 0px;
  }

  .search-wrapper {
    height: 36px;
    border-radius: 5px;
  }
}

@media (max-width: 575.98px) {
  .flashsale-head {flex-wrap:wrap;}
  .footer-article {padding-bottom: 10px !important;}
  .home-product-head {flex-wrap:wrap;}
.home-product-head > a { font-size: 14px;}
 
  .title-main span,
  .title-main h1,
  .title-list span {
    line-height: 1.3;
  }

  .content-contact-ft span {
    font-size: 21px;
  }

  .footer p {
    margin-bottom: 1rem;
  }

  .footer-ul li a {
    padding: 0px;
  }

  .footer-ul li {
    margin: 0;
    margin-bottom: 10px;
    border: none;
  }

  .accordion-body {
    font-size: 15px;
  }

  .footer-ul li {
    width: 100%;
  }

  .footer-title {
    margin-bottom: 20px !important;
    margin-top: 0;
  }

  .branch .content-branch {
    padding: 10px;
  }

  #toc-content {
    padding-bottom: 10px;
  }

  .gallery-pro-detail {
    flex-direction: column !important;
  }

  .wrap-fb {
    padding: 10px 0;
  }

  .wrap-video {
    padding: 10px 0;
  }

  .grid-branch {
    grid-gap: 10px;
  }

  .wrap-hethong {
    /* margin-bottom: 50px; */
    padding-bottom: 10px;
  }

  .box-branch {
    padding-bottom: 10px;
  }

  .cart-pro-detail {
    flex-wrap: wrap;
  }

  .attr-content-pro-detail {
    width: 100%;
  }

  .head2 {
    display: none;
  }

  .hotline.inf {
    display: none !important;
  }

  .slideshow {
    width: 100%;
    flex-direction: column;
  }

  .banner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
  }

  .wrap-prolist {
    padding: 10px 0;
  }

  .store-system-title h2 {
    font-size: 21px;
  }

  .store-map,
  .store-map-panel iframe {
    min-height: 350px;
    height: 350px !important;
  }

  .store-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    height: 400px;
    overflow: auto;
  }

  .store-photo {
    width: 38%;
    height: 120px;
  }

  .store-criteria {
    row-gap: 20px;
  }

  .store-criteria>.col+.col .store-criterion {
    border-left: 0;
  }

  .home-product-section {
    padding: 12px;
  }

  .home-product-head h2 {
    font-size: 20px;
  }

  .home-product-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .home-product-tabs button {
    flex: 0 0 auto;
  }

  .home-product-grid,
  .home-product-grid.banner-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-product-banner,
  .home-product-grid.banner-right .home-product-banner {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 300px;
  }

  .home-product-card .product-pic {
    height: auto;
  }

  .slideshow .slider {
    padding-left: 0px;
  }

  .slider-tabs {
    display: flex;
    overflow-x: auto;
  }

  .slider-tab {
    flex: 0 0 42%;
  }

  .best-seller-heading {
    font-size: 21px;
  }

  .best-seller-video-wrap>h2 {
    font-size: 20px;
  }

  .best-seller-video-cover {
    height: 300px;
  }

  .best-seller-video-product {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .best-seller-video-product-photo img {
    width: 48px;
  }

  .grid-brand {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-group {
    flex-direction: column;
    gap: 10px;
  }

  .video-main {
    height: 100%;
  }

  .grid-branch {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-ft {
    padding: 30px;
    flex-direction: column;
    margin-bottom: 10px;
  }

  .photo-brand {
    display: none;
  }

  .slide-brand {
    width: 100%;
  }

  .wrap-brand {
    padding: 10px 0px;
  }

  .slideshow .banner {
    width: 100%;
    margin-top: 10px;
  }

  .customer-review-head {
    margin-bottom: 18px;
  }

  .customer-review-head h2 {
    font-size: 21px;
  }

  .customer-review-slider {
    width: calc(100% - 56px);
  }

  .customer-review-nav button.owl-prev {
    left: 0;
  }

  .customer-review-nav button.owl-next {
    right: 0;
  }

  /* .slideshow > .banner:has(.ul-slide) {
    display: block;
    padding: 14px 10px;
  } */
  .footer-colum {
    flex-direction: column;
  }

  .footer-top {
    padding-bottom: 20px;
  }

  .footer-company {
    text-align: center;
  }

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

  .footer-banner {
    max-width: 650px;
    margin: 0 auto;
  }

  .footer-product-menu {
    padding-top: 20px;
  }

  .header-logo-mb {
    width: 100%;
    text-align: center;
  }

  .newsletter-button input {
    margin-bottom: 15px;
  }

  .footer-end {
    padding-bottom: 27px;
  }

  .doingu-item .info p {
    font-size: 12px;
    margin-top: 14px;
  }

  .giatri-right .giatri-item,
  .giatri-right .giatri-item .desc {
    text-align: start;
  }

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

  .giatri-center {
    order: 3;
  }

  .giatri {
    padding-top: 5px;
    flex-direction: column;
  }

  .menu-left {
    width: 30%;
  }

  .flex-lg-column {
    flex-direction: column;
  }

  .footer-content {
    width: 100%;
  }

  .title-cauhoi {
    padding: 15px 0;
  }

  .question {
    flex-direction: column;
    gap: 1px !important;
  }

  .question-list {}

  .question-img {
    width: 100%;
  }

  .taisao-item {
    margin-bottom: 2px;
  }

  .sc-doingu .title-main h2 span::after {
    top: 50px;
    right: -80px;
  }

  .doingu-item .info h1 {
    font-size: 16px;

    margin-bottom: 10px;
  }

  .giatri-item {
    margin-bottom: 0px;
  }

  .giatri-item .info {
    width: 50%;
  }

  .phuongphap-item:nth-child(3),
  .phuongphap-item:nth-child(6) {
    margin-bottom: 0;
  }

  .phuongphap-center {
    order: 3;
  }

  .phuongphap-item {
    margin-bottom: 5px;
  }

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

  .phuongphap {
    padding-top: 8px;
    flex-direction: column;
  }

  .sc-phuongphap .title-main h2 span::after,
  .sc-camnhan .title-main h2 span::after {
    top: 86px;
    right: -35px;
  }

  .title-main h2 {
    padding-top: 6px;
  }

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

  .taisao-center {
    order: 3;
  }

  .taisao {
    padding-top: 12px;
    flex-direction: column;
  }

  .title-main h2 span::after {
    top: 30px;
  }

  .sc-form {
    padding: 20px 0;
  }

  .wrap-uudai {
    padding-top: 1rem;
    transform: translateY(0);
  }

  .wrap-counter .num {
    display: none;
  }

  .banner h2 {
    font-size: 20px;
  }

  .btn-submain {
    font-size: 14px;
  }

  header#header.fixed {
    position: relative;
  }

  .title-main h2 {
    font-size: 22px;
  }

  .title-main::before {
    font-size: 5rem;
    line-height: 65px;
  }

  .wrap-diadiem-hot .service-list h2.name {
    font-size: 16px;
  }

  .wrap-counter .num {
    font-size: 4.5rem;
  }

  .wrap-counter .counter {
    font-size: 2.5rem;
  }

  .wrap-service-list .service-list .name {
    font-size: 17px;
  }

  .wrap-service-list .service-list .info h3 {
    font-size: 16px;
  }

  .wrap-service-list .service-list .info .line {
    margin: 5px auto;
  }

  .news-item .name a {}

  .news-item .desc {
    font-size: 13px;
  }

  .service-item .name {
    font-size: 18px;
  }

  .service-item .desc {
    font-size: 14px;
  }

  .item_history .name {
    font-size: 1.5rem;
  }

  .item_year {
    font-size: 17px;
  }

  #frm-newsletter {
    padding: 0px;
  }

  .notify-popup {
    bottom: 85px;
  }

  .news-item.list .image {
    width: 120px;
  }

  .news-item.list .info {
    width: calc(100% - 120px);
    padding: 0px 10px;
  }

  .title-main h2,
  .title-main h3,
  .title-main h4 {
    white-space: normal !important;
  }

  .choose-list button {
    font-size: 16px;
    margin-bottom: 5px;
    padding: 7px 15px 4px;
  }

  .left-pro-detail {
    width: 100%;
  }

  .khachhang-item {
    width: 300px;
  }

  .accordion-button {
    font-size: 16px;
  }

  .footer-payments {
    text-align: center;
  }

  .item_history .desc {
    margin-bottom: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 3;
  }



  .wrap-brand .brand-item,
  .wrap-doitac .brand-item {
    width: calc(100% / 3 - 0.5rem);
  }

  .filter-brand .filter-dropdown-item {
    width: calc(100% / 3 - 0.5rem);
  }

  .cart-fixed {
    bottom: 100px;
  }

  .wrap-about .about-img {
    position: relative;
    text-align: left;
    padding-bottom: 2%;
  }

  .wrap-about .about-img img:nth-child(2) {
    margin-left: 0px;
    margin-top: 0px;
    position: absolute;
    right: 0px;
    top: 15%;
  }

  .gallery-pro-detail .gallery-pro-detail-left {
    width: 100%;
    margin: 0px;
  }

  .gallery-pro-detail .slider-product-thumbs {
    width: calc(100% - 85px);
  }

  .gallery-pro-detail .slider-products {
    width: 100%;
  }
}

@media (max-width: 380.98px) {

  .title-main span:before,
  .title-main span:after {
    background: none;
  }

  .title-main span,
  .title-main h1,
  .title-list span {
    font-size: 22px;
  }

  .footer-content:last-child .footer-ul {
    flex-direction: column;
  }

  .footer-content:last-child .footer-ul li {
    margin: 0 !important;
  }

  .khoahoc-info .desc {
    font-size: 14px;
  }

  .khoahoc-item {
    min-height: 390px !important;
  }

  .khoahoc-info {
    padding: 11px 6px;
  }

  .khoahoc-btn {
    left: 7px;
  }

  .khoahoc-btn a {
    font-size: 13px;
  }

  .product-video {
    width: 60px;
    height: 60px;
  }

  .khoahoc-info .desc {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }
}