/*
Theme Name: Flatsome Child
Description: Child theme của Flatsome với hệ thống module và shortcode tối ưu
Author: Your Name
Template: flatsome
Version: 1.0.0
*/

/* Import base styles từ hệ thống module */
@import url("assets/css/base/reset.css");
@import url("assets/css/base/global.css");

/*************** CUSTOM CSS ***************/
/* Thêm custom CSS ở đây nếu cần */

/* Đảm bảo tương thích với Flatsome */
/* Override nếu cần thiết để tương thích với Flatsome */

/*************** RESPONSIVE ***************/
@media only screen and (max-width: 549px) {
  /* Mobile styles */
  .custom-btn--large {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
  }
}

@media only screen and (min-width: 550px) and (max-width: 849px) {
  /* Tablet styles */
}

@media only screen and (min-width: 850px) {
  /* Desktop styles */
}
.news-block-one .inner-box .image-box .image img {
  height: 300px;
}

body {
  font-size: var(--font-size-lg) !important;
}
.post-content ul {
  padding-left: 24px !important;
}
.tp-sv-banner-text {
  position: relative;
  padding-left: 18px; /* chừa khoảng trống cho icon */
}

.tp-sv-banner-text::before {
  content: "✔"; /* có thể đổi thành ký tự khác: • ► ★ … */
  position: absolute;
  left: 0;
  top: 0;
  color: #ef402a; /* màu icon */
  font-size: 18px;
}
ul li::marker {
  color: #f55743;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border-radius: 8px;
  overflow: hidden; /* bo góc cho bảng */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 12px 12px;
  text-align: left;
}

table th {
  background-color: #f55743;
  color: #fff;
  font-weight: bold;
}

table td:first-child,
table th:first-child {
  padding-left: 8px; /* thêm khoảng cách bên trái cho cột đầu */
  font-weight: bold; /* cột đầu in đậm cho dễ nhìn */
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tr:hover {
  background-color: #f1f1f1;
}
.tp-sv-pricing {
  display: none;
}

html {
  background-color: #1c1c1c;
}

a.back-to-top {
  background: #28aa50 !important;
  border: none !important;
  color: white !important;
}

/* Header */
.header-search-form-wrapper {
  margin-right: 15px;
}
.icon-search:before {
  color: #28aa50;
}
.form-flat input:not([type="submit"]) {
  background: white;
  height: 40px;
  border-radius: 9px;
  border: 1px solid #28aa50;
}
.header:not(.transparent) .header-nav-main.nav > li > a:hover,
.header:not(.transparent) .header-nav-main.nav > li.active > a,
.header:not(.transparent) .header-nav-main.nav > li.current > a,
.header:not(.transparent) .header-nav-main.nav > li > a.active,
.header:not(.transparent) .header-nav-main.nav > li > a.current {
  color: #28aa50;
}
.header:not(.transparent) .header-nav-main.nav > li > a {
  color: #0a0a0a;
}
.header-main .nav > li > a {
  text-transform: none;
  line-height: 16px;
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 600;
}
/* -------------
Home 
------------- */
/* Slider */
.flickity-prev-next-button {
  width: 40px;
  height: 40px;
}
.flickity-prev-next-button svg {
  background: white;
  border-radius: 99%;
  box-shadow: 2px 2px 10px #00000017;
  color: #28aa50;
}

.flickity-page-dots .dot.is-selected {
  background: #28aa50 !important;
  border: 3px solid #28aa50;
}

/* banner-section */
.banner-section,
.gioi-thieu-section {
  background: url(/wp-content/themes/flatsome-child/assets/images/box4T-bg.png);
}
.banner-section .img {
  border-radius: 10px;
  padding: 8px;
  background: white;
  box-shadow: 2px 2px 15px #00000014;
}
.banner-section img,
.gioi-thieu-section img {
  border-radius: 5px;
}

/* gioi-thieu-section */

.nut-xem-them {
  font-weight: normal;
  letter-spacing: 0;
  font-size: 15px;
}

/* keu-goi-section */
.keu-goi-section .col {
  padding-bottom: 0;
}

.keu-goi-section .cot1 p {
  margin-bottom: 0;
}
.keu-goi-section .icon-box-img {
  margin-top: 0;
  margin-bottom: 2px;
}
.keu-goi-section .icon-box-img img {
  padding-top: 0;
}

@media (max-width: 549px) {
  .keu-goi-section .cot1 {
    padding-bottom: 20px;
  }
}

/* Product box */

.product-small.box {
  background: white;
  border: 1px solid white;
  box-shadow: 2px 2px 20px #00000017;
  border-radius: 10px;
}

.product-small.box:hover {
  border: 1px solid #28aa50;
}
.product-small .box-image {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.product-small .box-image::before {
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
  background: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.3) 100%
  );
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.3) 100%
  );
  -webkit-transform: skewX(-25deg);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.product-small .box-image:hover::before {
  -webkit-animation: shine 0.75s;
  animation: shine 0.75s;
}

@-webkit-keyframes shine {
  100% {
    left: 125%;
  }
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

.product-small.box .box-text {
  padding: 15px;
}

.product-small.box .box-text .product-title {
  margin-bottom: 10px;
  font-size: 15px;
  height: 41px;
  overflow: hidden;
}

.product-small.box .box-text .price span.amount,
.product-small.box .box-text .price ins span {
  font-size: 18px;
  font-weight: 600;
  color: black !important;
}

/* san-pham-section */
.section-title-center span {
  margin: 0 15px;
  text-transform: none;
  font-size: 28px;
  color: #27a449;
}
.section-title b {
  background: #00000000;
}
.section-title-center span:after {
  content: "";
  display: table;
  clear: both;
  background: url(/wp-content/themes/flatsome-child/assets/images/title-divide.png);
  width: 100%;
  height: 28px;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: bottom;
  padding-top: 35px;
}
.san-pham-section .flickity-prev-next-button {
  margin-top: 0 !important;
}

.section-title-container {
  margin-bottom: 0;
}

/* dich-vu-section */
.dich-vu-section .img-inner {
  border-radius: 15px;
}

/* du-an-section */
.list-du-an .post-item .box-image .image-cover {
  border-radius: 5px;
}

.post-item .box-image::before {
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
  background: -webkit-linear-gradient(
    left,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.3) 100%
  );
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.3) 100%
  );
  -webkit-transform: skewX(-25deg);
  transform: skewX(-25deg);
}

.post-item .box-image:hover::before {
  -webkit-animation: shine 0.75s;
  animation: shine 0.75s;
}

.list-du-an .post-item .box-text {
  padding: 0;
  margin-top: -45px;
}

.list-du-an .post-item .post-title {
  padding-top: 50px;
  font-size: 17px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 23px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.box-blog-post .is-divider {
  display: none;
}

/* cam-ket-section */

.cam-ket-section .icon-box {
  margin-bottom: 20px;
}

/* Footer */

#footer li {
  font-size: 85%;
}
.absolute-footer {
  display: none;
}
