/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.vw-pmeta { margin-bottom: 15px; }
 
/* Dòng sao + đánh giá + đã bán */
.vw-pmeta__top {
  display: flex !important; /* Đè layout mặc định của Flatsome */
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #666;
}
.vw-stars {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 2px;
}
.vw-stars::before { content: "★★★★★"; color: #ddd; }   /* Lớp sao xám */
.vw-stars::after {                                      /* Lớp sao vàng, cắt theo % */
  content: "★★★★★";
  color: #f5a623;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--vw-rate, 0%);
  overflow: hidden;
  white-space: nowrap;
}
.vw-pmeta__sep { width: 1px; height: 14px; background: #ccc; }
 
/* Giá */
.vw-pmeta__price {
  display: flex !important;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #e41e26;
}
.vw-pmeta__price .woocommerce-Price-amount { color: inherit; }
.vw-pmeta__price ins { order: -1; text-decoration: none; }   /* Giá sale lên trước */
.vw-pmeta__price del { font-size: 16px; font-weight: 400; color: #999; }
.vw-pmeta__price del .woocommerce-Price-amount { color: #999; }
 
/* Dòng VAT */
.vw-pmeta__vat { margin-top: 2px; font-size: 12px; color: #999; }
 
/* Tồn kho: chấm tròn tự lấy màu chữ */
.vw-pmeta__stock {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}
.vw-pmeta__stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.vw-pmeta__stock.is-in        { color: #22a55b; }
.vw-pmeta__stock.is-out       { color: #e41e26; }
.vw-pmeta__stock.is-backorder { color: #f5a623; }
 
/* ===== 2. Bullet mô tả ngắn ===== */
.product-short-description ul { margin: 15px 0 0 18px; }
.product-short-description li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}
.product-short-description li strong { color: #111; }
 
/* ===== 3. Danh mục + Thương hiệu ===== */
.vw-pterms {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee; /* Đường kẻ ngăn cách */
  font-size: 14px;
  line-height: 1.7;
  color: #666;
}
.vw-pterms__label { margin-right: 4px; }
.vw-pterms a,
.vw-pterms__text { color: #e41e26; }
.vw-pterms a:hover { text-decoration: underline; }
.vw-pterms__sep { margin: 0 4px; color: #ccc; }

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/* Khung bar: cố định đáy màn hình */
.vw-sticky-bar {
	position: fixed !important;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	z-index: 999;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}

/* Triệt tiêu padding/margin mặc định của Section và Row trong Block */
.vw-sticky-bar .section,
.vw-sticky-bar .section-content {
	margin: 0 !important;
	padding: 0 !important;
	height:65px;
	width: 100%;
}
.vw-sticky-bar .row {
	margin: 0 !important;
	max-width: 100% !important;
	align-items: stretch;
}

/* Mỗi cột cao bằng nhau, nội dung căn giữa dọc */
.vw-sticky-bar .col {
	display: flex !important;
	padding: 0 !important;
	margin: 0 !important;
	padding-bottom: 0 !important;
}
.vw-sticky-bar .col-inner {
	display: flex !important;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
}

/* Đường kẻ phân cách giữa các cột */
.vw-sticky-bar .col + .col { border-left: 1px solid rgba(255,255,255,.35); }

/* Chừa chỗ cuối trang để bar không che footer */
body { padding-bottom: 60px; }

/* Đẩy nút back-to-top lên trên bar */
#top-link { bottom: 80px !important; }

/* Mobile */
@media (max-width: 549px) {
	.vw-sticky-bar a { font-size: 13px !important; padding: 12px 6px !important; gap: 6px !important; }
	body { padding-bottom: 56px; }
	#top-link { bottom: 70px !important; }
	.vw-sticky-bar .section,
.vw-sticky-bar .section-content {
	height:90px;
	width: 100%;
}
}