/**
 * WELDHOME – Trang chi tiết sản phẩm.
 * Style mặc định tối thiểu — tự CSS theo class wh-product-* bên dưới.
 */

/* Scope toàn trang */
.wh-product-page .wh-product-header .rank-math-breadcrumb,
.wh-product-page .wh-product-header .breadcrumbs {
	/* .wh-product-header__breadcrumb-col */
}

/* Ví dụ: meta */
/* .wh-product-meta__row--brand { } */
/* .wh-product-meta__label { } */
/* .wh-product-short-desc { } */

/* Ví dụ: báo giá */
/* .wh-product-baogia__btn--quote { } */
/* .wh-product-baogia__btn--phone { } */

.wh-product-baogia__btn--phone .wh-product-baogia__icon {
	display: inline-block;
	width: 20px;
	height: auto;
	vertical-align: middle;
	margin-right: 6px;
	object-fit: contain;
	/* transition: filter 0.2s ease; */
}

/* Icon <img> SVG: không đổi fill được — dùng filter khi hover nút */
.wh-product-baogia__btn--phone:hover .wh-product-baogia__icon,
.wh-product-baogia__btn--phone:focus .wh-product-baogia__icon {
	filter: brightness(0) invert(1);
}

/* Nếu icon gốc đã sáng / nhiều màu, thử thay bằng: */
/* filter: invert(1) brightness(1.2); */

/* ── Tab SP: gạch dưới bằng ::before (kiểu Flatsome nav-line-grow), không dùng border-bottom ── */
.wh-product-page .wh-product-tabs.woocommerce-tabs {
	margin-top: 0;
}

.wh-product-page .wh-product-tabs .wh-product-tabs__nav.tabs.wc-tabs {
	margin: 0 28px;
	padding: 10px 0 0;
	margin-top: -31px;
	border-bottom: 1px solid #e4e4e4;
	margin-bottom: 40px;
}

.wh-product-page .wh-product-tabs .wh-product-tabs__nav > li,
.wh-product-page .wh-product-tabs .wh-product-tabs__tab {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: transparent !important;
	border: none !important;
}

/* Link tab — không viền dưới; gạch là ::before */
.wh-product-page .wh-product-tabs .wh-product-tabs__link {
	position: relative;
	display: block;
	padding: 10px 0;
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: hsl(0 0% 40% / 0.85) !important;
	text-decoration: none !important;
	text-transform: none !important;
	border: none !important;
	border-bottom: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	transition: color 0.2s ease, font-weight 0.2s ease;
}

/* Thanh vàng dưới tab — giống .nav-line-grow > li > a::before (Flatsome) */
.wh-product-page .product-footer .wh-product-tabs .wc-tabs > li > a.wh-product-tabs__link::before,
.wh-product-page .wh-product-tabs .wh-product-tabs__nav > li > a.wh-product-tabs__link::before {
	content: " " !important;
	display: block !important;
	position: absolute;
	left: 50%;
	bottom: 0;
	top: auto !important;
	height: 3px;
	width: 0;
	max-width: 100%;
	background-color: #fed640;
	opacity: 0;
	transform: translateX(-50%);
	transition: width 0.3s ease, opacity 0.3s ease;
	pointer-events: none;
}

.wh-product-page .wh-product-tabs .wh-product-tabs__nav > li.active > a.wh-product-tabs__link::before,
.wh-product-page .wh-product-tabs .wh-product-tabs__tab.active > a.wh-product-tabs__link::before,
.wh-product-page .wh-product-tabs .wh-product-tabs__nav > li > a.wh-product-tabs__link:hover::before {
	width: 100%;
	opacity: 1;
}

/* Nếu theme cũng gắn .nav-line-grow — đồng bộ màu thanh (override primary) */
.wh-product-page .wh-product-tabs .nav-line-grow > li > a.wh-product-tabs__link::before,
.wh-product-page .wh-product-tabs .nav-line > li > a.wh-product-tabs__link::before {
	background-color: #fed640 !important;
}

.wh-product-page .wh-product-tabs .wh-product-tabs__tab.active .wh-product-tabs__link,
.wh-product-page .wh-product-tabs .wh-product-tabs__tab.is-active .wh-product-tabs__link {
	color: #1a1a1a !important;
	font-weight: 700 !important;
}

