@media (max-width: 991px) {
  body { overflow-x: hidden; }
  * { box-sizing: border-box; }
  img { max-width: 100%; height: auto; }

  .navbar-collapse {
    display: none !important;
    background-color: #222;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 10px 0;
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar-collapse.show { display: block !important; }
  .navbar { position: relative; }
  .navbar-toggler { display: block !important; }
  .dropdown-menu {
    position: static !important;
    float: none;
    background-color: #333;
    border: none;
    box-shadow: none;
    margin: 0;
  }
  .nav-item { border-bottom: 1px solid #444; }
  .nav-link { color: #fff !important; padding: 10px 20px !important; }

  .productbox-grid {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .product-items {
    width: 50% !important;
    float: none !important;
    padding: 5px !important;
    box-sizing: border-box !important;
    display: inline-block !important;
  }
  .product-block { width: 100%; }
  .product-block img, .img-responsive { width: 100% !important; height: auto !important; }

  .contact { width: 100% !important; float: none !important; }
  .contactDescription { float: none !important; width: 100% !important; }
  .swiper-container, .slider { width: 100% !important; height: auto !important; overflow: hidden; }
  .swiper-slide img { width: 100%; height: auto; }
}
@media (max-width: 480px) {
  .product-items { width: 100% !important; }
}

@media (max-width: 991px) {
  .col-md-3, .col-md-4, .col-md-6 {
    width: 50% !important;
    float: left !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .col-md-3[style*="display:none"],
  .col-md-4[style*="display:none"],
  .product-items[style*="display:none"] {
    display: none !important;
  }
  .row { margin-left: -5px !important; margin-right: -5px !important; }
}
@media (max-width: 480px) {
  .col-md-3, .col-md-4, .col-md-6 {
    width: 100% !important;
    float: none !important;
  }
}

@media (max-width: 991px) {
  .product-block {
    height: auto !important;
    min-height: unset !important;
  }
  .product-thumb {
    height: auto !important;
  }
  .transition {
    height: auto !important;
  }
  .caption {
    height: auto !important;
    overflow: visible !important;
  }
  .caption h4, .caption a {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .reg-image {
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 991px) {
  .product-block-inner {
    position: relative !important;
  }
  .product-details {
    position: static !important;
    display: block !important;
    width: 100% !important;
    background: transparent !important;
  }
  .caption {
    position: static !important;
    display: block !important;
    padding: 5px !important;
  }
  .caption h4 {
    font-size: 11px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    margin: 0 0 5px 0 !important;
  }
  .price, .newPrice {
    font-size: 11px !important;
  }
  .image img {
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 991px) {
  .product-thumb {
    position: relative !important;
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
  }
  .product-block.product-thumb.transition {
    height: auto !important;
    overflow: visible !important;
  }
  .thumbnail {
    height: auto !important;
    padding: 5px !important;
  }
  .col-6 {
    margin-bottom: 10px !important;
  }
}

@media (max-width: 991px) {
  .bk {
    display: none !important;
  }
  .product-details {
    position: static !important;
    opacity: 1 !important;
    filter: alpha(opacity=100) !important;
    width: 100% !important;
    height: auto !important;
    bottom: auto !important;
    background: white !important;
    padding: 5px !important;
  }
  .product-block-inner {
    overflow: visible !important;
    height: auto !important;
  }
  .caption h4 {
    font-size: 11px !important;
    line-height: 1.3 !important;
    max-height: none !important;
  }
  .price { font-size: 12px !important; }
}

@media (max-width: 991px) {
  .product-block,
  .product-block-inner,
  .product-thumb,
  .product-thumb .image {
    overflow: visible !important;
    height: auto !important;
  }
  .product-details,
  .caption {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 991px) {
  .product-thumb h4 {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  .product-thumb h4 a {
    font-size: 11px !important;
    white-space: normal !important;
  }
  .col-6 {
    overflow: visible !important;
  }
}

@media (max-width: 991px) {
  .col-6.product-items {
    margin-bottom: 15px !important;
    padding-bottom: 0 !important;
  }
  .product-block {
    margin: 5px !important;
  }
  .productbox-grid {
    align-items: flex-start !important;
  }
}
@media (max-width: 991px) {
    #tablatest-grid .col-6 {
        display: flex;
        flex-direction: column;
    }
    #tablatest-grid .col-6 .product-block {
        flex: 1;
        height: 100% !important;
    }
}
@media (max-width: 991px) {
    .lastcontainer .row .col-6 {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
    }
    .lastcontainer .row .col-6 img {
        height: 120px !important;
        object-fit: contain !important;
        width: 100% !important;
    }
}
@media (max-width: 991px) {
    .lastcontainer .row .col-6.heightAuto,
    .lastcontainer .row .col-6 {
        height: auto !important;
        min-height: unset !important;
    }
    .lastcontainer .row {
        align-items: flex-start !important;
    }
    .product-block {
        min-height: unset !important;
        height: auto !important;
    }
}
@media (max-width: 991px) {
    .lastcontainer .row .col-6.heightAuto,
    .lastcontainer .row .col-6 {
        height: auto !important;
        min-height: unset !important;
    }
    .lastcontainer .row {
        align-items: flex-start !important;
    }
    .product-block {
        min-height: unset !important;
        height: auto !important;
    }
}
@media (max-width: 991px) {
    .lastcontainer .row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }
    .lastcontainer .row .col-6 {
        padding: 5px !important;
        margin-bottom: 0 !important;
    }
    .lastcontainer .row .col-6 .product-block,
    .lastcontainer .row .col-6 > div {
        height: 100% !important;
    }
}
