/* Mobile layout polish for the public theme.
   Keep these rules in responsive.css so they override the legacy desktop-first
   declarations in style.css without changing the template markup. */
@media all and (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background-image: none !important;
  }

  img,
  table,
  iframe,
  object,
  embed {
    max-width: 100%;
  }

  .container,
  .bg-color-2,
  .main1 .container,
  .bodybackground .container,
  .header-top-top .container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header {
    height: auto !important;
    background: #2388d6;
  }

  .header-top-top {
    background: #2388d6;
    padding: 8px 0 10px;
    height: auto !important;
    position: relative !important;
  }

  .styleheadertop,
  .login-bar {
    width: 100%;
    margin: 0 !important;
    padding: 0;
    text-align: center;
  }

  .styleheadertop > li,
  .login-account {
    display: block !important;
    width: 100%;
  }

  .login-account .login-bar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .login-bar li {
    display: inline-flex !important;
    float: none !important;
    vertical-align: middle;
  }

  .login-bar li a {
    display: inline-block;
    padding: 3px 12px;
    color: #fff !important;
    font-weight: 700;
    line-height: 20px;
  }

  .login-bar .regis {
    border-left: 1px solid rgba(255, 255, 255, 0.55);
  }

  .headerright {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .headerright > li {
    display: block;
  }

  .headerright > li:first-child {
    flex: 1 1 calc(100% - 56px);
    min-width: 0;
  }

  .headerright > li:last-child {
    flex: 0 0 48px;
    margin-left: 0 !important;
  }

  #search-box {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 34px !important;
    z-index: 20;
  }

  #search-box .search-area {
    display: block !important;
    width: 100% !important;
    height: 34px !important;
    margin: 0 !important;
  }

  #search-box .search-area .control-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22) !important;
  }

  #search-box .search-basic {
    display: none;
  }

  #search-box .search-area .search-field {
    flex: 1 1 auto;
    width: 100% !important;
    height: 34px;
    min-width: 0;
    margin: 0 !important;
    padding: 7px 38px 7px 14px;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  #search-box .buttonsearch {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 38px;
    height: 34px;
  }

  #search-box .search-button {
    display: block;
    width: 38px !important;
    height: 34px !important;
    line-height: 34px !important;
    text-align: center;
  }

  #search-box .search-button i {
    color: #8d8588;
    font-size: 22px;
    line-height: 34px;
  }

  .stylecart {
    display: block !important;
    width: 48px !important;
    white-space: nowrap;
  }

  .stylecart .miniv2-toolbar-barclick {
    display: flex !important;
    align-items: baseline;
    gap: 4px;
    height: 34px;
    padding: 0 !important;
    color: #fff !important;
    line-height: 34px;
    background: transparent !important;
  }

  .stylecart .hiddentext {
    display: none !important;
  }

  .stylecart .miniv2-toolbar-count {
    margin: 0 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 34px;
  }

  .stylecart .miniv2-toolbar-count:before {
    content: "Giỏ ";
    font-size: 13px;
    font-weight: 400;
    line-height: 34px;
    vertical-align: 2px;
  }

  .bodybackground,
  .bgbackground,
  .headerlogo,
  .headermenu {
    background: #fff !important;
  }

  .bodybackground .container,
  .bgbackground {
    padding-left: 0;
    padding-right: 0;
  }

  .headerlogo .visible-xs {
    padding: 10px 10px 8px;
    text-align: center;
  }

  .headerlogo .mobile-logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .headerlogo .visible-xs img,
  #logo img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .headerlogo .mobile-logo img,
  .headerlogo .mobile-logo object,
  .headerlogo .mobile-logo embed {
    max-height: 88px !important;
  }

  .headder-bottom {
    width: 100%;
    margin-top: 0 !important;
  }

  .menu,
  .headermenu .row,
  .headermenu [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .header .menutop,
  .header .f-menutop {
    height: auto !important;
    border-radius: 0 !important;
    background: #1f8ed9;
  }

  .wrapmenutop {
    display: block;
  }

  .header .menutop .f-menutop-name,
  .f-menutop-name {
    display: flex !important;
    align-items: center;
    height: 38px !important;
    padding: 0 12px !important;
    color: #fff;
    line-height: 38px !important;
    background: #1f8ed9;
  }

  .f-menutop-name:after {
    content: "MENU";
    margin-left: 22px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .header .menutop .f-menutop-name i,
  .f-menutop-name i {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: inline-block;
    color: #fff;
    font-size: 24px !important;
    line-height: 1 !important;
  }

  .f-menutop > .f-menutop-ul {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

  .f-menutop > .f-menutop-ul > li {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e6eef5;
    line-height: 1.4 !important;
  }

  .f-menutop .f-menutop-ul > li > a.firstlink {
    position: relative !important;
    z-index: 1;
    display: block;
    order: 1;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 11px 15px !important;
    color: #1f587a !important;
    font-size: 14px !important;
    font-weight: 700;
  }

  .f-menutop .f-menutop-ul > li > a.firstlink:before,
  .f-menutop .f-menutop-ul > li > a.firstlink:after {
    display: none !important;
  }

  .f-menutop .has-mobile-sub > a {
    padding-right: 52px !important;
  }

  .mobile-sub-toggle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 43px;
    padding: 0;
    color: #1f587a;
    background: transparent;
    border: 0;
    border-left: 1px solid #eef3f7;
    box-shadow: none;
  }

  .mobile-sub-toggle i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .mobile-sub-open > .mobile-sub-toggle i {
    transform: rotate(180deg);
  }

  .top-menu-backgroud,
  .top-menu-sub {
    display: none !important;
  }

  .f-menutop-ul > li.mobile-sub-open > .top-menu-backgroud,
  .f-menutop-ul > li.mobile-sub-open > .top-menu-backgroud > .top-menu-sub {
    position: static !important;
    order: 2;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f7fbff !important;
    box-shadow: none !important;
  }

  .f-menutop-ul > li.mobile-sub-open > .top-menu-backgroud {
    border-top: 1px solid #e5eef5 !important;
  }

  .top-menu-sub:after,
  .top-menu-sub:before,
  .top-menu-backgroud .topmn-bg-zoom {
    display: none !important;
  }

  .top-menu-sub ul {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
  }

  .top-menu-sub ul li {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap;
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #e5eef5;
    background: transparent !important;
  }

  .top-menu-sub ul li a {
    display: block !important;
    order: 1;
    width: 100% !important;
    height: auto !important;
    min-height: 40px;
    padding: 10px 52px 10px 28px !important;
    color: #1f587a !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    background: transparent !important;
    border: 0 !important;
  }

  .top-menu-sub > ul > li > a {
    padding-left: 34px !important;
  }

  .top-menu-sub ul li ul {
    display: none !important;
    position: static !important;
    order: 2;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #eef7ff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .top-menu-sub ul li.mobile-sub-open > ul {
    display: block !important;
    border-top: 1px solid #dcebf5 !important;
  }

  .top-menu-sub ul li ul li a {
    padding-left: 42px !important;
    font-size: 12px !important;
  }

  .top-menu-sub .mobile-sub-toggle {
    height: 40px;
  }

  #notify-box {
    display: none !important;
  }

  .slidertop,
  .f-slider {
    width: 100%;
    margin: 10px 0 !important;
    overflow: hidden;
  }

  .slidertop .container,
  .f-slider .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .f-slider img,
  .slidertop img,
  .carousel-inner > .item > img,
  .carousel-inner > .item > a > img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .owl-carousel,
  .owl-wrapper-outer {
    max-width: 100%;
    overflow: hidden !important;
  }

  .f-center-module {
    width: 100% !important;
    margin: 14px 0 18px !important;
    border: 1px solid #d8d8d8;
    background: #fff;
  }

  .f-center-module .f-center-title {
    min-height: 36px;
    margin: 0 !important;
    padding: 0;
  }

  .f-center-module .f-center-title span,
  .parent_tab h2,
  .f-center-module .f-center-title h2 {
    display: block;
    width: auto;
    margin: 0 !important;
    padding: 9px 14px !important;
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    text-align: center;
    background: #1f8ed9 !important;
    border-radius: 0 !important;
  }

  .f-center-module .f-center-title span:before,
  .f-center-module .f-center-title span:after,
  .f-center-module .f-center-title:before {
    display: none !important;
  }

  .f-center-module .f-center-title .nav-tabs,
  .f-center-module .f-center-body .nav-tabs {
    position: static !important;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    overflow-x: auto;
    border: 0;
    background: #f6f9fb;
    box-shadow: none;
  }

  .f-center-module .f-center-title .nav-tabs li,
  .f-center-module .f-center-body .nav-tabs li {
    flex: 0 0 auto;
    width: auto !important;
    float: none !important;
  }

  .f-center-module .f-center-title .nav-tabs li a,
  .f-center-module .f-center-body .nav-tabs li a {
    display: block;
    min-width: 120px;
    padding: 10px 12px !important;
    color: #1f587a !important;
    font-size: 13px !important;
    text-align: center;
    border: 0 !important;
    background: transparent !important;
  }

  .f-center-module .f-center-title .nav-tabs li.active a,
  .f-center-module .f-center-body .nav-tabs li.active a {
    color: #fff !important;
    background: #1f8ed9 !important;
  }

  .f-center-body {
    padding: 8px !important;
  }

  .f-product-viewid,
  .f-product-viewid.list,
  .f-product-viewid.f-product,
  .f-product-viewid.viewlist {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }

  .f-product-viewid > li {
    width: 50% !important;
    max-width: 50% !important;
    float: none !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .f-center-module .owl-item {
    width: 50% !important;
    max-width: 50% !important;
  }

  .f-center-module .owl-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .f-center-module .owl-item {
    float: none !important;
    max-width: 50% !important;
  }

  .f-center-module .owl-controls {
    display: none !important;
  }

  .v2-home-pr-item {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 6px !important;
    overflow: visible !important;
    border: 0 !important;
    background: #fff;
    text-align: center;
  }

  .v2-home-pr-item-img,
  .f-pr-item-img {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto 10px;
    overflow: hidden;
    text-align: center;
    border: 0 !important;
    background: #fff;
    aspect-ratio: 4 / 3;
  }

  .v2-home-pr-item-img a,
  .f-pr-item-img a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    border: 0 !important;
  }

  .v2-home-pr-item-img a img,
  .f-pr-item-img img,
  .v2-home-pr-item img {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 140px !important;
    margin: 0 auto !important;
    object-fit: contain;
  }

  .f-pr-item-boxdetail,
  .v2-home-pr-item-boxdetail {
    height: auto !important;
    padding: 0 !important;
  }

  .f-pr-item-boxdetail h3,
  .v2-home-pr-item-boxdetail h2,
  .v2-home-pr-item-name {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 7px 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    overflow: visible !important;
    text-align: center !important;
  }

  .f-pr-item-price,
  .v2-home-pr-item-price-gr {
    margin: 6px 0 !important;
    text-align: center !important;
  }

  .f-pr-item-price {
    font-size: 13px !important;
  }

  .v2-home-pr-item-action {
    position: static !important;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    text-align: center !important;
  }

  .v2-home-pr-item-action .v2-home-pr-item-action-detail {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 30px;
    margin: 0 !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    line-height: 30px !important;
  }

  .compareicon {
    display: none !important;
  }

  .icon-hover,
  .like-product {
    display: none !important;
  }

  .main1 {
    background: #fff;
  }

  .main1 .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .main1 .row-offcanvas,
  .main1 .f-ctn-center {
    margin-left: 0;
    margin-right: 0;
  }

  .main1 .row-offcanvas > .f-ctn-center,
  .main1 .f-ctn-center .f-ctn-center,
  .main1 .f-ctn-center > .row > [class*="col-"] {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .f-product-view-info,
  .f-product-view .f-product-view-info {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .f-product-view-info-image,
  .f-product-view-info-detail {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .f-pr-image-zoom,
  .f-pr-image-zoom .zoomWrapper {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .f-pr-image-zoom img,
  #f-pr-image-zoom-id {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .magnifier,
  .cursorshade,
  .tracker,
  .statusdiv,
  .zoomstatus,
  .zoomtracker,
  .zoomContainer,
  .zoomWindow,
  .zoomLens {
    display: none !important;
  }

  #gallery {
    float: none !important;
    width: 100% !important;
    margin-top: 14px !important;
    overflow: hidden !important;
  }

  #product-detail-thumbs.owl-carousel {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  #product-detail-thumbs .owl-wrapper-outer {
    overflow: hidden !important;
  }

  #product-detail-thumbs .owl-item {
    padding: 0 5px;
  }

  #product-detail-thumbs .pr-carol-item {
    float: none !important;
    width: 100% !important;
    height: 76px !important;
    margin: 0 !important;
    border: 1px solid #ddd;
    background: #fff;
  }

  #product-detail-thumbs .pr-carol-item a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  #product-detail-thumbs .pr-carol-item img {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 72px !important;
    margin: auto !important;
    object-fit: contain;
  }

  .buttoncartbox {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 16px 0 !important;
    padding: 8px !important;
    overflow: visible !important;
    border-radius: 5px !important;
  }

  .buttoncartbox .btnRed {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .buttoncartbox .button-small,
  .buttoncartbox .btnRed .button-small {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 8px 6px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    text-align: center;
    white-space: normal !important;
  }

  .buttoncartbox .button-small i {
    display: none;
  }

  .buttoncartbox.contact-buttoncartbox {
    display: block !important;
  }

  .buttoncartbox.contact-buttoncartbox .contact-product-button {
    display: flex !important;
    width: 100% !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    white-space: normal !important;
  }

  .f-footer,
  .main-footer-info {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .f-footer {
    height: auto !important;
    margin-top: 18px;
    overflow: visible !important;
    background: #1f8ed9 !important;
    border-radius: 0 34px 0 34px;
  }

  .f-footer .f-footer-info {
    width: 100% !important;
    height: auto !important;
    padding: 14px 12px !important;
    overflow: visible !important;
    text-align: left !important;
  }

  .f-footer .f-footer-info table,
  .f-footer .f-footer-info tbody,
  .f-footer .f-footer-info tr,
  .f-footer .f-footer-info td {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .f-footer .f-footer-info td:first-child {
    margin-bottom: 12px;
  }

  .f-footer .f-footer-info td:first-child img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 170px;
    object-fit: cover;
    filter: none !important;
  }

  .f-footer .f-footer-info p img {
    display: inline-block !important;
    width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    max-height: 22px !important;
    margin: 0 6px 2px 0 !important;
    object-fit: contain !important;
    vertical-align: middle;
    filter: brightness(0) invert(1) !important;
  }

  .f-footer .f-footer-info p,
  .f-footer .f-footer-info span {
    color: #fff !important;
    line-height: 1.45 !important;
  }

  .f-footer .f-footer-info p {
    margin-bottom: 6px !important;
  }

  .f-footer .f-footer-info iframe {
    display: block !important;
    width: 100% !important;
    height: 230px !important;
    margin-top: 10px;
    border: 0 !important;
  }
}

@media all and (max-width: 420px) {
  .headerright {
    flex-wrap: nowrap;
  }

  .headerright > li:first-child {
    flex-basis: calc(100% - 46px);
  }

  .f-center-module {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .v2-home-pr-item-img a img,
  .f-pr-item-img img,
  .v2-home-pr-item img {
    max-height: 130px !important;
  }
}
