/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0

show-for-small-only	Chỉ hiện trên mobile (0–549px)
hide-for-small-only	Ẩn trên mobile
show-for-medium	Hiện từ tablet trở lên (≥550px)
hide-for-medium	Ẩn từ tablet trở lên
show-for-medium-only	Chỉ hiện tablet (550–849px)
hide-for-medium-only	Ẩn tablet
show-for-large	Hiện từ desktop trở lên (≥850px)
hide-for-large	Ẩn từ desktop trở lên
show-for-large-only	Chỉ hiện desktop (850–1199px)
hide-for-large-only	Ẩn desktop
show-for-xlarge	Hiện từ ≥1200px
hide-for-xlarge	Ẩn từ ≥1200px
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.d-none {
  display: none;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ttit-btn {
  font-weight: 500;
  font-size: 12px;
  margin: 0;
}

ul.ttit-cat-list {
  width: 100%;
  display: flex;
  white-space: nowrap;
  overflow: auto;
  list-style-type: none;
  /* margin-bottom: 0; */
}
li.ttit-cat-item {
  background: #ebebeb;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 32px;
  text-align: center;
  text-transform: uppercase;
  color: #000;
  margin-right: 8px;
  transition: 0.15s all;
  margin-left: 0px !important;
}

li.ttit-cat-item:last-child {
  margin-right: 0 !important;
}

.sub-menu-hero-dropdown {
  display: none;
}

.home .header-wrapper.stuck .title_menu_danhmuc {
  display: flex;
}

.home .title_menu_danhmuc {
  display: none;
}

.title_menu_danhmuc {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#hamburger {
  cursor: pointer;
  width: 30px;
  height: 30px;
  margin-right: 5px;
}

.menu_text {
  display: flex;
  flex-direction: column;
  font-size: 10px;
}

.bar {
  display: block;
  border-radius: 4px;
  width: 100%;
  height: 10%;
  margin-top: 5px;
  background: #3d3d3d;
  transition: 0.25s;
  -webkit-transition: 0.25s;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.bar_1.bar {
  width: 70%;
  margin-right: 0;
  margin-left: auto;
}

.bar_2.bar {
  width: 50%;
  margin-right: 0;
  margin-left: auto;
}

/* Toggleable block for .title_menu_danhmuc */
.menu-active-categories {
  display: none;
  position: relative;
  z-index: 1000;
}
.menu-active-categories.is-open {
  display: block;
  top: 50px;
  right: 115px;
  width: 290px !important;
}
/* 
.menu-active-categories.is-open:after {
  content: "";
  top: 200px;
  position: fixed;
  background: #000;
  opacity: 0.8;
  width: 100vw;
  height: calc(100vh - 50px);
  left: 50%;
  transform: translate(-50%, 0);
} */

.menu-active-categories.is-open {
  position: absolute;
  top: 50px;
  right: 50px;
}

#hamburger.is-active .bar:nth-child(1) {
  transform: translateY(9px) rotate(135deg);
  width: 100%;
}
#hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}
#hamburger.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-135deg);
  width: 100%;
}

header#header.active_menu:after {
  content: "";
  top: 0;
  position: fixed;
  background: #000;
  opacity: 0.8;
  width: 100vw;
  height: 100vh;
  left: 50%;
  transform: translate(-50%, 0);
}

.header-block-slider {
  min-width: 270px;
}

.header-block-slider p {
  margin: 0;
}

