/*
 Theme Name:   EmallShop Child Theme
 Theme URI:    https://demo.presslayouts.com/emallshop/
 Description:  EmallShop Responsive Multipurpose WooCommerce Child Theme  
 Author:       PressLayouts Team
 Author URI:   https://presslayouts.com/
 Template:     emallshop
 Version:      1.1.0
 Text Domain:  emallshop-child
*/

/* Theme customization starts here
------------------------------------------------------- */
.woocommerce div.product form.cart .quantity {
    display: none !important;
}
.featured-posts-wrapper {
  margin: 20px 0;
}

.featured-post {
  margin-bottom: 20px;
  text-align: left;
}

.featured-post-thumb {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.featured-post-title {
  font-size: 20px;
  margin: 10px 0;
}
.featured-post-title a {
    color: #000;
}
.featured-post-excerpt {
  color: #000;
}

.small-post {
  display: flex;
  align-items: center;
  margin-bottom: 1px;
}

.small-post a {
  text-decoration: none;
  color: #000;
}

.small-post-thumb {
  width: 90px;
  height: 70px;
  object-fit: cover;
  margin-right: 12px;
  border-radius: 4px;
  flex-shrink: 0; /* giữ cố định kích thước ảnh */
}

.small-post-content {
  flex: 1;
}

.small-post-title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
  color: #fff;
}
/* container chính */
.title-post-home{
  display: flex;
  align-items: center;         /* căn giữa theo chiều dọc */
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px 0;
  border-bottom: 1px solid #5d3600;
  position: relative;
}

/* reset h2 để tránh margin mặc định đẩy layout */
.title-post-home h2{
  margin: 0;
  line-height: 1;
  flex: 0 0 auto;              /* không cho h2 co giãn */
}

/* nút đỏ (tiêu đề) */
.title-post-home h2 a{
  display: inline-block;
  position: relative;
  z-index: 2;                  /* đảm bảo hiện trên đường border */
  background: linear-gradient(90deg, #5d3600 0%, #ab7b38 100%) !important;
  padding: 8px 20px !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-top: dotted;
  white-space: nowrap;         /* không xuống dòng */
  box-shadow: none;
  color: #fff !important;
}

/* link "Xem thêm" */
.title-post-home .more{
  flex: 0 0 auto;
  margin-left: 12px;
  text-decoration: none;
  color: #bfbfbf;
  font-size: 14px;
  align-self: center;
}

/* hover hiệu ứng */
.title-post-home .more:hover{ color: #b50000; }
.title-post-home h2 a:hover{ filter: brightness(1.05); }

/* Nếu theme vẫn can thiệp (bật fallback mạnh hơn) */
.title-post-home h2 a,
.title-post-home .more {
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.text-chemgio h2 {
    margin: 0 !important;
}
/* Container ngang trên desktop, dọc trên mobile */
.featured-side-wrapper{
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: nowrap;        /* không xuống dòng trên desktop */
  box-sizing: border-box;
  width: 100%;
}

/* Bên trái giữ bài featured */
.featured-side-left{
  flex: 0 0 65%;            /* cố định chiếm ~65% */
  max-width: 65%;
  box-sizing: border-box;
}

/* Bên phải danh sách bài nhỏ */
.featured-side-right{
  flex: 0 0 35%;            /* cố định chiếm ~35% */
  max-width: 35%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* featured post */
.featured-post-thumb{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.featured-post-title{ margin: 10px 0 6px; font-size: 20px; line-height: 1.2; }
.featured-post-excerpt{ color: #555; }

/* small post (right column) */
.small-post{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.small-post-thumb{
  width: 120px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 4px;
}
.small-post-content{ flex: 1; }
.small-post-title{
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  /* nếu muốn giới hạn 2 dòng có dấu ... */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Responsive: chuyển thành cột trên màn hình nhỏ --- */
@media (max-width: 900px){
  .featured-side-wrapper{
    flex-direction: column;
  }
  .featured-side-left,
  .featured-side-right{
    flex: 1 1 100%;
    max-width: 100%;
  }
  .featured-side-right{
    margin-top: 12px;
  }
}
.widget_text {
    border: 0 !important;
}