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

/*************** ADD CUSTOM CSS HERE.   ***************/
:root {
  --cl-main: #ef1917;
  --cl-primary: #00a295;
}

body {
  -webkit-user-select: none; /* Chrome, Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;         /* Chuẩn */
}

/* Ngoại trừ admin và editor để họ vẫn có thể copy */
body.user-admin .entry-content,
body.user-admin p,
body.user-editor .entry-content,
body.user-editor p {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* fix khung img */
.c-img {
  position: relative;
  display: block;
}
.c-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
/* hover img scale */
.scale-img {
  overflow: hidden;
}
.scale-img img {
  transition: all 0.5s;
}
.scale-img:hover img {
  scale: 1.1;
  transition: all 0.5s;
}

/* css modal */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active,
.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  transform: translateY(-20px);
}

.modal.active {
  transform: translateY(0);
}
/* end css modal */

/* reset css s-content  */
.s-content h1 {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h2 {
  font-size: 2em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h5 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h6 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}
.s-content p img.aligncenter {
  margin: auto;
}
.s-content p img.alignleft {
  margin-right: auto;
}
.s-content p img.alignright {
  margin-left: auto;
}
.s-content a {
  color: #2f5aae;
  cursor: pointer;
  text-decoration: none;
}
.s-content ul,
.s-content ol {
  list-style: disc;
  padding: 0.5em;
}
.s-content li {
  margin-top: 10px;
}
.s-content ul li {
  margin-left: 1.3em;
}
.s-content strong {
  font-weight: bold;
}
.s-content i {
  font-style: italic;
}
.s-content table {
  width: 100% !important;
}
.s-content blockquote {
  font-style: italic;
  background: #ebebeb;
  padding: 1rem;
  border-left: 3px solid #1f72c2;
}
.s-content img {
  max-height: 100vh;
  object-fit: contain;
}
.s-content p {
  margin-bottom: 0.5rem;
}
.s-content ul {
  margin-bottom: 0.5rem;
}
.s-content ol {
  margin-bottom: 0.5rem;
}
.s-content table {
  margin-bottom: 0.5rem;
}
.s-content blockquote {
  margin-bottom: 0.5rem;
}
.s-content img {
  margin-bottom: 0.5rem;
}

/* end css reset s-content  */

/* excerpt.css */
.excerpt-content {
  transition: max-height 0.4s ease-in-out;
  overflow: hidden;
}

.excerpt-hidden {
  max-height: var(--max-height, 3.5rem);
  position: relative;
}

.excerpt-hidden::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(transparent, white);
}

.excerpt-visible {
}

.excerpt-toggle {
  transition: all 0.3s;
}

.excerpt-toggle i {
  transition: transform 0.4s ease-in-out;
}

.excerpt-toggle .rotate {
  transform: rotate(180deg);
}

/* end excerpt.css */

.box_news .post-item .col-inner {
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0.25rem;
}
.post-item .box-text .is-divider {
  display: none;
}
.pro_shadow,
.custom_shadow {
  box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.11),
    0 0 10px 0 rgba(0, 0, 0, 0.059);
}
.product__price--percent {
  background: url(/wp-content/themes/t5s-child/theme/frontend/images/discount-badge-ui-2025.png)
    50% no-repeat;
  height: 22px;
  left: 10px;
  margin: auto;
  position: absolute;
  top: 2px;
  width: 78px;
  z-index: 10;
}
.product__price--percent .product__price--percent-detail {
  font-size: 0.875rem;
  padding-left: 0.375rem;
}
.product-info .price-wrapper .price ins span.amount,
.related-products-wrapper
  .box-text-products
  .price-wrapper
  .price
  ins
  span.amount {
  color: var(--cl-main);
}

.product-info:not(:has(.product-lightbox-inner))
  form.cart
  > button.single_add_to_cart_button {
  width: 40%;
  border-radius: 0.5rem;
  overflow: hidden;
}
.product-info:not(:has(.product-lightbox-inner))
  form.cart
  > button.ux-buy-now-button {
  border-radius: 0.5rem;
  overflow: hidden;
  flex-grow: 1;
}
footer .absolute-footer {
  display: none;
}
.box_contact {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
}
.box_contact .box_form .col-inner,
.info_contact .icon-box {
  padding: 1rem;
  background: #f3f3f3;
  border-radius: 8px;
  overflow: hidden;
}
.col {
  padding: 0.75rem;
}
.icon-box-left .icon-box-img {
  display: flex;
}
.icon-box-left .icon-box-img .icon {
  margin: auto;
}
.mbp-0 p {
  margin-bottom: 0 !important;
}
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 50px;
  height: 50px;
}
.btn_popup_pro_cate {
  background: hsla(0, 0%, 100%, 0.2);
  border-radius: 0.5rem;
  /* overflow: hidden; */
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  color: #fff;
}
.btn_popup_pro_cate:hover {
  background: rgba(0, 0, 0, 0.059);
}
.header-nav-main li.header-block {
  width: fit-content;
}
h1.entry-title {
  font-weight: 700;
}
.shop-page-title .page-title-inner {
  padding-top: 0;
}
.img_contain img {
  object-fit: contain !important;
}
.btn_popup_pro_cate .box_cate_popup{
  display: none;
  transition: all 0.3s;
}
.btn_popup_pro_cate:hover .box_cate_popup{
  display: block;
}
.searchform .search-field{
  background-color: #fff!important;
  color: #000!important;
}
.searchform > .flex-row{
  border-radius: 0.5rem;
  overflow: hidden;
}
.tab-content.active{
  display: block!important;
}
.menu_sidebar > ul > li{
  position: relative;
}
.menu_sidebar > ul ul{
  margin: 1rem !important;
}
.menu_sidebar .btn-down-menu{
  position: absolute;
  top: 0;
  right: 0;
  transition: all 0.3s;
}
.menu_sidebar .btn-down-menu.active{
  transform: rotate(180deg);
}
.menu_sidebar .btn-down-menu i{
  transition: all 0.3s;
}

@media only screen and (max-width: 767.98px) {
  .s-content h1 {
    font-size: 1.5rem;
  }
  .s-content h2 {
    font-size: 1.25rem;
  }
  .s-content h3 {
    font-size: 1.125rem;
  }
  .s-content h4 {
    font-size: 1rem;
  }
  .s-content h5,.s-content h6 {
    font-size: 0.875rem;
  }
  .product-info:not(:has(.product-lightbox-inner))
    form.cart
    > button.single_add_to_cart_button {
    width: 100%;
  }
  .product-info:not(:has(.product-lightbox-inner))
    form.cart
    > button.ux-buy-now-button {
    width: 100%;
  }
  .mobile-sidebar ul.nav-sidebar > li.menu-item {
    display: flex;
  }
  .mobile-sidebar ul.nav-sidebar > li.menu-item > a {
    width: min-content;
  }
}