.bg-sale-hot {
  background: linear-gradient(270deg, #ffc34e 2.54%, #ff8b49 86.96%);
}

.icon-box-product .text h4 {
  margin-bottom: 0;
}

form#yith-wcwl-form {
  max-width: 1065px;
  margin: 0 auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.dambao_wrap > .col-inner {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid #e9e9e9;
  padding: 10px;
  margin-bottom: 15px;
  height: fit-content;
}

.woocommerce-breadcrumb a:first-of-type::before {
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-family: "Font Awesome 5 Free";
  font-weight: 900; /* solid */
  line-height: inherit;
  vertical-align: baseline;
  content: "\f015"; /* icon ngôi nhà */
  margin-right: 0.540791em;
  font-variant: normal;
}

.woo-variation-swatches
  .variable-items-wrapper
  .variable-item
  .variable-item-contents {
  flex-direction: row;
}

.woo-variation-swatches .variable-items-wrapper .variable-item img {
  width: 24px;
  height: 24px;
}

.khuyen-mai-hb {
  margin-bottom: 6px;
  margin-top: 6px;
  background: rgb(238 11 11 / 0.04);
  padding: 10px 0 0 10px;
  border-radius: 10px;
  border: 1px solid #ef0b0b;
  font-size: 15px;
  width: 100%;
}
.khuyen-mai-hb .tieu-de {
  background: #e31616;
  padding: 2px 20px;
  margin-top: -24px;
  font-size: 15px;
  font-weight: 500;
  color: #fff !important;
  display: block;
  max-width: 150px;
  border-radius: 99px;
}

.khuyen-mai-hb ul {
  list-style: none;
  margin: 0;
  padding: 3px;
}

.khuyen-mai-hb ul li {
  position: relative;
  padding-left: 20px;
  margin-left: 0;
}

.menu-on-hero > div:last-of-type {
  padding-right: 2px !important;
}

.khuyen-mai-hb ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background: url(https://bonzstore.vn/wp-content/uploads/2025/09/icon_check.png.webp)
    no-repeat center center;
  background-size: contain;
}

.arcontactus-widget.active {
  display: block !important;
}

.widget-btn-list {
  position: fixed;
  right: 30px;
  bottom: 65px;
  width: 45px;
  z-index: 9999;
}

.widget-btn-list a {
  width: 55px;
  height: 55px;
  line-height: 50px;
  display: inline-block !important;
  border: none !important;
  font-size: 18px !important;
  color: #fff !important;
  text-align: center !important;
  position: relative;
  border-radius: 50% !important;
  cursor: pointer !important;
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
}

.sub-menu-hero-dropdown-wrap {
  position: relative;
  width: 100%;
  height: calc(100% - 1rem);
  overflow: hidden;
}

.widget-btn-list .zalo {
  background-image: url(assets/images/zalo.svg) !important;
  background-color: #0068ff !important;
  margin-bottom: 7px;
}

.widget-btn-list .messenger {
  background-image: url(assets/images/messengerfb.svg) !important;
  background-color: #0082ff !important;
  margin-bottom: 7px;
}

.widget-btn-list .contact {
  background-image: url(assets/images/phone.svg) !important;
  background-color: #f7a400 !important;
  margin-bottom: 7px;
}

.widget-btn-list a {
  transform: scale(0.7);
}

.menu-heading-categories {
  align-items: center;
}

.menu-heading-categories .icon-box-text.last-reset {
  padding-left: 0.5rem;
}
.menu-heading-categories .icon-box-text.last-reset > h5 {
  margin-bottom: 0rem;
}

.menu-on-hero .ux-menu-link__text:hover {
  color: #009995;
}

p.name.product-title.woocommerce-loop-product__title a {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5em;
  max-height: 3em;
}

.sub-menu-hero-dropdown .col-inner > .img:not(:last-child),
.col > .img:not(:last-child) {
  margin-bottom: 0px !important;
}

.custom-category-header {
  visibility: hidden;
  opacity: 0;
  height: 0px;
}

.shop-container .term-description {
  visibility: hidden;
  opacity: 0;
  height: 0px;
}

h3.wp-block-heading {
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c6d6f;
}

.wc-block-product-filters__overlay-content .widgettitle {
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  color: #6c6d6f;
}

/* ========== TABLET (≥550px) ========== */
@media only screen and (min-width: 550px) {
  p.form-row-first {
    margin-right: 2% !important ;
  }
}

/* ========== DESKTOP (≥850px) ========== */
@media only screen and (min-width: 850px) {
  .widget-btn-list a {
    transform: scale(1);
  }

  .ttit-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .ttit-cats {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    top: 0;
    right: 0;
  }

  ul.ttit-cat-list {
    margin-bottom: 0;
  }

  .ttit-see-more {
    white-space: nowrap;
  }

  li.ttit-cat-item {
    margin-bottom: 0 !important;
  }

  .ttit-btn {
    font-size: 16px;
    padding: 8px 16px;
  }

  .sub-menu-hero-dropdown {
    display: none;
    position: absolute;
    top: 0px;
    bottom: 0;
    left: 100% !important;
    padding: 1rem;
    padding-bottom: 0rem !important;
    padding-right: 0rem !important;
    margin-left: 0px !important;
    height: 100%;
    /* border-radius: 4px; */
    width: 876px !important;
    z-index: 10;
    background: #fff;
    border: 1px solid #f4f4f4;
  }

  .custom-menu-hero > .menu-item:hover {
    background: #f4f4f4;
    border-radius: 4px;
  }

  .custom-menu-hero > .menu-item:hover > .sub-menu-hero-dropdown {
    display: block;
  }

  .custom-menu-hero > .menu-item.is-open > .sub-menu-hero-dropdown {
    display: block;
  }

  .custom-menu-hero {
    /* padding: 10px; */
    border-radius: 4px;
    background: #fff;
    position: relative;
    min-height: 394px;
    margin-bottom: 0;
    /* overflow: auto; */
    border-right: 1px solid #f2f2f2;
  }

  .custom-menu-hero > .menu-item {
    border-top: unset;
    margin-left: 0;
    padding: 6px 16px;
    margin: 0;
    list-style-type: none;
    transition: 0.15s all ease-in-out;
  }
  .custom-menu-hero > .menu-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    text-transform: capitalize;
    font-weight: 600;
  }
}