.wh-product-page .wh-product-tabs .wh-product-tabs__link:hover {
	color: #333 !important;
}

.wh-product-page .wh-product-tabs .wh-product-tabs__tab.active .wh-product-tabs__link:hover {
	color: #1a1a1a !important;
}

/* Panel nội dung — hiển thị tab do Woo/Flatsome JS xử lý */
.wh-product-page .wh-product-tabs .tab-panels.wh-product-tabs__panels {
	padding-top: 20px;
	background: transparent;
}

/* Vùng nội dung trong tab custom */
.wh-product-page .wh-product-tab {
	font-size: 15px;
	line-height: 1.65;
}

/* ── Tab Thông tin: Xem thêm / Rút gọn (#tab-description) ── */
.wh-product-page #tab-description .wh-readmore {
	position: relative;
	margin-bottom: 8px;
}

.wh-product-page #tab-description .wh-readmore--collapsed .wh-readmore__scroller {
	max-height: 320px;
	overflow: hidden;
}

.wh-product-page #tab-description .wh-readmore--short .wh-readmore__scroller {
	max-height: none;
	overflow: visible;
}

.wh-product-page #tab-description .wh-readmore__fade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 52px;
	height: 72px;
	background: linear-gradient(to bottom, #fff0 0%, #fafafa 100%);
	pointer-events: none;
}

.wh-product-page #tab-description .wh-readmore--expanded .wh-readmore__fade,
.wh-product-page #tab-description .wh-readmore--short .wh-readmore__fade {
	display: none !important;
}

.wh-product-page #tab-description .wh-readmore__toggle.button.primary {
	display: block;
    width: 100%;
    max-width: 144px;
    height: 49px;
    line-height: 49px;
    margin: 18px auto 0;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fed640 !important;
    background-color: #fff !important;
    border: 1px solid #fed640 !important;
    border-radius: 2px;
    box-shadow: none !important;
    font-family: sans-serif;
}

.wh-product-page #tab-description .wh-readmore__toggle.button.primary:hover {
	color: #fff !important;
    background-color: #fed640 !important;
    border-color: #fed640 !important;
}

/* ── Đánh giá dưới tab (WooCommerce) ── */
.wh-product-page .wh-product-reviews-section {
	padding: 27px 34px 26px 31px;
	background-color: #fafafa;
	margin-top: 20px;
	border: none;
}


.wh-product-page .wh-product-reviews-section__head {
	margin-bottom: 20px;
}

.wh-product-page .wh-product-reviews-section__product-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1a1a;
	text-transform: uppercase;
	margin: 0 0 6px;
}

.wh-product-page .wh-product-reviews-section__count {
	font-size: 14px;
	color: #666;
}

/* Nút toggle – viền đôi đen/trắng (theo mẫu) */
.wh-product-page .wh-product-reviews-section__cta {
	display: inline-block;
	margin: 0;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff !important;
	background: #000 !important;
	border: 2px solid #fff !important;
	border-radius: 0 !important;
	box-shadow: 0 0 0 1px #000, 0 0 0 3px #fff !important;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}



.wh-product-page .wh-product-reviews-section__cta {
	font-family: sans-serif;
    min-width: 217px;
    height: 49px;
    line-height: 49px;
    font-size: 16px !important;
    padding: 0;
    font-weight: 500 !important;
    background-color: #fed640 !important;
    box-sizing: box;
    box-shadow: none !important;
}

/* Panel đánh giá – ẩn mặc định, bật bằng toggle */
.wh-product-page .wh-product-reviews-section__panel[hidden] {
	display: none !important;
}

.wh-product-page .wh-product-reviews-section.is-reviews-open .wh-product-reviews-section__panel {
	display: block;
}

.wh-product-page .wh-product-reviews-section .woocommerce-Reviews {
	margin-top: 8px;
}

.wh-product-page .wh-product-reviews-section .woocommerce-Reviews-title {
	font-size: 16px;
	font-weight: 700;
	margin: 20px 0 12px;
}

.wh-product-page .wh-product-reviews-section #review_form_wrapper {
	margin-bottom: 24px;
}

.wh-product-page .wh-product-reviews-section #review_form {
	display: block;
}
