/*
Theme Name: Đăng Vũ Car Audio
Theme URI: https://dangvucaraudio.vn
Author: Đăng Vũ Car Audio
Description: Theme riêng cho dangvucaraudio.vn – nhẹ, chuẩn SEO, tối ưu mobile, hỗ trợ WooCommerce, Rank Math và tương thích nội dung cũ dựng bằng Flatsome.
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: dangvu
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ink: #0a0f1f;
	--ink-2: #121a33;
	--brand: #1d3cf5;
	--brand-dark: #1129b8;
	--brand-soft: #eaeeff;
	--accent: #ff6a1a;
	--accent-dark: #e2550a;
	--price: #e11d2e;
	--zalo: #0068ff;
	--messenger: #a334fa;
	--ok: #12a150;

	--bg: #f3f5fa;
	--surface: #ffffff;
	--text: #1a2130;
	--muted: #5d6779;
	--line: #e2e6ee;

	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
	--shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);
	--container: 1260px;
	--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; margin: 0 0 .6em; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: #fff; color: var(--ink); z-index: 10000; border-radius: 8px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
	background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2;
	transition: background .2s, color .2s, border-color .2s, transform .1s;
	text-align: center;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: transparent; color: var(--brand); border-color: currentColor; }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f1f3f9; color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--zalo-solid { background: var(--zalo); }
.btn--zalo-solid:hover { background: #0052cc; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; color: inherit;
	position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.08); }

.badge {
	display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent);
	color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}

/* ==========================================================================
   Topbar + header
   ========================================================================== */
.topbar { background: #05080f; color: #a9b2c7; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar__tagline { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.topbar__links li { display: flex; align-items: center; gap: 6px; }
.topbar__links a { color: #d6dcea; display: inline-flex; align-items: center; gap: 6px; }
.topbar__links a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: #fff; transition: box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.site-header__main { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.site-brand { flex-shrink: 0; }
.site-brand .custom-logo { max-height: 54px; width: auto; }
.site-brand__text { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; }
.site-brand__text:hover { color: #fff; }
.site-brand__mark {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
	background: linear-gradient(135deg, var(--brand), #6b7dff); font-size: 15px;
}

.header-search { flex: 1; max-width: 560px; }
.search-form { position: relative; display: flex; }
.search-field {
	width: 100%; height: 46px; padding: 0 54px 0 20px; border-radius: 999px;
	border: 1.5px solid transparent; background: #fff; color: var(--text); font-size: 15px;
	-webkit-appearance: none; appearance: none;
}
.search-field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,60,245,.18); }
.search-submit {
	position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 50%;
	border: 0; background: var(--brand); color: #fff; display: grid; place-items: center;
}
.search-submit:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-hotline { display: flex; align-items: center; gap: 10px; color: #fff; padding: 6px 10px; border-radius: 12px; }
.header-hotline:hover { color: #fff; background: rgba(255,255,255,.06); }
.header-hotline__icon {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--accent); animation: ring 2.4s infinite;
}
.header-hotline__text { display: flex; flex-direction: column; line-height: 1.2; }
.header-hotline__text small { color: #a9b2c7; font-size: 12px; }
.header-hotline__text strong { font-size: 17px; letter-spacing: .01em; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,26,.55); } 50% { box-shadow: 0 0 0 8px rgba(255,106,26,0); } }

.cart-count {
	position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
	background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[data-count="0"] { display: none; }

.menu-toggle, .search-toggle { display: none; }
.mobile-search { padding: 0 0 12px; }

/* Nav bar */
.site-nav { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.site-nav__inner { display: flex; align-items: stretch; gap: 8px; min-height: 50px; }
.main-menu { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; flex-wrap: wrap; }
.main-menu > li { position: relative; }
.main-menu > li > a {
	display: flex; align-items: center; padding: 0 14px; height: 50px; color: var(--text); font-weight: 500; font-size: 15px;
}
.main-menu > li > a:hover, .main-menu > .current-menu-item > a { color: var(--brand); }
.main-menu > .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--brand); }
.main-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
	background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 50;
}
.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: 14px; }
.main-menu .sub-menu a:hover { background: var(--bg); color: var(--brand); }

