/**
 * Phonez — tiêu đề đồng bộ (widget, section UX Builder, title shortcode)
 * Flatsome: .section-title / .section-title-main / .section-title-{style}
 * Sidebar: .widget-title
 */

:root {
	--phonez-h-primary: #1e73be;
	--phonez-h-text: #222;
	--phonez-h-muted: #555;
	--phonez-h-divider: #e8ecf0;
	--phonez-h-accent-w: 3px;
	--phonez-h-bg: linear-gradient(90deg, rgba(30, 115, 190, 0.07) 0%, transparent 72%);
	--phonez-h-size-section: 1.0625rem; /* ~17px — block sản phẩm */
	--phonez-h-size-widget-title: 0.9375rem; /* ~15px — tiêu đề widget */
	--phonez-h-size-widget: 0.9375rem; /* ~15px — nội dung widget */
	--phonez-h-size-widget-meta: 0.875rem; /* giá / phụ */
	--phonez-h-size-link: 0.875rem;
}

/* Nhãn chung: thanh accent trái + nền nhạt */
.phonez-heading-label {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35em;
	margin: 0;
	padding: 10px 14px 10px 18px;
	border: none !important;
	background: var(--phonez-h-bg);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.35;
	color: var(--phonez-h-text) !important;
}

.phonez-heading-label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: var(--phonez-h-accent-w);
	border-radius: 0 2px 2px 0;
	background: var(--phonez-h-primary);
}

/* ─── Section Title (UX Builder: Title / title_with_cat) ─── */
.section-title-container {
	margin-bottom: 1.25em;
}

.section-title {
	align-items: center;
	gap: 12px;
	border: none !important;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--phonez-h-divider) !important;
}

/* Tắt gạch Flatsome (normal / bold / center) */
.section-title-normal,
.section-title-bold,
.section-title-bold-center,
.section-title-center,
.section-title-line {
	border: none !important;
}

.section-title b {
	display: none !important;
	flex: 0 !important;
}

.section-title .section-title-main {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35em;
	margin: 0 !important;
	padding: 10px 14px 10px 18px !important;
	border: none !important;
	border-bottom: none !important;
	background: var(--phonez-h-bg) !important;
	font-size: var(--phonez-h-size-section);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--phonez-h-text) !important;
}

.section-title .section-title-main::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: var(--phonez-h-accent-w);
	border-radius: 0 2px 2px 0;
	background: var(--phonez-h-primary);
}

.section-title .section-title-main .sub-title {
	display: block;
	width: 100%;
	font-size: 0.72em;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--phonez-h-muted);
}

.section-title-center,
.section-title-bold-center {
	justify-content: center;
}

.section-title-center .section-title-main,
.section-title-bold-center .section-title-main {
	text-align: center;
}

.section-title a {
	font-size: var(--phonez-h-size-link);
	font-weight: 600;
	color: var(--phonez-h-primary) !important;
	text-transform: none;
	white-space: nowrap;
}

.section-title a:hover {
	color: #155a94 !important;
}

/* Danh mục pill (title_with_cat) — không uppercase */
.section-title .hdevvn-show-cats {
	border: none !important;
	text-transform: none;
}

.section-title .hdevvn-show-cats li a {
	text-transform: none;
}

/* ─── Widget sidebar ─── */
.widget {
	font-size: var(--phonez-h-size-widget);
	line-height: 1.55;
	color: #333;
}

.widget .widget-title {
	position: relative;
	display: block;
	margin: 0;
	padding: 10px 10px 10px 14px;
	border: none !important;
	border-bottom: none !important;
	background: var(--phonez-h-bg);
	font-size: var(--phonez-h-size-widget-title) !important;
	line-height: 1.35;
}

.widget .textwidget,
.widget > ul:not(.product_list_widget),
.widget nav,
.widget form {
	font-size: var(--phonez-h-size-widget);
}

.widget label,
.widget input[type="search"],
.widget input[type="text"],
.widget button,
.widget .button {
	font-size: var(--phonez-h-size-widget);
}

.widget ul.menu > li > a,
.widget .recentcomments,
.widget li {
	font-size: var(--phonez-h-size-widget);
}

.widget .widget-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: var(--phonez-h-accent-w);
	border-radius: 0 2px 2px 0;
	background: var(--phonez-h-primary);
}

.widget .widget-title > span {
	display: block;
	padding: 0;
	margin: 0;
	border: none !important;
	font-size: inherit !important;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: inherit;
	text-transform: uppercase;
	color: var(--phonez-h-text) !important;
	background: none !important;
}

.widget .widget-title + .is-divider,
.widget > .is-divider.small {
	display: block !important;
	max-width: 100% !important;
	width: 100% !important;
	height: 1px !important;
	min-height: 0 !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: none !important;
	background: var(--phonez-h-divider) !important;
	opacity: 1 !important;
}

.widget ul.product_list_widget li a,
.widget .product_list_widget a {
	color: #155a94 !important;
	font-size: var(--phonez-h-size-widget) !important;
	font-weight: 600;
	line-height: 1.5;
}

.widget ul.product_list_widget li a:hover {
	color: var(--phonez-h-primary) !important;
}

.widget ul.product_list_widget li .amount,
.widget ul.product_list_widget li ins .amount {
	color: #c62828 !important;
	font-size: var(--phonez-h-size-widget-meta) !important;
	font-weight: 700;
}

.widget ul.product_list_widget li del .amount {
	color: #888 !important;
	font-size: 0.8125rem !important;
	font-weight: 500;
}

.widget ul.product_list_widget li {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--phonez-h-divider);
}

.widget ul.product_list_widget li:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
