#mobileNav {
  width: 85vw;
}
#mobileNav .offcanvas-body{
  padding: 0;
}
.mobileNav .main-menu{
  display: block;
}
.mobileNav .main-menu a {
  color: var(--bs-primary)!important;
  border-bottom: 1px solid var(--bs-gray-300);
  line-height: 2rem !important;
}
.mobileNav .menu-item-has-children > a::after{
  color: var(--bs-primary);
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  /* CSS rules for small devices go here */
 
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  /* CSS rules for medium devices go here */

 
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* CSS rules for large devices go here */
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* CSS rules for extra large devices go here */
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  /* CSS rules for extra extra large devices go here */
}

/* Specific overrides for smaller screens (max-width) if needed */

/* Example: Styles only for tablets and below */
@media (max-width: 991.98px) {
  /* CSS rules for large devices and below */
}

/* Example: Styles only for mobile phones */
@media (max-width: 767.98px) {
  .container.mb-fluid{
    padding: 5px;
  }
  .main-menu li.menu-item > a {
    padding: 0.6rem;
  }
    #mobileNav .nav-link{
        font-size: 14px!important;
        font-weight: 600;
    }
  .hide-on-mobile {
    display: none;
  }
  .main-banner, .main-banner .carousel-item{
    max-height: 150px;
  }
  .section-header{
    padding: 5px 10px;
  }
  .section-header .title{
    font-size: 1.1em;
  }
  .product-list-filter .category-filter .btn-filter{
    font-size: 1em;
    font-weight: 500;
    padding: 5px
  }
  .photo-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 0px;
  }
  .photo-box .photo-box-item a span{
    bottom: 15px;
    font-size: 12px;
    font-weight: 500;
    padding:3px 10px;
  }
  .photo-box.style-2 .photo-box-item a span{
    bottom: 15%;
  }
  .section-footer {
    margin-top: 0px;
    font-size: 13px;
    font-weight: 600;
  }
  .viewed-products {
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    overflow-x: scroll;
  }
  .viewed-products .viewed-item { 
    width: calc(100vw - var(--bs-gutter-x) * 2.5);
  }
  article.blog-post{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5px;
    margin-bottom: 1rem;
  }
  article.blog-post .post-title {
    margin-top: 0;
    font-size: 1rem;
    -webkit-line-clamp: 3;
  }
  article.blog-post .post-desc {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    display: none;
  }
  article.post-item {
    gap: 5px;
    margin: 0px;
  }
  article .post-item-image, .review-posts .post-item-image {
    width: 15%;
  }
  article .post-item-content, .review-posts .post-item .post-item-content {
    width: 85%;
  }
  article .post-item-excerpt{ 
    display: none;
  }
  .review-posts .post-item:first-child {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5px;
    
  }
  .review-posts .post-item:first-child .post-item-title {
    margin-top: 0;
    font-size: 1rem;
    -webkit-line-clamp: 3;
  }
  .footer-widgets {
    flex-direction: column;
  }
  .footer-widgets .widget-box {
    margin: 0 0 15px  0;
  }

  .bct-container{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
  }
  .bct-container img {
    max-width: 100%;
    max-height: 50px;
  }
  .bct-container .bct-chung-nhan{
    order: 4 !important;
    grid-column: 1 / span 3;
    font-size: 12px;
  }
  #cateSidebarOffcanvas.offcanvas {
    position: fixed!important;
    transform: translateX(-100%)!important;
    visibility: visible !important; /* Quan trọng để ghi đè style của offcanvas */
    width: 85vw !important; /* Reset width */
    border: none; /* Reset border nếu có */
  }
  #cateSidebarOffcanvas.offcanvas.show {
    transform: translateX(0)!important;
  }
  .offcanvas-backdrop {
    height: 100%;
  }
  .category-product-listing .product-grid {
    grid-template-columns: 1fr;
  }
  .product-sort-by{
    position: fixed !important;
    flex-direction: column;
    background-color: #fff;
    z-index: 1050;
    box-shadow: 2px 2px 5px #aaa;
    border-radius: 10px;
    padding: 15px;
    right: 0;
    justify-content: flex-end;
    align-items: end !important;
    transition: all 0.3s ease-in-out;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
  }
  .product-sort-by .sort-by-item, .product-sort-by .sort-by-item .btn-sort-by {
    width: 100%;
    text-align: center;
  }
 .product-sort-by.show{
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
 }
 #compare-list .closecompare{
  width: 23%;
  margin-top:1rem;
  vertical-align: top;
 }
 #compare-list .closecompare .btn{
  font-size: 0.8rem;
    padding: 5px 10px !important;
    width: 100% !important;
    margin: 0px !important;
 }
 #compare-header .fullCompare-title h5, #compare-header .fullCompare-title h6{
  font-size: 1rem;
  display: none;
 }
 #fullCompare-head { width: 76%;}
 #fullCompare-head .cp-item-col {
  padding: 5px;
 }
 #fullCompare-head .cp-item-col h6, #compareHead-top #cmpProduct-item li h3,.cp-item-col .cp-plus {
  font-size: 0.8rem;
 }
 #fullCompare-head .cp-item-col .product-meta-text.sku{
  display: none;
 }
  #fullCompare-head .cp-item-col .price{
    display: block;
  }
  #compareHead-top #cmpProduct-item li{
    flex-direction: column;
    padding: 5px;
  }
  #cmpProduct-item li img {
    max-width: 100%;
  }
  #cprPage-product-list .box-detailcp.checkdiff, .fullCompare-title{
    padding: 5px !important;
    width: 24%;
    display: flex;
    align-items: center;
  }
  #compare-attributes .attribute-name, .compare-attributes-grid .attribute-value {
    padding: 5px;
    font-size: 0.9rem;
  }
  .contact-title{ 
    font-size: 18px;
  }
  .contact-items {
    display: flex;
    text-align: left;
  }
  .contact-items svg{
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  .contact-items .contact-form1 {
    display: none;
  }
  .full-form-contact .form-title{
    font-size: 18px;
  }
    .cartPage-item{
        padding: 15px 0px;
    }
    .cartPage-item .cartItem-left .item-image {
        width:unset;
    }
    .cartPage-item .cartItem-left .item-image img {
        min-width: 65px;
        max-width: 65px;
    }
    .cartPage-item .item-title{
        line-height: 1;
    }
    .cartPage-item .item-title a {
        font-size: 1rem;
    }
    .cartPage-item .item-attr{
        padding-left: 10px;
    }
    .cartPage-item .item-total, .cartPage-order-details h5 {
        font-size: 1rem;
    }
    .cartPage-item .item-dec {display: none;}
    #btn-checkout, #btn-checkout-with-card {
        width: 100%!important;
    }
    #btn-checkout-with-card{
        margin-top: 15px;
    }
    #searchInput {
        font-size: 0.9rem;
    }
    .cartPage-order-details .form-control{
        font-size: 0.9rem;
    }
    #searchResultsContainer {
        margin-left: 0;
        margin-top: 40px !important;
        max-height: 500px !important;
        margin-right: 10px;
    }
    .single-product .product-meta {
        gap: 1rem;
    }
    .average-rating-stars {
        font-size: 0.9rem;
    }
    .video-modal .modal-body{
        padding: 5px;
    }
    .video-modal .modal-dialog {
        max-width: 98vw !important;
        width: 95vw !important;
    }
    .ratio-9x16 {
        width: 100vw;
        height: calc(100vw * 16 / 9); /* tỷ lệ 9:16 chuyển thành 16:9 cho chiều dọc */
        max-width: 100vw;
        max-height: 95vh;
    }
    .related-products.category-product-listing .product-grid{
        --item-cols:2!important;
    }
    .related-products.category-product-listing .product-grid .product-item .image{
        min-height: 150px;
    }
    .related-products.category-product-listing .product-grid .product-item .image img {
        max-height: 150px;
    }
    .single-product .price, .single-product .price .new {
        font-size: 16px;
    }
}
@media (max-width: 575.98px) {

}