/* Category mega menu */
.cat-menu { position: relative; flex-shrink: 0; width: 260px; }
.cat-menu__toggle {
	white-space: nowrap;
	display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; padding: 0 16px; border: 0;
	background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
}
.cat-menu__toggle .icon-down { margin-left: auto; transition: transform .2s; }
.cat-menu:hover .cat-menu__toggle .icon-down, .cat-menu.is-open .cat-menu__toggle .icon-down { transform: rotate(180deg); }
.cat-menu__panel {
	position: absolute; top: 100%; left: 0; width: 100%; background: #fff; z-index: 60;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transition: .15s;
}
.cat-menu:hover .cat-menu__panel, .cat-menu.is-open .cat-menu__panel, .cat-menu:focus-within .cat-menu__panel { opacity: 1; visibility: visible; }
.cat-menu__list { list-style: none; margin: 0; padding: 6px 0; }
.cat-menu__list > li > a {
	display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; color: var(--text); font-size: 14.5px; font-weight: 500;
}
.cat-menu__list > li.menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid #9aa3b5; border-top: 2px solid #9aa3b5; transform: rotate(45deg);
}
.cat-menu__list > li:hover > a { background: var(--brand-soft); color: var(--brand); }
.cat-menu__list > li > .sub-menu {
	position: absolute; left: 100%; top: 0; min-height: 100%; width: 620px; padding: 18px 22px; margin: 0;
	background: #fff; list-style: none; box-shadow: var(--shadow-lg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	display: none; grid-template-columns: repeat(3, 1fr); gap: 4px 20px; align-content: start;
}
.cat-menu__list > li:hover > .sub-menu, .cat-menu__list > li:focus-within > .sub-menu { display: grid; }
.cat-menu__list .sub-menu a { display: block; padding: 6px 0; color: var(--text); font-size: 14px; }
.cat-menu__list .sub-menu a:hover { color: var(--brand); }
.cat-menu__list .sub-menu .sub-menu { list-style: none; padding: 0 0 6px; margin: 0; }
.cat-menu__list .sub-menu .menu-item-has-children > a { font-weight: 700; }
.cat-menu__list .sub-menu .sub-menu a { color: var(--muted); padding: 3px 0; font-size: 13.5px; }

/* Mobile nav drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 100000; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgba(5,8,15,.55); opacity: 0; transition: opacity .25s; }
.mobile-nav__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; overflow-y: auto;
	padding: 0 16px 24px; transform: translateX(-100%); transition: transform .25s ease;
}
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav.is-open .mobile-nav__panel { transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; height: 60px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mobile-nav__head .icon-btn:hover { background: var(--bg); }
.mobile-nav__label { margin: 18px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mobile-menu, .mobile-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { position: relative; border-bottom: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 12px 44px 12px 4px; color: var(--text); font-weight: 500; }
.mobile-menu .sub-menu { display: none; padding-left: 14px; border-top: 1px solid var(--line); }
.mobile-menu .sub-menu li:last-child { border-bottom: 0; }
.mobile-menu .sub-menu a { font-weight: 400; font-size: 15px; padding-top: 10px; padding-bottom: 10px; }
.mobile-menu li.is-open > .sub-menu { display: block; }
.submenu-toggle {
	position: absolute; right: 0; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted);
	display: grid; place-items: center; border-radius: 8px;
}
.submenu-toggle svg { transition: transform .2s; }
.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.mobile-nav .btn--block { margin-top: 20px; }

/* ==========================================================================
   Layout
   ========================================================================== */
