/* ==========================================================================
   Asian Dental Lab – giao diện
   Màu lấy theo logo: xanh ngọc, navy, cam.
   ========================================================================== */

:root {
	--adl-teal: #1a9ea3;
	--adl-teal-dark: #0b6f75;
	--adl-teal-soft: #e3f3f3;
	--adl-navy: #17365f;
	--adl-navy-deep: #0f2644;
	--adl-orange: #f39a2b;
	--adl-orange-dark: #d9801a;
	--adl-bg-alt: #f2f8f8;
	--adl-text: #3b4a5c;
	--adl-muted: #6b7a8c;
	--adl-border: #dde7ea;
	--adl-radius: 14px;
	--adl-radius-lg: 22px;
	--adl-shadow: 0 10px 30px rgba(23, 54, 95, 0.08);
	--adl-shadow-hover: 0 18px 40px rgba(23, 54, 95, 0.14);
	--adl-max: 1200px;
}

html { scroll-behavior: smooth; }
body { color: var(--adl-text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4, h5, h6) { color: var(--adl-navy); letter-spacing: -0.01em; }

/* ---- Icon dạng mask (màu theo currentColor) ---- */
.adl-ico {
	display: inline-block;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask: var(--adl-ico) center / contain no-repeat;
	mask: var(--adl-ico) center / contain no-repeat;
	vertical-align: -0.125em;
}

/* ==========================================================================
   Khung section (dùng với Spectra Container)
   ========================================================================== */

.entry-content > .adl-section,
.adl-section {
	padding: clamp(56px, 7vw, 96px) 20px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	position: relative;
	overflow: hidden;
}
.adl-section.wp-block-spectra-container { display: block; }
.adl-section--alt { background: var(--adl-bg-alt); }
.adl-section--soft { background: linear-gradient(180deg, #fff 0%, var(--adl-bg-alt) 100%); }
.adl-section--dark { background: var(--adl-navy); color: #dbe6f2; }
.adl-section--dark :where(h1, h2, h3, h4) { color: #fff; }
.adl-section--tight { padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(36px, 4vw, 56px); }

.adl-inner {
	max-width: var(--adl-max);
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100%;
}
.adl-inner--narrow { max-width: 860px; }

.adl-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px) !important; align-items: center !important; }
.adl-head--left { text-align: left; margin-left: 0 !important; align-items: flex-start !important; }

.adl-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--adl-orange);
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 10px !important;
}
.adl-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.adl-head:not(.adl-head--left) .adl-eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.adl-title { font-size: clamp(1.7rem, 3.2vw, 2.45rem) !important; line-height: 1.25 !important; margin: 0 0 14px !important; font-weight: 700 !important; }
.adl-lead { font-size: 1.06rem; color: var(--adl-muted); margin: 0 !important; line-height: 1.7; }
.adl-section--dark .adl-lead { color: #b9c9dc; }

/* ---- Lưới ---- */
.adl-grid { display: grid !important; gap: 24px; align-items: stretch !important; }
.adl-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adl-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.adl-split { display: grid !important; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center !important; }
.adl-split--rev > :first-child { order: 2; }

@media (max-width: 1024px) {
	.adl-grid-4, .adl-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.adl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.adl-split { grid-template-columns: 1fr; }
	.adl-split--rev > :first-child { order: 0; }
}
@media (max-width: 600px) {
	.adl-grid-2, .adl-grid-3, .adl-grid-4 { grid-template-columns: 1fr; }
	.adl-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Nút ---- */
.wp-block-spectra-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.adl-section .wp-block-spectra-button,
.adl-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	padding: 14px 26px !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	font-size: 0.98rem !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	border: 2px solid var(--adl-teal) !important;
	background: var(--adl-teal) !important;
	color: #fff !important;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.adl-section .wp-block-spectra-button:hover,
.adl-btn:hover { background: var(--adl-teal-dark) !important; border-color: var(--adl-teal-dark) !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 111, 117, 0.25); color: #fff !important; }
.adl-section .wp-block-spectra-button svg { width: 1em; height: 1em; }
.adl-section .adl-btn--accent.wp-block-spectra-button, .adl-btn--accent { background: var(--adl-orange) !important; border-color: var(--adl-orange) !important; }
.adl-section .adl-btn--accent.wp-block-spectra-button:hover, .adl-btn--accent:hover { background: var(--adl-orange-dark) !important; border-color: var(--adl-orange-dark) !important; box-shadow: 0 10px 22px rgba(243, 154, 43, 0.3); }
.adl-section .adl-btn--ghost.wp-block-spectra-button { background: transparent !important; border-color: rgba(255, 255, 255, 0.7) !important; }
.adl-section .adl-btn--ghost.wp-block-spectra-button:hover { background: #fff !important; color: var(--adl-navy) !important; border-color: #fff !important; }
.adl-section .adl-btn--outline.wp-block-spectra-button, .adl-btn--outline { background: transparent !important; color: var(--adl-teal-dark) !important; }
.adl-section .adl-btn--outline.wp-block-spectra-button:hover, .adl-btn--outline:hover { background: var(--adl-teal) !important; color: #fff !important; }
.adl-link-more { font-weight: 600; color: var(--adl-teal-dark) !important; text-decoration: none !important; }

/* ==========================================================================
   Hero trang chủ
   ========================================================================== */

.adl-hero {
	background:
		radial-gradient(circle at 85% 20%, rgba(26, 158, 163, 0.45) 0, transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(243, 154, 43, 0.18) 0, transparent 40%),
		linear-gradient(125deg, var(--adl-teal-dark) 0%, var(--adl-navy) 70%);
	color: #e6eff8;
	padding-top: clamp(64px, 8vw, 110px) !important;
	padding-bottom: clamp(72px, 9vw, 120px) !important;
}
.adl-hero h1 { color: #fff !important; font-size: clamp(2.1rem, 4.6vw, 3.5rem) !important; line-height: 1.15 !important; font-weight: 700 !important; margin: 0 0 18px !important; }
.adl-hero h1 em { font-style: normal; color: var(--adl-orange); }
.adl-hero .adl-hero__text { font-size: 1.12rem; line-height: 1.75; color: #cfdeee; margin: 0 0 30px !important; max-width: 560px; }
.adl-hero .adl-eyebrow { color: var(--adl-orange); }
.adl-hero__media img { border-radius: var(--adl-radius-lg); box-shadow: 0 30px 60px rgba(4, 20, 40, 0.35); width: 100%; height: auto; }
.adl-hero__media { position: relative; }
.adl-hero__badge {
	position: absolute;
	left: -18px;
	bottom: 28px;
	background: #fff;
	color: var(--adl-navy);
	border-radius: var(--adl-radius);
	padding: 14px 18px !important;
	box-shadow: var(--adl-shadow-hover);
	font-weight: 600;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 12px !important;
	max-width: 260px;
	margin: 0 !important;
}
.adl-hero__badge .wp-block-spectra-icon { color: var(--adl-orange); font-size: 26px; }
.adl-hero__badge .wp-block-spectra-icon svg { width: 28px; height: 28px; }
.adl-hero__badge p { margin: 0 !important; font-size: 0.9rem; line-height: 1.35; }
.adl-hero__checks { list-style: none; margin: 0 0 30px !important; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.adl-hero__checks li { display: flex; align-items: center; gap: 8px; color: #e6eff8; font-weight: 500; }
.adl-hero__checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--adl-orange) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z'/%3E%3C/svg%3E"); }
@media (max-width: 768px) {
	.adl-hero__badge { left: 12px; bottom: 12px; }
}

/* ---- Tiêu đề trang con ---- */
.adl-page-hero {
	background:
		radial-gradient(circle at 90% 10%, rgba(26, 158, 163, 0.5) 0, transparent 50%),
		linear-gradient(125deg, var(--adl-teal-dark) 0%, var(--adl-navy) 75%);
	color: #cfdeee;
	padding-top: clamp(48px, 6vw, 80px) !important;
	padding-bottom: clamp(48px, 6vw, 80px) !important;
	text-align: center;
}
.adl-page-hero h1 { color: #fff !important; font-size: clamp(1.9rem, 4vw, 2.8rem) !important; margin: 0 0 12px !important; font-weight: 700 !important; }
.adl-page-hero p { margin: 0 auto !important; max-width: 720px; font-size: 1.05rem; }
.adl-page-hero .adl-inner { align-items: center !important; }

/* ==========================================================================
   Thẻ (card)
   ========================================================================== */

.adl-card {
	background: #fff;
	border: 1px solid var(--adl-border);
	border-radius: var(--adl-radius);
	padding: 30px 26px !important;
	box-shadow: var(--adl-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	gap: 12px !important;
	height: 100%;
}
.adl-card:hover { transform: translateY(-4px); box-shadow: var(--adl-shadow-hover); border-color: rgba(26, 158, 163, 0.4); }
.adl-card h3 { font-size: 1.15rem !important; margin: 0 !important; line-height: 1.35 !important; }
.adl-card p { margin: 0 !important; color: var(--adl-muted); line-height: 1.65; }
.adl-card .wp-block-spectra-icon {
	width: 58px;
	height: 58px;
	border-radius: 16px;
	background: var(--adl-teal-soft);
	color: var(--adl-teal-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
}
.adl-card .wp-block-spectra-icon svg { width: 26px; height: 26px; }
.adl-card:hover .wp-block-spectra-icon { background: var(--adl-teal); color: #fff; }
.adl-card--center { text-align: center; align-items: center !important; }
.adl-section--dark .adl-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.adl-section--dark .adl-card p { color: #b9c9dc; }
.adl-section--dark .adl-card .wp-block-spectra-icon { background: rgba(243, 154, 43, 0.15); color: var(--adl-orange); }

/* ---- Thẻ danh mục sản phẩm (có ảnh) ---- */
.adl-cat {
	position: relative;
	border-radius: var(--adl-radius-lg);
	overflow: hidden;
	min-height: 360px;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	padding: 28px !important;
	color: #fff;
	text-decoration: none !important;
	box-shadow: var(--adl-shadow);
	isolation: isolate;
	gap: 8px !important;
}
.adl-cat > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; z-index: -2; }
.adl-cat > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.adl-cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 38, 68, 0) 25%, rgba(15, 38, 68, 0.88) 100%); }
.adl-cat:hover > .wp-block-image img { transform: scale(1.06); }
.adl-cat h3 { color: #fff !important; margin: 0 !important; font-size: 1.35rem !important; }
.adl-cat p { margin: 0 !important; color: #d6e2ef; font-size: 0.95rem; }
.adl-cat .adl-cat__more { color: var(--adl-orange); font-weight: 600; }

/* ---- Ảnh bo góc ---- */
.adl-img-round img { border-radius: var(--adl-radius-lg); box-shadow: var(--adl-shadow-hover); width: 100%; height: auto; }

/* ---- Danh sách dấu tick ---- */
.adl-checklist { list-style: none; padding: 0 !important; margin: 0 0 26px !important; display: grid; gap: 12px; }
.adl-checklist li { position: relative; padding-left: 34px; line-height: 1.6; }
.adl-checklist li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--adl-teal-soft) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%230b6f75' d='M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z'/%3E%3C/svg%3E"); }
.adl-checklist strong { color: var(--adl-navy); }

/* ---- Số liệu ---- */
.adl-stats { background: linear-gradient(120deg, var(--adl-teal-dark), var(--adl-navy)); }
.adl-stat { text-align: center; align-items: center !important; gap: 4px !important; }
.adl-stat__num { font-size: clamp(2.2rem, 4vw, 3rem) !important; font-weight: 700 !important; color: #fff !important; line-height: 1.1 !important; margin: 0 !important; }
.adl-stat__num span, .adl-stat__num em { color: var(--adl-orange); font-style: normal; }
.adl-stat__label { color: #cfe0ee; margin: 0 !important; font-weight: 500; }

/* ---- Quy trình ---- */
.adl-steps { counter-reset: adl-step; }
.adl-step { counter-increment: adl-step; position: relative; text-align: center; align-items: center !important; gap: 10px !important; padding: 0 8px !important; }
.adl-step::before {
	content: counter(adl-step, decimal-leading-zero);
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #fff;
	color: var(--adl-teal-dark);
	border: 2px solid var(--adl-teal);
	font-weight: 700;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 8px var(--adl-teal-soft);
	margin-bottom: 10px;
	position: relative;
	z-index: 1;
}
.adl-step:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: calc(50% + 44px); width: calc(100% - 88px + 24px); border-top: 2px dashed rgba(26, 158, 163, 0.45); }
.adl-step h3 { font-size: 1.05rem !important; margin: 0 !important; }
.adl-step p { margin: 0 !important; color: var(--adl-muted); font-size: 0.94rem; line-height: 1.6; }
@media (max-width: 1024px) { .adl-step::after { display: none; } }

/* ---- Lời nhận xét ---- */
.adl-quote { position: relative; }
.adl-quote::before { content: "\201C"; position: absolute; top: 6px; right: 22px; font-size: 5rem; line-height: 1; color: var(--adl-teal-soft); font-family: Georgia, serif; }
.adl-quote .adl-quote__who { color: var(--adl-navy); font-weight: 700; }
.adl-quote .adl-quote__role { color: var(--adl-muted); font-size: 0.9rem; }

/* ---- Logo đối tác ---- */
.adl-partner { border: 1px dashed var(--adl-border); border-radius: var(--adl-radius); min-height: 96px; display: flex !important; align-items: center !important; justify-content: center !important; color: var(--adl-muted); font-weight: 600; background: #fff; text-align: center; padding: 16px !important; }

/* ==========================================================================
   FAQ (Spectra Accordion)
   ========================================================================== */

.adl-faq.wp-block-spectra-accordion { gap: 14px !important; }
.adl-faq .wp-block-spectra-accordion-child-item {
	background: #fff;
	border: 1px solid var(--adl-border);
	border-radius: var(--adl-radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.adl-faq .wp-block-spectra-accordion-child-item:hover { box-shadow: var(--adl-shadow); }
.adl-faq .wp-block-spectra-accordion-child-header {
	width: 100%;
	padding: 20px 24px !important;
	background: transparent !important;
	color: var(--adl-navy) !important;
	font-weight: 600 !important;
	font-size: 1.04rem !important;
	justify-content: space-between !important;
	text-align: left;
	border: 0 !important;
	cursor: pointer;
	gap: 16px;
}
.adl-faq .wp-block-spectra-accordion-child-header:hover,
.adl-faq .wp-block-spectra-accordion-child-header:focus { color: var(--adl-teal-dark) !important; }
.adl-faq .wp-block-spectra-accordion-child-header svg { color: var(--adl-teal); width: 14px; height: 14px; }
.adl-faq .wp-block-spectra-accordion-child-details { padding: 0 24px 22px !important; color: var(--adl-muted); line-height: 1.7; }
.adl-faq .wp-block-spectra-accordion-child-details p { margin: 0 !important; }

/* ==========================================================================
   Khối tư vấn / form
   ========================================================================== */

.adl-cta {
	background:
		radial-gradient(circle at 0% 0%, rgba(243, 154, 43, 0.25) 0, transparent 40%),
		linear-gradient(120deg, var(--adl-teal) 0%, var(--adl-teal-dark) 100%);
	color: #e8f6f6;
}
.adl-cta h2 { color: #fff !important; }
.adl-cta .adl-lead { color: #d6f0f0; }
.adl-cta .adl-eyebrow { color: #ffd39a; }

.adl-form { margin: 0; }
.adl-form__fields { display: flex; flex-wrap: wrap; gap: 12px; }
.adl-form__field { flex: 1 1 220px; margin: 0; }
.adl-form__field--wide { flex-basis: 100%; }
.adl-form input[type="text"],
.adl-form input[type="tel"],
.adl-form input[type="email"],
.adl-form textarea {
	width: 100%;
	border: 1px solid var(--adl-border);
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 1rem;
	background: #fff;
	color: var(--adl-navy);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.adl-form input:focus,
.adl-form textarea:focus { border-color: var(--adl-teal); box-shadow: 0 0 0 3px rgba(26, 158, 163, 0.18); outline: none; }
.adl-form__submit {
	flex: 0 0 auto;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 14px 28px !important;
	background: var(--adl-orange) !important;
	color: #fff !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.adl-form__submit:hover { background: var(--adl-orange-dark) !important; transform: translateY(-1px); }
.adl-form--full .adl-form__submit { min-width: 200px; }
.adl-form__note { font-size: 0.85rem; margin: 10px 0 0 !important; opacity: 0.85; }
.adl-form__msg { padding: 12px 16px; border-radius: 10px; margin: 0 0 14px !important; font-weight: 500; }
.adl-form__msg--ok { background: #e7f7ee; color: #17663a; }
.adl-form__msg--error { background: #fdecec; color: #a32121; }
.adl-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.adl-form-card { background: #fff; border-radius: var(--adl-radius-lg); padding: clamp(24px, 3vw, 40px) !important; box-shadow: var(--adl-shadow-hover); color: var(--adl-text); }

/* ---- Thông tin liên hệ ---- */
.adl-contact-list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 14px; }
.adl-contact-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; margin: 0; }
.adl-contact-list .adl-ico { margin-top: 0.25em; color: var(--adl-teal); }
.adl-contact-list a { color: inherit; text-decoration: none; }
.adl-contact-list a:hover { color: var(--adl-teal); }
.adl-contact-list__name span:last-child { font-weight: 700; color: var(--adl-navy); }

.adl-map iframe, .adl-map .wp-block-spectra-google-map { border-radius: var(--adl-radius-lg); overflow: hidden; }
.adl-map { border-radius: var(--adl-radius-lg); overflow: hidden; box-shadow: var(--adl-shadow); }

/* ==========================================================================
   Tin tức (Latest Posts) & bài viết
   ========================================================================== */

.adl-news.wp-block-latest-posts { margin: 0 !important; padding: 0 !important; gap: 26px; }
.adl-news.wp-block-latest-posts.is-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adl-news.wp-block-latest-posts.is-grid li { width: auto !important; margin: 0 !important; }
.adl-news li {
	background: #fff;
	border-radius: var(--adl-radius);
	overflow: hidden;
	box-shadow: var(--adl-shadow);
	border: 1px solid var(--adl-border);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.adl-news li:hover { transform: translateY(-4px); box-shadow: var(--adl-shadow-hover); }
.adl-news .wp-block-latest-posts__featured-image { margin: 0 !important; aspect-ratio: 16 / 9; overflow: hidden; }
.adl-news .wp-block-latest-posts__featured-image img { width: 100%; height: 100%; object-fit: cover; }
.adl-news .wp-block-latest-posts__post-title { display: block; padding: 20px 22px 0; font-weight: 700; color: var(--adl-navy); font-size: 1.08rem; line-height: 1.45; text-decoration: none !important; }
.adl-news .wp-block-latest-posts__post-title:hover { color: var(--adl-teal-dark); }
.adl-news .wp-block-latest-posts__post-date { padding: 8px 22px 0; color: var(--adl-orange); font-size: 0.85rem; font-weight: 600; }
.adl-news .wp-block-latest-posts__post-excerpt { padding: 8px 22px 22px; margin: 0 !important; color: var(--adl-muted); font-size: 0.95rem; line-height: 1.65; }
@media (max-width: 1024px) { .adl-news.wp-block-latest-posts.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .adl-news.wp-block-latest-posts.is-grid { grid-template-columns: 1fr; } }

.single-post .entry-content { font-size: 1.05rem; line-height: 1.8; }
.single-post .entry-content h2 { font-size: 1.5rem; margin-top: 1.6em; }
.single-post .entry-content h3 { font-size: 1.25rem; margin-top: 1.4em; }

/* Trang nội dung (chính sách…) */
.adl-prose { font-size: 1.03rem; line-height: 1.8; }
.adl-prose h2 { font-size: 1.4rem !important; margin: 1.8em 0 0.6em !important; }
.adl-prose h2:first-child { margin-top: 0 !important; }
.adl-prose ul, .adl-prose ol { margin: 0 0 1.2em 1.2em; }
.adl-prose li { margin-bottom: 0.4em; }
.adl-note { background: var(--adl-bg-alt); border-left: 4px solid var(--adl-teal); border-radius: 0 var(--adl-radius) var(--adl-radius) 0; padding: 18px 22px !important; }

/* ==========================================================================
   Header (Astra)
   ========================================================================== */

.ast-above-header-bar { font-size: 0.86rem; }
.adl-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.adl-topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.adl-topbar__item .adl-ico { color: var(--adl-orange); }
.adl-topbar a { color: inherit !important; text-decoration: none; }
.adl-topbar a:hover { color: var(--adl-orange) !important; }
@media (max-width: 1100px) { .adl-topbar__item--addr { display: none; } }

.adl-warranty-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.adl-warranty-link .adl-ico { color: var(--adl-orange); }
.adl-warranty-link:hover { background: #fff; color: var(--adl-navy) !important; }
.ast-mobile-popup-content .adl-warranty-link,
.ast-mobile-header-content .adl-warranty-link { color: var(--adl-navy) !important; border-color: var(--adl-border); }

#masthead .main-header-bar { transition: box-shadow 0.25s ease; }
#masthead.adl-scrolled .main-header-bar { box-shadow: 0 6px 24px rgba(23, 54, 95, 0.1); }
.main-header-menu > .menu-item > .menu-link { font-weight: 600; }
.ast-builder-menu-1 .menu-item > .sub-menu { border-radius: 0 0 12px 12px; border-top: 3px solid var(--adl-teal) !important; box-shadow: var(--adl-shadow-hover); }
.ast-header-button-1 .ast-custom-button { border-radius: 999px; box-shadow: 0 8px 18px rgba(243, 154, 43, 0.28); display: inline-flex; align-items: center; gap: 8px; }
.ast-header-button-1 .ast-custom-button::before { content: ""; width: 1em; height: 1em; background-color: currentColor; -webkit-mask: var(--adl-ico) center / contain no-repeat; mask: var(--adl-ico) center / contain no-repeat; }
.ast-header-button-1 .ast-custom-button { --adl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z'/%3E%3C/svg%3E"); }

/* ==========================================================================
   Footer (Astra)
   ========================================================================== */

.site-footer { font-size: 0.95rem; }
.site-primary-footer-wrap { border-top: 4px solid var(--adl-teal); }
.site-footer .widget-title,
.site-footer .wp-block-heading { color: #fff !important; font-size: 1.05rem !important; font-weight: 700 !important; margin-bottom: 18px !important; position: relative; padding-bottom: 12px; }
.site-footer .wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--adl-orange); }
.site-footer .adl-contact-list .adl-ico { color: var(--adl-orange); }
.site-footer .adl-contact-list__name span:last-child { color: #fff; }
.site-footer ul.wp-block-list,
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul.wp-block-list li { margin: 0 0 10px; }
.site-footer a { text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--adl-orange) !important; }
.site-footer .adl-footer-logo img { max-width: 240px; height: auto; }
.site-footer .adl-footer-about { color: #b9c9dc; line-height: 1.7; margin-top: 14px; }
.site-below-footer-wrap { font-size: 0.86rem; }

/* ==========================================================================
   Nút liên hệ nổi
   ========================================================================== */

.adl-float { position: fixed; right: 18px; bottom: 90px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.adl-float__btn {
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	font-size: 22px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	text-decoration: none !important;
	transition: transform 0.2s ease;
}
.adl-float__btn:hover { transform: scale(1.08); }
.adl-float__btn--phone { background: var(--adl-orange); }
.adl-float__btn--phone::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--adl-orange); z-index: -1; animation: adl-pulse 1.8s ease-out infinite; }
.adl-float__btn--zalo { background: #0068ff; }
.adl-float__btn--messenger { background: #0866ff; }
.adl-float__label {
	position: absolute;
	right: 64px;
	white-space: nowrap;
	background: var(--adl-navy);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 7px 12px;
	border-radius: 8px;
	opacity: 0;
	transform: translateX(6px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.adl-float__btn:hover .adl-float__label,
.adl-float__btn:focus-visible .adl-float__label { opacity: 1; transform: none; }
@keyframes adl-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .adl-float__btn--phone::before { animation: none; } }

/* ==========================================================================
   WooCommerce
   ========================================================================== */

.adl-price-contact { color: var(--adl-orange-dark); font-weight: 700; font-size: 0.95rem; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: #fff;
	border: 1px solid var(--adl-border);
	border-radius: var(--adl-radius);
	overflow: hidden;
	box-shadow: var(--adl-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	padding-bottom: 18px !important;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--adl-shadow-hover); }
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { margin-bottom: 14px; }
.woocommerce ul.products li.product .astra-shop-summary-wrap { padding: 0 18px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--adl-navy); font-weight: 700; font-size: 1rem; }
.woocommerce ul.products li.product .ast-woo-product-category { color: var(--adl-teal-dark); text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; font-weight: 600; opacity: 1; }
.woocommerce ul.products li.product .button { border-radius: 999px !important; background: transparent !important; color: var(--adl-teal-dark) !important; border: 2px solid var(--adl-teal) !important; padding: 8px 18px !important; font-size: 0.88rem !important; }
.woocommerce ul.products li.product .button:hover { background: var(--adl-teal) !important; color: #fff !important; }

.adl-product-cta { margin: 18px 0 24px; padding: 20px; background: var(--adl-bg-alt); border-radius: var(--adl-radius); }
.adl-product-cta__warranty { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; color: var(--adl-navy); }
.adl-product-cta__warranty .adl-ico { color: var(--adl-teal); font-size: 1.2em; }
.adl-product-cta__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.single-product .product .summary .product_title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--adl-teal-dark); }
.woocommerce-products-header__title.page-title { color: var(--adl-navy); }

/* ==========================================================================
   Hiệu ứng xuất hiện
   ========================================================================== */

.adl-reveal--ready { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.adl-reveal--ready.adl-in { opacity: 1; transform: none; }

/* Khoảng cách mặc định giữa các block con của Spectra container */
.adl-section .wp-block-spectra-content { margin-top: 0; }
.entry-content > .adl-section + .adl-section { margin-top: 0 !important; }

/* ---- Icon (Font Awesome Free, CC BY 4.0) – tạo tự động ---- */
.adl-ico--phone{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z'/%3E%3C/svg%3E");}
.adl-ico--mail{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M48 64c-26.5 0-48 21.5-48 48 0 15.1 7.1 29.3 19.2 38.4l208 156c17.1 12.8 40.5 12.8 57.6 0l208-156c12.1-9.1 19.2-23.3 19.2-38.4 0-26.5-21.5-48-48-48L48 64zM0 196L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-188-198.4 148.8c-34.1 25.6-81.1 25.6-115.2 0L0 196z'/%3E%3C/svg%3E");}
.adl-ico--clock{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 0a256 256 0 1 1 0 512 256 256 0 1 1 0-512zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z'/%3E%3C/svg%3E");}
.adl-ico--pin{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z'/%3E%3C/svg%3E");}
.adl-ico--shield{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 0c4.6 0 9.2 1 13.4 2.9L457.8 82.8c22 9.3 38.4 31 38.3 57.2-.5 99.2-41.3 280.7-213.6 363.2-16.7 8-36.1 8-52.8 0-172.4-82.5-213.1-264-213.6-363.2-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.9 1 251.4 0 256 0zm0 66.8l0 378.1c138-66.8 175.1-214.8 176-303.4l-176-74.6 0 0z'/%3E%3C/svg%3E");}
.adl-ico--building{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384c0-35.3-28.7-64-64-64L64 0zM176 352l32 0c17.7 0 32 14.3 32 32l0 80-96 0 0-80c0-17.7 14.3-32 32-32zM96 112c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM240 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM96 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm144-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z'/%3E%3C/svg%3E");}
.adl-ico--id{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M0 96C0 60.7 28.7 32 64 32l448 0c35.3 0 64 28.7 64 64L0 96zm0 48l576 0 0 272c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 144zM247.3 416c20.2 0 35.3-19.4 22.4-35-14.7-17.7-36.9-29-61.7-29l-64 0c-24.8 0-47 11.3-61.7 29-12.9 15.6 2.2 35 22.4 35l142.5 0zM176 312a56 56 0 1 0 0-112 56 56 0 1 0 0 112zM360 208c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-112 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l112 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-112 0z'/%3E%3C/svg%3E");}
.adl-ico--zalo{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 480c141.4 0 256-107.5 256-240S397.4 0 256 0 0 107.5 0 240c0 54.3 19.2 104.3 51.6 144.5L2.8 476.8c-4.8 9-3.3 20 3.6 27.5s17.8 9.8 27.1 5.8l118.4-50.7C183.7 472.6 218.9 480 256 480zM128 208a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm128 0a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm96 32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z'/%3E%3C/svg%3E");}
.adl-ico--messenger{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256.6 8c-140 0-248.6 102.3-248.6 240.6 0 72.3 29.7 134.8 78.1 177.9 8.3 7.5 6.6 11.9 8 58.2 .1 3.2 1 6.4 2.6 9.2s3.9 5.2 6.7 6.9 5.9 2.8 9.1 3 6.5-.3 9.5-1.6C174.9 479 175.6 477.2 184.6 479.6 337.8 521.8 504 423.7 504 248.6 504 110.3 396.6 8 256.6 8zM405.8 193.1l-73 115.6c-2.8 4.3-6.4 8.1-10.6 11s-9.1 4.8-14.1 5.8-10.3 .8-15.3-.4-9.7-3.4-13.8-6.4l-58.1-43.5c-2.6-1.9-5.8-3-9-3s-6.4 1.1-9 3l-78.4 59.4c-10.5 7.9-24.2-4.6-17.1-15.7l73-115.6c2.8-4.3 6.4-8.1 10.6-11s9.1-4.8 14.1-5.8 10.3-.8 15.3 .4 9.7 3.4 13.9 6.4l58.1 43.5c2.6 1.9 5.8 3 9 3s6.4-1.1 9-3l78.4-59.4c10.4-8 24.1 4.5 17.1 15.6z'/%3E%3C/svg%3E");}
.adl-ico--check{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z'/%3E%3C/svg%3E");}
.adl-ico--arrow{--adl-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E");}

/* Nút căn giữa dưới lưới */
.wp-block-spectra-buttons.adl-center { justify-content: center; margin-top: 40px; }
.adl-section .woocommerce { margin-bottom: 0; }

/* Ghi đè mặc định của Spectra Container (max-width:100%, padding:10px) */
.wp-block-spectra-container.adl-section { padding: clamp(56px, 7vw, 96px) 20px; max-width: none; }
.wp-block-spectra-container.adl-section.adl-section--tight { padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(36px, 4vw, 56px); }
.adl-section .wp-block-spectra-container { padding: 0; }
.wp-block-spectra-container.adl-inner { max-width: var(--adl-max) !important; }
.wp-block-spectra-container.adl-inner--narrow { max-width: 860px !important; }
.wp-block-spectra-buttons.adl-center { justify-content: center !important; width: 100%; }
.wp-block-spectra-container.adl-card,
.wp-block-spectra-container.adl-step,
.wp-block-spectra-container.adl-head,
.wp-block-spectra-container.adl-hero__content { justify-content: flex-start !important; }
.adl-split .adl-head { margin-bottom: 18px !important; }
.adl-split > .wp-block-spectra-container { min-width: 0; }
.adl-archive-hero { margin: 0; }
.adl-archive-hero .adl-inner { max-width: var(--adl-max); margin: 0 auto; }
.blog .site-content > .ast-container, .archive .site-content > .ast-container, .search .site-content > .ast-container { padding-top: 48px; }
.woocommerce-breadcrumb { font-size: 0.88rem; }

/* Mobile */
@media (max-width: 921px) {
	.site-primary-footer-wrap .ast-builder-grid-row-container-inner,
	.site-primary-footer-wrap .site-footer-section { padding-left: 20px; padding-right: 20px; }
	.site-primary-footer-wrap .site-footer-section { margin-bottom: 28px; }
	.adl-float { right: 12px; bottom: 18px; }
	.adl-float__btn { width: 46px; height: 46px; font-size: 19px; }
	.adl-float__label { display: none; }
}
@media (max-width: 600px) {
	.adl-hero .wp-block-spectra-buttons .wp-block-spectra-button { width: 100%; justify-content: center; }
	.adl-hero__badge { max-width: 220px; }
	.adl-step:not(:last-child)::after { display: none; }
}

/* ==========================================================================
   Trình soạn thảo: bỏ qua lớp bọc của editor để lưới/cột hiển thị như ngoài site
   ========================================================================== */
.wp-block-spectra-container > .block-editor-inner-blocks,
.wp-block-spectra-container > .block-editor-inner-blocks > .block-editor-block-list__layout { display: contents; }
.block-editor-block-list__block.adl-reveal { opacity: 1 !important; transform: none !important; }
.adl-cat > .block-editor-inner-blocks .wp-block-image { position: absolute; inset: 0; margin: 0; z-index: -2; }
.wp-block-spectra-container.adl-card,
.wp-block-spectra-container.adl-step,
.wp-block-spectra-container.adl-stat,
.wp-block-spectra-container.adl-head,
.wp-block-spectra-container.adl-cat,
.wp-block-spectra-container.adl-hero__content { flex-direction: column !important; }
.adl-step, .adl-stat, .adl-card--center { align-items: center !important; }
.adl-faq .wp-block-spectra-accordion-child-item { width: 100%; }
.block-editor-block-list__block.wp-block-spectra-container:not(.adl-grid):not(.adl-split):not(.adl-section) { display: flex; flex-direction: column; gap: 12px; }
.block-editor-block-list__block.adl-faq > .block-editor-inner-blocks > .block-editor-block-list__layout { display: flex; flex-direction: column; gap: 14px; }
.wp-block-spectra-container.adl-step::before { content: counter(adl-step, decimal-leading-zero) !important; position: relative !important; inset: auto !important; opacity: 1 !important; background: #fff !important; pointer-events: none; }

/* Footer: thông tin công ty dưới logo */
.site-footer .adl-footer-about + .adl-contact-list,
.site-footer .adl-footer-about ~ .adl-contact-list { margin-top: 22px !important; padding-top: 20px !important; border-top: 1px solid rgba(255, 255, 255, 0.12); max-width: 440px; gap: 10px; }
.site-footer .adl-contact-list a { word-break: break-word; }

/* Nút "Tra cứu bảo hành" trong header chính (nền trắng) */
.main-header-bar .adl-warranty-link { color: var(--adl-teal-dark) !important; border: 2px solid var(--adl-teal); padding: 8px 16px; font-size: 0.92rem; white-space: nowrap; }
.main-header-bar .adl-warranty-link:hover { background: var(--adl-teal); color: #fff !important; }
.main-header-bar .adl-warranty-link:hover .adl-ico { color: #fff; }
.main-header-bar .ast-header-html-2 { margin-left: 6px; }
@media (min-width: 922px) and (max-width: 1240px) {
	.main-header-menu > .menu-item > .menu-link { padding-left: 9px !important; padding-right: 9px !important; font-size: 14px; }
	.main-header-bar .adl-warranty-link { padding: 7px 12px; font-size: 0.85rem; }
}
@media (min-width: 922px) {
	.main-header-bar .main-header-menu { flex-wrap: nowrap; }
	.main-header-bar .main-header-menu > .menu-item > .menu-link { white-space: nowrap; padding-left: 11px !important; padding-right: 11px !important; }
	.ast-header-button-1 .ast-custom-button { white-space: nowrap; }
	.main-header-bar .site-header-primary-section-right { gap: 10px; }
}
@media (min-width: 922px) and (max-width: 1240px) {
	.main-header-bar .main-header-menu > .menu-item > .menu-link { padding-left: 7px !important; padding-right: 7px !important; }
	.ast-header-button-1 .ast-custom-button { padding: 10px 16px !important; }
	.site-logo-img img { max-width: 190px !important; }
}
@media (min-width: 922px) and (max-width: 1399px) {
	.main-header-bar .ast-header-html-2 { display: none !important; }
}

/* ==========================================================================
   Thiết bị cảm ứng: vùng bấm tối thiểu ~40px cho link nhỏ
   ========================================================================== */
.custom-logo-link { display: inline-block; line-height: 0; }
@media (max-width: 921px) {
	.site-footer ul.wp-block-list li { margin: 0; }
	.site-footer ul.wp-block-list li a,
	.site-footer .adl-contact-list a { display: inline-block; padding: 9px 0; }
	.site-footer .adl-contact-list { gap: 4px; }
	.woocommerce-breadcrumb a,
	.ast-breadcrumbs a { display: inline-block; padding: 10px 2px; }
	.ast-taxonomy-container a,
	.cat-links a,
	.posted_in a,
	.ast-woo-product-category { display: inline-block; padding: 6px 0; }
	.read-more a,
	.ast-read-more-container a,
	.entry-content .wp-block-latest-posts__post-title { display: inline-block; padding: 8px 0; }
	.adl-contact-list a,
	.adl-topbar a { display: inline-block; padding: 8px 0; }
	.search-form .search-submit { min-width: 44px; min-height: 44px; }
	.adl-faq .wp-block-spectra-accordion-child-header { min-height: 52px; }
}
.post-thumb-img-content > a { display: block; }
@media (max-width: 921px) { .entry-title a { display: inline-block; padding: 4px 0; } }

/* ==========================================================================
   Tablet: tránh mục lẻ một mình ở hàng cuối
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
	.adl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
	.adl-news.wp-block-latest-posts.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
	.adl-cat { min-height: 300px; padding: 22px !important; }
	.adl-card { padding: 24px 20px !important; }
}
@media (max-width: 767px) {
	.adl-grid-3, .adl-news.wp-block-latest-posts.is-grid { grid-template-columns: 1fr; }
}
/* Lưới 5 mục: xếp dạng hàng căn giữa (3 + 2 rồi 2 + 2 + 1) thay vì lưới cứng. */
@media (max-width: 1024px) {
	.adl-grid-5 { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; align-items: stretch !important; }
	.adl-grid-5 > * { flex: 0 1 calc(33.333% - 16px); min-width: 0; }
}
@media (max-width: 600px) {
	.adl-grid-5 > * { flex-basis: calc(50% - 12px); }
}
@media (max-width: 1024px) { .adl-grid-5 > .wp-block-spectra-container { width: auto; } }

/* Nút "lên đầu trang" của Astra: sang góc trái để không chồng lên nút Gọi/Zalo. */
#ast-scroll-top { right: auto !important; left: 18px; border-radius: 50%; background-color: var(--adl-navy); }
@media (max-width: 921px) { #ast-scroll-top { left: 12px; bottom: 18px; } }

/* ==========================================================================
   Cột trái danh mục sản phẩm (trang Sản phẩm / Danh mục)
   ========================================================================== */
.woocommerce #secondary,
.woocommerce-page #secondary { padding-top: 0; }
.ast-left-sidebar #secondary { border-right: 0 !important; padding-right: 32px; }
.ast-left-sidebar #primary { border-left: 0 !important; }
#secondary .widget { margin-bottom: 22px; }
.adl-side-title { font-size: 1rem !important; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px !important; padding-bottom: 12px; border-bottom: 2px solid var(--adl-teal-soft); position: relative; }
.adl-side-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--adl-orange); }

.adl-catnav ul { list-style: none; margin: 0; padding: 0; }
.adl-catnav--list { background: #fff; border: 1px solid var(--adl-border); border-radius: var(--adl-radius); padding: 8px; box-shadow: var(--adl-shadow); }
.adl-catnav--list .adl-catnav__item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--adl-navy);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.adl-catnav--list .adl-catnav__item > a:hover { background: var(--adl-bg-alt); color: var(--adl-teal-dark); }
.adl-catnav--list .adl-catnav__item.is-active > a { background: var(--adl-teal); color: #fff; }
.adl-catnav__count { flex: 0 0 auto; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--adl-bg-alt); color: var(--adl-muted); font-size: 12px; font-weight: 700; text-align: center; }
.adl-catnav__item.is-active > a .adl-catnav__count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.adl-catnav--list .adl-catnav__item + .adl-catnav__item { margin-top: 2px; }
.adl-catnav__sub { margin: 2px 0 4px 14px !important; padding-left: 10px !important; border-left: 2px solid var(--adl-teal-soft); }
.adl-catnav__sub a { font-weight: 500 !important; font-size: 0.93rem; padding: 9px 12px !important; }

.adl-side-cta { background: linear-gradient(135deg, var(--adl-teal-dark), var(--adl-navy)); color: #cfe0ee; border-radius: var(--adl-radius); padding: 22px 20px !important; }
.adl-side-cta h4 { color: #fff !important; font-size: 1.05rem !important; margin: 0 0 8px !important; }
.adl-side-cta p { margin: 0 0 14px !important; font-size: 0.92rem; line-height: 1.55; }
.adl-side-cta .adl-phone { display: inline-flex; align-items: center; gap: 8px; background: var(--adl-orange); color: #fff !important; font-weight: 700; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.adl-side-cta .adl-phone::before { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--adl-ico) center / contain no-repeat; mask: var(--adl-ico) center / contain no-repeat; --adl-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z'/%3E%3C/svg%3E"); }
.adl-side-cta .adl-phone:hover { background: var(--adl-orange-dark); }

/* Thanh danh mục cuộn ngang: chỉ hiện khi cột trái bị đẩy xuống (≤ 921px). */
.adl-catnav--chips { display: none; }
@media (max-width: 921px) {
	.woocommerce.archive #secondary,
	.post-type-archive-product #secondary,
	.tax-product_cat #secondary { display: none; }
	.adl-catnav--chips { display: block; margin: 0 0 18px; }
	.adl-catnav--chips ul { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px !important; margin: 0 !important; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.adl-catnav--chips ul::-webkit-scrollbar { display: none; }
	.adl-catnav--chips .adl-catnav__item { flex: 0 0 auto; scroll-snap-align: start; }
	.adl-catnav--chips .adl-catnav__item > a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--adl-border); background: #fff; color: var(--adl-navy); font-weight: 600; font-size: 0.92rem; white-space: nowrap; text-decoration: none; min-height: 44px; }
	.adl-catnav--chips .adl-catnav__item.is-active > a { background: var(--adl-teal); border-color: var(--adl-teal); color: #fff; }
}

/* Khoảng cách banner → nội dung ở trang sản phẩm / danh mục / tin tức */
.adl-archive-hero + #content .ast-container > #primary,
.adl-archive-hero + #content .ast-container > #secondary { margin-top: 44px; margin-bottom: 56px; }
@media (max-width: 921px) {
	.adl-archive-hero + #content .ast-container > #primary { margin-top: 24px; }
}
.blog .site-content > .ast-container, .archive .site-content > .ast-container, .search .site-content > .ast-container { padding-top: 0; }
@media (min-width: 922px) and (max-width: 1199px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ast-left-sidebar #secondary { padding-right: 24px; }
	.adl-catnav--list .adl-catnav__item > a { padding: 10px 10px; font-size: 0.9rem; }
}
@media (min-width: 601px) and (max-width: 921px) {
	.adl-catnav--chips ul { flex-wrap: wrap; overflow: visible; }
}

/* Bản đồ trang Liên hệ: chiếm hết chiều rộng khung */
.adl-map .wp-block-spectra-google-map,
.adl-map .spectra-google-map__iframe { width: 100% !important; max-width: none !important; display: block; }

/* ==========================================================================
   Header chính dính trên cùng khi cuộn (Astra bản free không có tuỳ chọn này)
   ========================================================================== */
#masthead { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 999; background: #fff; }
@media (max-width: 600px) { .admin-bar #masthead { top: 0; } } /* thanh admin trên mobile không cố định */
#masthead.adl-scrolled { box-shadow: 0 6px 24px rgba(23, 54, 95, 0.1); }
#masthead.adl-scrolled .main-header-bar { box-shadow: none; }
/* Menu mobile mở ra khi header đang dính: cho cuộn bên trong nếu dài hơn màn hình */
.ast-mobile-header-content { max-height: calc(100vh - 80px); overflow-y: auto; overscroll-behavior: contain; }
.adl-map__frame { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 600px) { .adl-map__frame { height: 320px; } }
