body, html {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 15px;
    line-height: 22px;
    color: #333;
}
/* css search */
.filter-title,.dropdown-wrapper {
	display: none;
}
.filter-content {
	display: block !important;
}
select.filter-items {
	display: block !important;
}
.yith-wcan-filters {
	overflow: hidden;	
}
.filter-content {
	z-index: 100 !important;
}
.apply-filters {
		margin-left: 10px;
		display: inline-block !important;
		background-color: #a14336;
    border: 1px solid #a14336;
    font-size: 1.1em;
    border-radius: 5px;
    color: #fff;
	padding: 0px 10px;
	height:40px;
	line-height: 40px;
}

select.filter-items {
		padding-left: 10px !important;
		padding: 0.375rem 0.75rem;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #495057;
       background-color: #fff;
       background-clip: padding-box;
      border: 1px solid #ced4da;
      border-radius: 0.5rem;
      transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
/* 5 item trên 1 dòng */
.sw-post-wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* Khung bao item */
.sw-post-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sw-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

/* Khung ảnh giữ tỉ lệ 2:3 như bìa sách */
.sw-post-thumb {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 ratio → height = 150% của width */
    overflow: hidden;
    background: #f4f4f4;
}

.sw-post-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tiêu đề */
.sw-post-title {
    font-size: 16px;
    padding: 12px;
    margin: 0;
    text-align: left;
    font-weight: 600;
    line-height: 1.3;
}

.sw-post-title a {
    color: #333;
    text-decoration: none;
}
.sw-post-title a {
    line-height: 1.25;
    height: 55px;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sw-post-title a:hover {
    color: #0066ff;
}

/* === RESPONSIVE === */

/* Tablet ngang & nhỏ hơn (~ < 1024px): 4 cột */
@media (max-width: 1024px) {
    .sw-post-wrap {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Tablet dọc (~ < 768px): 3 cột */
@media (max-width: 768px) {
    .sw-post-wrap {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .sw-post-title {
        font-size: 15px;
        padding: 10px;
    }
}

/* Điện thoại (~ < 576px): 2 cột */
@media (max-width: 576px) {
    .sw-post-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sw-post-title {
        font-size: 14px;
        padding: 8px;
    }
}

/* Màn siêu nhỏ (~ < 380px): 1 cột */
@media (max-width: 380px) {
    .sw-post-wrap {
        grid-template-columns: 1fr;
    }
}