/*
Theme Name:   Flatsome Child
Theme URI:    http://flatsome.uxthemes.com
Description:  Child theme for Flatsome
Author:       HomePrint
Author URI:   https://uxthemes.com
Template:     flatsome
Version:      1.0.0
Text Domain:  flatsome-child
*/

/* ===== Thêm CSS tùy chỉnh của bạn bên dưới ===== */

.tl1 {
  margin-bottom: 0px !important;
}
.price .amount {
  color: #5e310a;
}
.price.price-contact,
.price-contact {
  color: #5e310a;
  font-weight: bold;
  font-size: 18px;
}
.post-title,
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 45px;
  font-size: 16px;
  color: #814008;
}
.product-title a {
  font-weight: bold;
  font-size: 16px;
  color: #814008;
}

.bo img {
  border-radius: 10px;
}
.product-small.box,
.box-blog-post {
  background: #fff;
  position: relative;
  box-shadow: rgb(60 64 67 / 10%) 0px 1px 2px 0px,
    rgb(60 64 67 / 15%) 0px 2px 6px 2px;
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #f2f2f2;
}
.product-small.box img,
.box-blog-post img {
  border-radius: 10px;
}

/* ===== Mô tả danh mục: nút Xem thêm / Thu gọn ===== */
.cat-desc-wrap {
  margin-top: 30px;
}
.cat-desc-content {
  position: relative;
  max-height: 140px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
/* Lớp mờ dần ở đáy khi đang thu gọn */
.cat-desc-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cat-desc-wrap.is-open .cat-desc-content {
  max-height: none;
}
.cat-desc-wrap.is-open .cat-desc-content::after {
  opacity: 0;
}
.cat-desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
  color: #814008;
}
.cat-desc-toggle:hover {
  color: #5e310a;
}
.cat-desc-toggle-icon {
  transition: transform 0.3s ease;
}
.cat-desc-wrap.is-open .cat-desc-toggle-icon {
  transform: rotate(180deg);
}
/* Đổi nhãn nút theo trạng thái */
.cat-desc-toggle-label-less {
  display: none;
}
.cat-desc-wrap.is-open .cat-desc-toggle-label-more {
  display: none;
}
.cat-desc-wrap.is-open .cat-desc-toggle-label-less {
  display: inline;
}
.price-wrapper {
    margin-top: 15px;
}