/*
Theme Name: Flatsome Child
Description: Dientu.vn Flatsome child theme
Author: Codex
Template: flatsome
Version: 1.0.18
*/

:root {
  --tb-blue: #0098da;
  --tb-blue-dark: #0288c6;
  --tb-orange: #ff7a00;
  --tb-text: #222;
  --tb-muted: #6b7280;
}

body {
  background: #f5f7f9;
  color: var(--tb-text);
  padding-bottom: 66px;
}

.absolute-footer {
  display: none !important;
}

.header-wrapper {
  display: none !important;
}

.tb-container {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.tb-site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--tb-blue);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.admin-bar .tb-site-header {
  top: 32px;
}

.tb-topbar {
  background: #0a8fd0;
  color: #fff;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.tb-primary-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0 !important;
  padding: 0;
  align-items: center;
}

.tb-topbar .tb-container {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tb-toplinks {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tb-topbar a {
  line-height: 30px !important;
  min-height: 0 !important;
  font-size: 12px;
}

.tb-topbar a,
.tb-nav a {
  color: #fff;
  font-weight: 600;
}

.tb-topbar a {
  display: inline-block;
  padding: 0 !important;
}

.tb-mainbar {
  background: var(--tb-blue);
}

.tb-mainbar-inner {
  height: 56px;
  min-height: 56px;
  display: grid;
  grid-template-columns: 170px minmax(260px, 1fr) 150px 44px;
  gap: 18px;
  align-items: center;
}

.tb-logo {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: lowercase;
  position: relative;
  line-height: 1;
}

.tb-logo span {
  display: inline-block;
}

.tb-logo:after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: -10px;
  width: 116px;
  height: 11px;
  background:
    linear-gradient(#fff,#fff) left 3px top 4px/44px 1px no-repeat,
    linear-gradient(#fff,#fff) right 3px top 4px/44px 1px no-repeat;
  opacity: .9;
}

.tb-logo:before {
  content: "";
  position: absolute;
  left: 75px;
  bottom: -10px;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  border-radius: 0 0 10px 10px;
  opacity: .9;
}

.tb-search {
  display: flex;
  height: 39px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
  margin: 0 !important;
}

.tb-search input[type="search"] {
  height: 39px;
  border: 0;
  box-shadow: none;
  padding: 0 16px;
  margin: 0;
  font-size: 14px;
  background: #fff;
}

.tb-search button {
  width: 46px;
  border: 0;
  background: #e9f7fd;
  color: var(--tb-blue);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.tb-hotline {
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1.1;
  font-size: 12px;
}

.tb-hotline strong {
  font-size: 16px;
  color: #fff100;
}

.tb-cart {
  color: #fff;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tb-cart span {
  width: 24px;
  height: 17px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  display: block;
  position: relative;
}

.tb-cart span:before {
  content: "";
  position: absolute;
  left: -6px;
  top: -8px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: skewX(-18deg);
}

.tb-cart span:after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -7px;
  height: 4px;
  background:
    radial-gradient(circle, #fff 0 2px, transparent 2.5px) left center/8px 4px no-repeat,
    radial-gradient(circle, #fff 0 2px, transparent 2.5px) right center/8px 4px no-repeat;
}

.tb-nav {
  background: var(--tb-blue-dark);
  border-top: 1px solid rgba(255,255,255,.16);
}

.tb-primary-menu > ul {
  height: 36px;
  min-height: 36px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-left: 172px;
  gap: 32px;
}

.tb-primary-menu > ul::-webkit-scrollbar {
  display: none;
}

.tb-primary-menu a {
  white-space: nowrap;
  font-size: 14px;
  text-transform: none;
  line-height: 36px !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.tb-primary-menu li,
.tb-primary-menu a:before,
.tb-primary-menu a:after {
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

.main {
  background: #f5f7f9;
}

.home-hero .row-banner,
.quick-cats .row,
.hot-sale-section .row,
.product-band .row,
.service-strip .row {
  max-width: 1180px;
}

.home-hero .row-banner > .col {
  padding-bottom: 0 !important;
}

.quick-cats .row > .col {
  padding-bottom: 0 !important;
}

.home-hero .row-banner {
  align-items: flex-start !important;
}

.home-hero {
  background: #f5f7f9;
  padding-top: 12px !important;
  padding-bottom: 8px !important;
}

.home-hero .img-inner,
.home-hero .flickity-viewport {
  border-radius: 6px;
  overflow: hidden;
}

.home-hero .side-banner {
  margin-bottom: 12px;
}

.home-hero .side-banner img,
.home-hero .side-banner .img-inner {
  height: 102px !important;
  object-fit: cover;
  overflow: hidden;
}

.market-row p {
  margin: 0;
  font-size: 12px;
  color: #333;
}

.quick-cats .col-inner {
  background: #fff;
}

.quick-cat-row {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  padding: 15px 8px 13px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0;
}

.quick-cat-row:before,
.quick-cat-row:after {
  display: none;
}

.quick-cat-item {
  width: auto !important;
  max-width: none !important;
  flex-basis: auto !important;
  padding: 0 6px !important;
  text-align: center;
}

.quick-cat-item .col-inner {
  border-right: 1px solid #edf1f5;
}

.quick-cat-item:last-child .col-inner {
  border-right: 0;
}

.quick-cat-item .img-inner {
  width: 70px !important;
  height: 70px !important;
  background: #eefaff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.quick-cat-item img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain;
  filter: saturate(1.35) contrast(1.12);
  padding: 0;
}

.quick-cat-item p {
  margin: 9px 0 0;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.2;
}

.hot-sale-section {
  padding-top: 30px !important;
}

.hot-sale-section .col {
  background: var(--tb-blue);
  border-radius: 9px;
  padding: 10px 12px 14px;
}

.sale-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 32px;
}

.sale-heading h2 {
  color: #fff;
  font-size: 18px;
  margin: 0 auto 0 0;
}

.sale-heading p {
  color: #fff;
  margin: 0;
  font-size: 12px;
}

.sale-heading span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 23px;
  height: 23px;
  margin-left: 4px;
  background: #fff;
  color: var(--tb-blue);
  border-radius: 50%;
  font-weight: 700;
}

.sale-heading a {
  color: #fff;
  font-size: 12px;
  margin-left: 8px;
}

.product-small .box {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}

.product-small .box-text {
  background: #fff !important;
  border-radius: 0 0 8px 8px;
  padding: 8px 6px 10px !important;
}

.product-small .box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.product-small .box-image {
  border-radius: 6px;
  background: #fff;
}

.product-small .box-image img {
  height: 155px;
  object-fit: contain;
}

.product-small .category {
  color: var(--tb-blue);
  font-size: 11px;
  opacity: 1;
}

.product-small .name {
  font-size: 12px;
  min-height: 36px;
  line-height: 1.25;
  margin-top: 4px;
}

.product-small .price {
  color: var(--tb-orange);
  font-size: 14px;
  font-weight: 800;
}

.product-small .price-wrapper:before {
  content: "★★★★★";
  display: block;
  color: #d9d9d9;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1;
  margin: 2px 0 7px;
}

.product-small .price-wrapper:after {
  content: "Mua ngay";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 27px;
  margin-top: 8px;
  padding: 0 13px;
  border-radius: 4px;
  background: var(--tb-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.product-band {
  padding-top: 12px !important;
}

.product-band .row {
  background: #fff;
  border-radius: 8px;
  padding: 8px 8px 2px;
}

.section-title-line h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
}

.section-title-line h3 a {
  color: var(--tb-blue);
  font-size: 12px;
  font-weight: 600;
}

.category-banner img {
  border-radius: 8px;
  object-fit: cover;
}

.product-band .product-small .box {
  box-shadow: none;
  background: #fafafa;
  padding: 6px;
}

.product-band .product-small .box-image img {
  height: 118px;
}

.product-band .product-small .box-image {
  background: #f2f3f5;
  border-radius: 4px;
}

.product-band .product-small .box-text {
  background: #fafafa !important;
}

.product-band .product-small .category {
  display: none;
}

.product-band .product-small .name {
  min-height: 31px;
  font-size: 11px;
  line-height: 1.25;
}

.product-band .product-small .box-text {
  padding: 5px 4px 7px !important;
}

.product-band .product-small .price {
  font-size: 12px;
}

.product-band .product-small .price-wrapper:before {
  font-size: 10px;
  margin: 1px 0 0;
}

.product-band .product-small .price-wrapper:after {
  display: none;
}

.product-band-compact .row {
  min-height: 430px;
}

.promo-strip {
  padding-top: 12px !important;
  padding-bottom: 0 !important;
}

.promo-strip .row {
  max-width: 1180px;
}

.promo-placeholder {
  height: 184px;
  background: #eceef1;
  border-radius: 2px;
}

.customer-section,
.news-section {
  padding-top: 14px !important;
}

.customer-section .row,
.news-section .row {
  max-width: 1180px;
  background: #fff;
  border-radius: 8px;
  padding-top: 10px;
}

.centered-title h3 {
  justify-content: center;
  text-align: center;
  color: var(--tb-blue);
}

.customer-gallery .img-inner {
  border-radius: 8px;
  overflow: hidden;
}

.customer-gallery img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.news-section .post-item .box {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.news-section .post-title {
  font-size: 14px;
  line-height: 1.35;
}

.news-section .box-image img {
  height: 132px !important;
  object-fit: cover;
}

.news-section .box-text {
  padding: 8px 8px 10px !important;
}

.service-strip .row {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.service-strip {
  padding: 20px 0 !important;
  background: #f5f5f8;
}

.service-row {
  min-height: 202px;
  align-items: center;
  padding: 18px 22px 14px;
}

.service-row > .col {
  padding-bottom: 0;
}

.service-box {
  text-align: center;
}

.service-box .img-inner {
  width: 62px !important;
  height: 62px !important;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--tb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 4px #dff5ff;
}

.service-box img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-box h4 {
  font-size: 13px;
  margin: 0 0 5px;
  color: #111;
}

.service-box p {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #111;
}

.custom-footer {
  background: #fff;
  color: #111;
  border-top: 1px solid #edf1f5;
  font-size: 13px;
}

.tb-demo-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}

.tb-demo-note {
  background: #ffe929;
  color: #b25d00;
  height: 27px;
  line-height: 27px;
}

.tb-demo-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #7fbe3e;
  color: #fff;
  min-height: 39px;
  align-items: center;
  font-weight: 700;
}

.tb-demo-actions span {
  border-right: 1px solid rgba(255,255,255,.5);
}

.tb-demo-actions span:last-child {
  border-right: 0;
}

.custom-footer h3,
.custom-footer h4,
.custom-footer a,
.custom-footer p {
  color: #222;
}

.custom-footer h3,
.custom-footer h4 {
  font-size: 16px;
  margin-bottom: 12px;
}

.custom-footer .footer-main {
  max-width: 1180px;
  padding: 16px 0 4px;
}

.custom-footer .footer-main p {
  margin-bottom: 4px;
  line-height: 1.35;
}

.custom-footer .footer-main .col {
  padding-bottom: 8px;
}

.footer-subscribe {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.footer-subscribe input {
  height: 34px;
  margin: 0;
  border-radius: 4px;
  font-size: 13px;
}

.footer-subscribe button {
  height: 34px;
  min-height: 34px;
  line-height: 34px;
  padding: 0 12px;
  margin: 0;
  border-radius: 4px;
  background: var(--tb-blue);
  color: #fff;
  font-size: 12px;
}

.footer-cats {
  display: none;
}

.footer-cats p {
  font-size: 12px;
  color: #333;
}

.footer-copy {
  max-width: none;
  background: #f8f8f8;
  text-align: center;
}

.footer-copy .col {
  padding-bottom: 0;
}

.footer-copy p {
  margin: 0;
  padding: 10px 0;
  font-size: 12px;
  color: #777;
}

.policy-page .row {
  max-width: 980px;
  background: #fff;
  border-radius: 8px;
  padding: 25px 16px;
}

@media (max-width: 849px) {
  .admin-bar .tb-site-header {
    top: 46px;
  }

  .tb-topbar {
    display: none;
  }

  .tb-mainbar-inner {
    grid-template-columns: 120px 1fr 40px;
    min-height: 54px;
    gap: 10px;
  }

  .tb-logo {
    font-size: 20px;
  }

  .tb-hotline {
    display: none;
  }

  .tb-cart {
    font-size: 22px;
  }

  .tb-nav .tb-container {
    width: 100%;
  }

  .tb-primary-menu > ul {
    padding: 0 14px;
    gap: 18px;
  }

  .quick-cats .row {
    width: min(100% - 18px, 1180px);
  }

  .quick-cat-row {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 10px 4px 8px;
    scrollbar-width: none;
  }

  .quick-cat-row::-webkit-scrollbar {
    display: none;
  }

  .quick-cat-item {
    flex: 0 0 20%;
    max-width: 20% !important;
    padding: 0 2px !important;
  }

  .quick-cat-item .img-inner {
    width: 38px !important;
    height: 38px !important;
  }

  .quick-cat-item img {
    width: 24px !important;
    height: 24px !important;
  }

  .quick-cat-item p {
    font-size: 9px;
    margin-top: 5px;
  }

  .sale-heading {
    flex-wrap: wrap;
  }

  .sale-heading h2 {
    width: 100%;
  }

  .product-small .box {
    padding: 5px;
  }

  .product-small .box-text {
    padding: 5px 3px 7px !important;
  }

  .product-small .box-image img {
    height: 92px;
  }

  .product-small .category {
    display: none;
  }

  .product-small .name {
    min-height: 30px;
    font-size: 10px;
    line-height: 1.25;
  }

  .product-small .price {
    font-size: 11px;
  }

  .product-small .price-wrapper:before {
    font-size: 9px;
    margin: 1px 0 4px;
  }

  .product-small .price-wrapper:after {
    min-width: 72px;
    height: 23px;
    margin-top: 5px;
    font-size: 10px;
  }

  .hot-sale-section .row-small > .col:nth-of-type(n+5) {
    display: none;
  }

  .hot-sale-section .product-small .box-image img {
    height: 70px;
  }

  .hot-sale-section .product-small .name {
    min-height: 24px;
    font-size: 9px;
  }

  .hot-sale-section .product-small .price-wrapper:after {
    height: 20px;
    min-width: 64px;
    margin-top: 3px;
  }

  .product-band .col:has(.category-banner) {
    display: none;
  }

  .product-band .row {
    padding: 7px 7px 0;
  }

  .product-band-compact .row {
    min-height: 0;
  }

  .product-band-compact .row-small > .col:nth-of-type(n+5) {
    display: none;
  }

  .product-band-compact .product-small .box-image img {
    height: 74px;
  }

  .product-band-compact .product-small .name {
    min-height: 24px;
  }

  .promo-strip .row {
    display: flex;
    flex-wrap: nowrap;
    width: min(100% - 18px, 1180px);
  }

  .promo-strip .col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 3px 0 !important;
  }

  .promo-placeholder {
    height: 184px;
  }

  .customer-gallery img {
    height: 125px !important;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .customer-section .row {
    padding-top: 6px;
  }

  .customer-section h3 {
    font-size: 13px;
    line-height: 1.35;
  }

  .news-section .post-item.col {
    flex-basis: 50% !important;
    max-width: 50% !important;
  }

  .news-section .post-item:nth-of-type(n+3) {
    display: none;
  }

  .news-section .box-image img {
    height: 64px !important;
  }

  .news-section .post-title {
    font-size: 10px;
    line-height: 1.25;
  }

  .news-section .row {
    padding-top: 6px;
  }

  .news-section .post-item.col {
    padding-bottom: 0 !important;
  }

  .news-section .box-text {
    padding: 5px 5px 6px !important;
  }

  .service-strip {
    padding: 14px 0 !important;
  }

  .service-row {
    min-height: 170px;
    padding: 14px 12px 10px;
  }

  .service-box .img-inner {
    width: 54px !important;
    height: 54px !important;
  }

  .service-box h4 {
    font-size: 12px;
  }

  .service-box p {
    font-size: 10px;
  }

  .tb-demo-sticky {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .tb-container {
    width: min(100% - 18px, 1180px);
  }

  .tb-mainbar-inner {
    grid-template-columns: 106px 1fr 34px;
  }

  .tb-search {
    height: 34px;
  }

  .tb-search input[type="search"] {
    height: 34px;
    font-size: 13px;
    padding: 0 11px;
  }

  .tb-search button {
    width: 38px;
  }

  .quick-cat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