.site-main { min-height: 50vh; }
.page-wrap { padding-top: 20px; padding-bottom: 48px; }
.layout { display: grid; gap: 28px; align-items: start; }
.layout--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
.layout--product { grid-template-columns: minmax(0, 1fr) 300px; }
.layout--shop { grid-template-columns: 260px minmax(0, 1fr); }
.layout__side { position: sticky; top: 150px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.layout__main { min-width: 0; }
.widget { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.widget .wp-block-search__inside-wrapper { display: flex; }
.widget .wp-block-search__input { min-width: 0; width: auto; flex: 1; }
.widget .wp-block-search__button { flex-shrink: 0; }

.grid { display: grid; gap: 20px; }
.grid--1 { grid-template-columns: minmax(0, 1fr); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Breadcrumbs: one line, scrolls sideways when long; the current page title
   is not repeated (it is the H1 right below, and stays in the schema). */
.breadcrumbs {
	font-size: 14px; color: var(--muted); margin-bottom: 16px;
	white-space: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs p { margin: 0; display: inline; }
.breadcrumbs nav { display: inline; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep, .breadcrumbs .separator { margin: 0 6px; color: #b3bac8; }
.single .breadcrumbs .last, .single .breadcrumbs [aria-current="page"],
.single .breadcrumbs .separator:has(+ .last), .single .breadcrumbs .sep:has(+ [aria-current="page"]),
.single-product .breadcrumbs .last, .single-product .breadcrumbs [aria-current="page"],
.single-product .breadcrumbs .separator:has(+ .last), .single-product .breadcrumbs .sep:has(+ [aria-current="page"]) { display: none; }

/* Post Views Counter: the plugin's box inside the content is replaced by the count in the meta line. */
.entry-content .post-views.content-post { display: none !important; }
.post-views-meta { color: var(--muted); }

/* Section heads */
.home-section { padding: 36px 0 8px; }
.section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 18px; }
.section-heading { position: relative; margin: 0; font-size: 24px; font-weight: 800; padding-left: 14px; }
.section-heading::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 4px; border-radius: 4px; background: var(--brand); }
.section-heading a { color: inherit; }
.section-heading a:hover { color: var(--brand); }
.section-more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip-list a {
	display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
	color: var(--text); font-size: 14px; transition: .15s;
}
.chip-list a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ==========================================================================
   Home
   ========================================================================== */
.home-hero { padding: 28px 0 8px; background: linear-gradient(180deg, var(--ink) 0, var(--ink) 190px, var(--bg) 190px); }
.home-hero__intro { color: #fff; margin-bottom: 20px; }
.home-hero__intro h1 { color: #fff; font-size: clamp(22px, 3.2vw, 34px); font-weight: 800; margin-bottom: 6px; }
.home-hero__intro p { color: #a9b2c7; margin: 0; }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
.home-hero__grid--full { grid-template-columns: minmax(0, 1fr); }
.home-hero__grid--full .hero-slide { aspect-ratio: 21 / 9; min-height: 0; }

.hero-slider, .fs-slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow-lg); }
.hero-slider__track, .fs-slider__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.hero-slider__track::-webkit-scrollbar, .fs-slider__track::-webkit-scrollbar { display: none; }
.hero-slide, .fs-slider__track > * { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.hero-slide { display: block; aspect-ratio: 16 / 9; color: #fff; }
@media (min-width: 1024px) {
	.hero-slider { display: flex; }
	.hero-slider__track { flex: 1; }
	.hero-slide { aspect-ratio: auto; min-height: 340px; }
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; display: grid; gap: 8px; justify-items: start;
	background: linear-gradient(transparent, rgba(5,8,15,.88));
}
.hero-slide__caption strong { font-size: clamp(17px, 2vw, 24px); line-height: 1.3; }
.carousel-btn {
	position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0;
	background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow);
	opacity: 0; transition: opacity .2s;
}
.hero-slider:hover .carousel-btn, .carousel-btn:focus-visible { opacity: 1; }
.carousel-btn--prev { left: 14px; }
.carousel-btn--next { right: 14px; }
.carousel-dots { position: absolute; top: 14px; right: 16px; display: flex; gap: 6px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.5); transition: width .2s; }
.carousel-dots button[aria-current="true"] { width: 24px; background: #fff; }

.hero-side { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.hero-side__head { display: flex; align-items: center; justify-content: space-between; }
.hero-side__head h2 { font-size: 18px; margin: 0; }
.hero-side__head a { font-size: 14px; font-weight: 600; }

.usp { padding: 20px 0 0; }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.usp__item {
	display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.usp__item .icon { color: var(--brand); width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-soft); }
.usp__item strong { display: block; font-size: 15px; color: var(--ink); }
.usp__item span { font-size: 13px; color: var(--muted); }

.product-band .container { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.product-band .woocommerce { margin: 0; }

.home-projects { background: var(--ink); margin-top: 36px; padding: 44px 0; }
.section-head--light .section-heading { color: #fff; }
.home-projects .post-card { background: var(--ink-2); border-color: rgba(255,255,255,.06); }
.home-projects .post-card__title a { color: #fff; }
.home-projects .post-card__title a:hover { color: #9fb0ff; }
.home-projects .post-card__excerpt, .home-projects .post-meta { color: #a9b2c7; }
.home-projects .post-cat { color: #9fb0ff; }

.brand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.brand-list a {
	display: grid; place-items: center; height: 80px; padding: 12px; background: #fff; border-radius: var(--radius-sm);
	border: 1px solid var(--line); color: var(--ink); font-weight: 700; transition: .15s;
}
.brand-list a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.brand-list img { max-height: 48px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .2s; }
.brand-list a:hover img { filter: none; opacity: 1; }

.news-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
.news-main__grid { display: grid; grid-template-columns: 1.15fr minmax(0, 1fr); grid-template-rows: repeat(4, auto); gap: 14px 20px; }
.news-main__grid > .post-card--card { grid-row: 1 / span 4; }

.home-keywords { padding: 28px 0 40px; }
.home-keywords .container { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.home-keywords__label { font-weight: 700; color: var(--ink); }
.chip-list--outline a { background: transparent; }

/* ==========================================================================
   Post cards
   ========================================================================== */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card__thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #dfe3ec; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.thumb-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #dfe3ec, #c9cfdc); }
.post-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card__title { font-size: 16.5px; font-weight: 700; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand); }
.post-card__excerpt { margin: 0; font-size: 14px; color: var(--muted); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-cat { color: var(--brand); font-weight: 600; }

.post-card--row, .post-card--mini { flex-direction: row; border: 0; background: transparent; border-radius: 0; }
.post-card--row:hover, .post-card--mini:hover { box-shadow: none; transform: none; }
.post-card--row .post-card__thumb { flex: 0 0 38%; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }
.post-card--row .post-card__body { padding: 0 0 0 14px; }
.post-card--row .post-card__title { font-size: 15px; -webkit-line-clamp: 3; }
.post-card--mini { gap: 12px; align-items: center; }
.post-card--mini .post-card__thumb { flex: 0 0 92px; width: 92px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.post-card--mini .post-card__body { padding: 0; }
.post-card--mini .post-card__title { font-size: 14.5px; font-weight: 600; -webkit-line-clamp: 3; }
.post-card--compact .post-card__title { font-size: 15px; }

/* ==========================================================================
   Entry (posts & pages)
   ========================================================================== */
.archive-header { margin-bottom: 20px; }
.archive-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.archive-desc { color: var(--muted); max-width: 820px; }

.entry { background: #fff; border-radius: var(--radius); padding: clamp(18px, 4vw, 40px); box-shadow: var(--shadow); }
.entry-header { margin-bottom: 20px; }
.entry-title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin-top: 8px; }
.entry-content { font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content h4 { font-size: 18px; margin-top: 1.2em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content .wp-caption, .entry-content figure, .entry-content img, .entry-content video, .entry-content embed, .entry-content object { max-width: 100% !important; height: auto; }
.entry-content, .woocommerce-tabs .panel, .term-description { min-width: 0; overflow-wrap: anywhere; }
.entry-content pre { overflow-x: auto; max-width: 100%; }
.woocommerce-tabs .panel img, .woocommerce-tabs .panel figure, .woocommerce-tabs .panel .wp-caption { max-width: 100% !important; height: auto; }
.woocommerce-tabs .panel iframe { max-width: 100%; }
.woocommerce-tabs .panel table { display: block; overflow-x: auto; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content tr:nth-child(even) td { background: #f8f9fc; }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }

.entry-footer { margin-top: 28px; display: grid; gap: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.tag-list span { font-weight: 700; }
.tag-list a { padding: 4px 12px; background: var(--bg); border-radius: 999px; color: var(--text); }
.tag-list a:hover { background: var(--brand-soft); color: var(--brand); }
.entry-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-soft), #f6f0ff); }
.entry-cta p { margin: 0; }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 24px 0; }
.post-nav a { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--ink); height: 100%; }
.post-nav a:hover { color: var(--brand); }
.post-nav small { color: var(--muted); font-size: 12.5px; }
.post-nav span { font-weight: 600; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav__next { text-align: right; grid-column: 2; }

.related-posts { margin-top: 32px; }
.related-posts .section-heading { font-size: 22px; margin-bottom: 18px; }

/* Sidebar & widgets */
.widget { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.widget-title { font-size: 17px; margin: 0 0 4px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--brand); }
.sidebar-cta { border-radius: var(--radius); padding: 20px; color: #fff; background: linear-gradient(135deg, var(--ink), #1b2a6b); display: grid; gap: 10px; }
.sidebar-cta strong { font-size: 18px; }
.sidebar-cta p { color: #c3cae0; margin: 0; font-size: 14px; }

/* Pagination */
.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers {
	min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600;
}
.page-numbers.current, .page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-numbers.dots { background: transparent; border: 0; }

/* Comments */
.comments { margin-top: 28px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }

/* Forms (generic) */
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], textarea, select {
	width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,60,245,.12); }
input[type=submit], button[type=submit]:not(.search-submit) {
	padding: 12px 24px; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font-weight: 600;
}
input[type=submit]:hover, button[type=submit]:not(.search-submit):hover { background: var(--brand-dark); }

/* Empty / 404 */
.empty-state { background: #fff; border-radius: var(--radius); padding: 40px 24px; text-align: center; box-shadow: var(--shadow); display: grid; gap: 12px; justify-items: center; }
.empty-state .search-form { width: 100%; max-width: 480px; }
.empty-state .search-field { border-color: var(--line); }
.big-code { font-size: 96px; font-weight: 800; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   WooCommerce
   ========================================================================== */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; padding: 0; list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; padding: 12px 12px 16px !important;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative;
	display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }
.woocommerce ul.products li.product a img {
	width: 100%; aspect-ratio: 1; object-fit: contain; margin: 0 0 12px !important; border-radius: var(--radius-sm); background: #fff;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14.5px !important; font-weight: 600; line-height: 1.4; color: var(--ink); padding: 0 !important; margin: 0 0 8px !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title { color: var(--brand); }
.woocommerce ul.products li.product .price { color: var(--price) !important; font-weight: 700; font-size: 16px !important; margin: auto 0 0 !important; }
.woocommerce ul.products li.product .price del { color: #98a0b0 !important; font-weight: 400; font-size: 13px; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { display: none; }
.woocommerce ul.products li.product .star-rating { font-size: 12px; margin-bottom: 6px; }
.price-contact { color: var(--price); font-weight: 700; }
.woocommerce ul.products li.product .price-contact { font-size: 14px; }

.woocommerce span.onsale {
	min-width: 0; min-height: 0; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--price);
	top: 10px !important; left: 10px !important; right: auto !important; margin: 0 !important; font-size: 12px; font-weight: 700; z-index: 2;
}

.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.woocommerce .woocommerce-ordering { margin: 0 0 16px; }
.woocommerce .woocommerce-ordering select { width: auto; padding: 8px 12px; }
.woocommerce-products-header__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.term-description { background: #fff; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 18px; color: var(--muted); font-size: 15px; box-shadow: var(--shadow); }
.term-description p:last-child { margin: 0; }

.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; justify-content: center; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Shop sidebar / filters */
.shop-sidebar .widget { padding: 16px; }
.shop-filters__open, .shop-filters__close { display: none; }

/* Single product */
.woocommerce div.product { background: #fff; border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); display: flow-root; }
.woocommerce div.product div.images { margin-bottom: 20px; }
.woocommerce div.product div.images img { border-radius: var(--radius-sm); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; }
.woocommerce div.product div.images .flex-control-thumbs img { border: 1px solid var(--line); border-radius: 6px; opacity: .65; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; border-color: var(--brand); }
.woocommerce div.product .product_title { font-size: clamp(21px, 2.4vw, 28px); font-weight: 800; margin-bottom: 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--price); font-size: 26px; font-weight: 800; margin: 10px 0 14px; }
.woocommerce div.product p.price del { color: #98a0b0; font-size: 17px; font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--text); font-size: 15px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 16px; }
.woocommerce div.product .woocommerce-product-details__short-description ul { margin: 0; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.woocommerce div.product form.cart .quantity .qty { width: 72px; height: 48px; text-align: center; border-radius: 999px; }
.woocommerce div.product form.cart .button, .woocommerce .single_add_to_cart_button {
	height: 48px; padding: 0 28px !important; border-radius: 999px !important; background: var(--accent) !important; color: #fff !important; font-weight: 700 !important;
}
.woocommerce div.product form.cart .button:hover { background: var(--accent-dark) !important; }
.woocommerce div.product .stock { color: var(--ok); font-weight: 600; }
.product_meta { display: grid; gap: 4px; font-size: 14px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.product_meta a { color: var(--text); }
.product_meta a:hover { color: var(--brand); }
.pwb-single-product-brands img { max-height: 56px; width: auto; }

.product-contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0 14px; }
.product-contact .btn--call { grid-column: 1 / -1; justify-content: center; }
.product-contact .btn { border-radius: var(--radius-sm); padding: 10px 12px; justify-content: flex-start; text-align: left; gap: 10px; }
.product-contact .btn span { display: grid; line-height: 1.25; }
.product-contact .btn strong { font-size: 14px; }
.product-contact .btn small { font-size: 12px; opacity: .85; font-weight: 400; }
.btn--call { background: var(--accent); }
.btn--call:hover { background: var(--accent-dark); }
.btn--zalo { background: var(--zalo); }
.btn--zalo:hover { background: #0052cc; }
.btn--messenger { background: var(--messenger); }
.btn--messenger:hover { background: #8a1ee0; }

.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; padding: 0 !important; margin: 0 0 18px !important; border-bottom: 2px solid var(--line); overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0 !important; background: transparent !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 16px !important; font-weight: 700 !important; color: var(--muted) !important; white-space: nowrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--brand) !important; box-shadow: inset 0 -3px 0 var(--brand); }
.woocommerce div.product .woocommerce-tabs .panel { font-size: 16.5px; line-height: 1.75; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 22px; }
.woocommerce div.product .woocommerce-tabs .panel img { border-radius: var(--radius-sm); }
.woocommerce table.shop_attributes { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-style: normal; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: #f8f9fc; }
.woocommerce div.product .related, .woocommerce div.product .upsells { clear: both; padding-top: 28px; }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { font-size: 22px; }

.trust-box { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.trust-box__title { font-size: 16px; color: var(--price); text-align: center; margin-bottom: 14px; }
.trust-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust-box li { display: flex; gap: 12px; align-items: flex-start; }
.trust-box li .icon { color: var(--brand); width: 40px; height: 40px; padding: 9px; background: var(--brand-soft); border-radius: 10px; }
.trust-box strong { display: block; font-size: 15px; color: var(--ink); }
.trust-box span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.trust-box__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 14px; }

/* Cart / checkout / notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--brand); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--brand); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; padding: 12px 22px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--brand-dark); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--accent); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--accent-dark); }
.woocommerce-cart .woo-wrap > .woocommerce, .woocommerce-checkout .woo-wrap > .woocommerce, .woocommerce-account .woo-wrap > .woocommerce { background: #fff; border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); }

/* ==========================================================================
   Flatsome compat (old shortcode content)
   ========================================================================== */
.fs-section { margin: 0 0 24px; background-size: cover; background-position: center; }
.fs-row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.fs-col { flex: 0 0 calc(var(--span, 12) / 12 * 100%); max-width: calc(var(--span, 12) / 12 * 100%); padding: 0 10px 20px; }
.fs-row > p:empty, .fs-section > p:empty, .fs-col > p:empty { display: none; }
.fs-show-for-small { display: none; }
.fs-image { margin: 0 0 1em; }
.fs-image img { border-radius: var(--radius-sm); width: 100%; }
.fs-slider .fs-image { margin: 0; }
.fs-slider .fs-image figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding: 30px 16px 12px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-weight: 600; }
.fs-gap { width: 100%; }
.fs-divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.fs-box { margin-bottom: 1em; }
.fs-box__icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 8px; }
.fs-banner { min-height: 260px; background-size: cover; background-position: center; border-radius: var(--radius); display: flex; align-items: center; padding: 24px; color: #fff; }
.fs-accordion { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: #fff; }
.fs-accordion summary { padding: 12px 16px; font-weight: 600; cursor: pointer; }
.fs-accordion__body { padding: 0 16px 12px; }
.fs-logo img { max-height: 48px; width: auto; }
.fs-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-cta { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, #5b6dff); color: #fff; padding: 34px 0; margin-top: 40px; }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-cta h2 { color: #fff; font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 6px; }
.footer-cta p { margin: 0; color: #dfe4ff; }
.footer-cta__actions { display: flex; gap: 10px; flex-shrink: 0; }

.site-footer { background: var(--ink); color: #a9b2c7; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.footer-brand { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.footer-title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-contact, .footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: #7d8bff; }
.site-footer a { color: #d6dcea; }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.social-links a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social-links a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13.5px; text-align: center; }

/* Floating contact (desktop) */
.float-contact { position: fixed; right: 16px; bottom: 90px; z-index: 90; display: grid; gap: 10px; }
.float-contact a {
	position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
	box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: transform .15s;
}
.float-contact a:hover { transform: scale(1.08); color: #fff; }
.float-contact a span {
	position: absolute; right: 60px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 13px; padding: 5px 10px;
	border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.float-contact a:hover span { opacity: 1; }
.float-contact__zalo { background: var(--zalo); }
.float-contact__msg { background: var(--messenger); }
.float-contact__call { background: var(--accent); animation: ring 2.4s infinite; }

.back-to-top {
	position: fixed; right: 16px; bottom: 24px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; border: 0;
	background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.back-to-top[hidden] { display: none; }

.mobile-bar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.woocommerce ul.products.columns-5, .woocommerce ul.products.columns-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.header-hotline__text small { display: none; }
	.cat-menu { width: 210px; }
	.main-menu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.main-menu::-webkit-scrollbar { display: none; }
	.main-menu > li > a { padding: 0 10px; font-size: 14px; white-space: nowrap; }
	.main-menu .sub-menu { display: none; }
	.cat-menu__list > li > .sub-menu { width: 520px; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
	.home-hero__grid, .news-layout { grid-template-columns: minmax(0, 1fr); }
	.layout--sidebar, .layout--product { grid-template-columns: minmax(0, 1fr); }
	.layout__side { position: static; }
	.layout--shop { grid-template-columns: minmax(0, 1fr); }
	.usp__grid { grid-template-columns: repeat(2, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.woocommerce ul.products, .woocommerce-page ul.products,
	.woocommerce ul.products.columns-4, .woocommerce ul.products.columns-5, .woocommerce ul.products.columns-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

	.shop-filters__open { display: inline-flex; margin-bottom: 14px; }
	.shop-sidebar {
		position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); background: var(--bg); z-index: 1001; overflow-y: auto; padding: 56px 16px 24px;
		transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); display: block;
	}
	.shop-sidebar.is-open { transform: none; }
	.shop-filters__close { display: inline-flex; position: absolute; top: 8px; right: 8px; color: var(--ink); }
	.shop-sidebar .widget { margin-bottom: 14px; }
}

@media (max-width: 849px) {
	.topbar { display: none; }
	.site-header__main { min-height: 62px; gap: 6px; }
	.menu-toggle, .search-toggle { display: inline-flex; }
	.header-search, .header-hotline, .site-nav { display: none; }
	.site-brand { flex: 1; display: flex; justify-content: center; }
	.site-brand .custom-logo { max-height: 42px; }
	.site-brand__text { font-size: 16px; white-space: nowrap; }
	.site-brand__mark { width: 34px; height: 34px; font-size: 13px; }
	.admin-bar .mobile-nav { top: 46px; }
	.header-actions { margin-left: 0; gap: 0; }
	.admin-bar .site-header { top: 46px; }

	.float-contact { display: none; }
	/* The dock replaces the back-to-top button on phones (it covered product prices). */
	.back-to-top { display: none !important; }
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

	.mobile-bar {
		display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		background: #fff; box-shadow: 0 -4px 20px rgba(16,24,40,.12);
		height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
		overflow: visible;
	}
	.mobile-bar a { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text); font-size: 11px; font-weight: 600; }
	.mobile-bar a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
	.mobile-bar a.mobile-bar__call { justify-content: flex-end; padding-bottom: 8px; }
	.mobile-bar__call .mobile-bar__call-icon { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); margin-top: 0 !important; }
	.mobile-bar a .icon { color: var(--brand); }
	.mobile-bar a .icon-zalo { color: var(--zalo); }
	.mobile-bar a .icon-messenger { color: var(--messenger); }
	.mobile-bar__call { position: relative; }
	.mobile-bar__call-icon {
		width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center;
		background: var(--accent); border: 3px solid #fff; animation: ring 2.4s infinite;
	}
	.mobile-bar__call-icon .icon { color: #fff !important; }

	.home-hero { background: linear-gradient(180deg, var(--ink) 0, var(--ink) 150px, var(--bg) 150px); padding-top: 18px; }
	.hero-slide { aspect-ratio: 4 / 3; }
	.carousel-btn { display: none; }
	.footer-cta__inner { flex-direction: column; align-items: flex-start; }
	.product-contact { grid-template-columns: minmax(0, 1fr); }
	.entry-cta { flex-direction: column; align-items: flex-start; }
	.fs-col { flex-basis: 100%; max-width: 100%; }
	.fs-hide-for-small { display: none; }
	.fs-show-for-small { display: block; }
}

@media (max-width: 359px) {
	.mobile-bar a { font-size: 10px; }
}

@media (max-width: 599px) {
	body { font-size: 15.5px; }
	.home-section { padding-top: 26px; }
	.section-heading { font-size: 20px; }
	.section-head .chip-list { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.section-head .chip-list::-webkit-scrollbar { display: none; }
	.section-head .chip-list li { flex-shrink: 0; }
	.product-band .container { border-radius: 0; padding: 18px 12px; box-shadow: none; }
	.usp__grid { gap: 10px; }
	.usp__item { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
	.usp__item span { display: none; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
	.home-projects .grid--4, .news-side .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.home-projects .post-card__excerpt { display: none; }
	.news-main__grid { grid-template-columns: minmax(0, 1fr); }
	.news-main__grid > .post-card--card { grid-row: auto; }
	.woocommerce ul.products, .woocommerce-page ul.products,
	.woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.woocommerce ul.products li.product { padding: 8px 8px 12px !important; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13.5px !important; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.post-nav__next { grid-column: auto; }
	.entry { border-radius: 0; margin: 0 -16px; box-shadow: none; }
	.woocommerce div.product { margin: 0 -16px; border-radius: 0; box-shadow: none; }
	.alignleft, .alignright { float: none; margin: 1em auto; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Customizer live preview: keep the pencil (edit shortcut) of each homepage
   section inside the visible area.
   ========================================================================== */
.customize-partial-edit-shortcuts-shown [id^="home-"] { position: relative; }
.customize-partial-edit-shortcuts-shown [id^="home-"] > .customize-partial-edit-shortcut button {
	left: 12px !important; top: 12px !important; z-index: 50;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.customize-partial-edit-shortcuts-shown #home-hero > .customize-partial-edit-shortcut button { top: 70px !important; }

/* Customizer preview: pencils for menus, header and footer stay visible. */
.customize-partial-edit-shortcuts-shown .main-menu { overflow: visible !important; padding-left: 34px; position: relative; }
.customize-partial-edit-shortcuts-shown .main-menu > .customize-partial-edit-shortcut button { left: 2px !important; top: 11px !important; }
.customize-partial-edit-shortcuts-shown .cat-menu__list,
.customize-partial-edit-shortcuts-shown .mobile-menu,
.customize-partial-edit-shortcuts-shown .footer-menu,
.customize-partial-edit-shortcuts-shown .topbar__inner,
.customize-partial-edit-shortcuts-shown .header-hotline,
.customize-partial-edit-shortcuts-shown .footer-contact,
.customize-partial-edit-shortcuts-shown .footer-cta__inner,
.customize-partial-edit-shortcuts-shown .footer-bottom .container { position: relative; }
.customize-partial-edit-shortcuts-shown .cat-menu__list > .customize-partial-edit-shortcut button,
.customize-partial-edit-shortcuts-shown .mobile-menu > .customize-partial-edit-shortcut button,
.customize-partial-edit-shortcuts-shown .footer-menu > .customize-partial-edit-shortcut button,
.customize-partial-edit-shortcuts-shown .footer-contact > .customize-partial-edit-shortcut button,
.customize-partial-edit-shortcuts-shown .footer-cta__inner > .customize-partial-edit-shortcut button,
.customize-partial-edit-shortcuts-shown .footer-bottom .container > .customize-partial-edit-shortcut button { left: -2px !important; top: -10px !important; }
.customize-partial-edit-shortcuts-shown .topbar__inner > .customize-partial-edit-shortcut button { left: -4px !important; top: 3px !important; transform: scale(.85); }
.customize-partial-edit-shortcuts-shown .header-hotline > .customize-partial-edit-shortcut button { left: -26px !important; top: 10px !important; }
.customize-partial-edit-shortcuts-shown .cat-menu__panel { opacity: 1; visibility: hidden; }
.customize-partial-edit-shortcuts-shown .cat-menu:hover .cat-menu__panel,
.customize-partial-edit-shortcuts-shown .cat-menu.is-open .cat-menu__panel,
.customize-partial-edit-shortcuts-shown .cat-menu:focus-within .cat-menu__panel { visibility: visible; }
.customize-partial-edit-shortcuts-shown .cat-menu__panel > .customize-partial-edit-shortcut { visibility: visible; }
.customize-partial-edit-shortcuts-shown .cat-menu__panel > .customize-partial-edit-shortcut button { left: auto !important; right: 38px; top: -40px !important; }
.customize-partial-edit-shortcuts-shown .main-menu > .customize-partial-edit-shortcut { position: absolute; left: 0; top: 0; }
