/**
 * Elementor – CSS chung (override / tùy chỉnh)
 */

/* Excerpt: giới hạn 2 dòng */
.elementor-post__excerpt p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Tên sản phẩm / post title: giới hạn 2 dòng */
.elementor-post__title,
.woocommerce-loop-product__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* ==========================================================================
   Bảng thuộc tính (variations) trên trang sản phẩm
   - Label 1 dòng, các tuỳ chọn 1 dòng phía dưới
   - Bỏ màu nền của hàng, ô trong bảng
   ========================================================================== */
   table.variations {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

table.variations tr {
	display: block;
	background: transparent !important;
}

table.variations th,
table.variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent !important;
}

table.variations th.label {
	margin-bottom: 8px;
	font-weight: 600;
	text-align: left;
}

table.variations .vdc-variation-buttons {
	margin-bottom: 4px;
}

table.variations .vdc-variation-buttons-list {
	display: flex;
	flex-wrap: wrap;
}

table.variations .vdc-variation-btn {
	padding: 8px 18px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

table.variations .vdc-variation-btn.active,
table.variations .vdc-variation-btn[aria-pressed="true"] {
	border-color: #f44336;
	color: #f44336;
	background: #fff5f5;
}

/* ==========================================================================
   Tuỳ chỉnh icon sao đánh giá WooCommerce dùng SVG riêng (size ~14px)
   ========================================================================== */
.woocommerce .star-rating,
.woocommerce .star-rating span {
	position: relative;
	display: inline-block;
	font-size: 0;
	line-height: 0;
	width: 70px;  /* 5 sao x 14px */
	height: 14px;
}

.woocommerce .star-rating {
	overflow: hidden;
	background: none;
}

.woocommerce .star-rating span {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	background-image: url("/wp-content/themes/hello-elementor-child/assets/icons/rating-star.svg");
	background-repeat: repeat-x;
	background-size: 14px 14px;
	filter: none; /* sao được đánh giá màu cam */
	z-index: 1;
}

.woocommerce .star-rating::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("/wp-content/themes/hello-elementor-child/assets/icons/rating-star.svg");
	background-repeat: repeat-x;
	background-size: 14px 14px;
	filter: grayscale(1);
	opacity: 0.3; /* sao nền xám nhạt */
	z-index: 0;
}

.list-bank img {
	width: 70px;
    height: 30px;
    object-fit: cover;
}

.vdc-da-xem .vdc-product-archive{
	padding: 0 !important;
}