/*
Theme Name: Roto
Theme URI: https://thietbivesinhroto.com/
Author: Roto
Description: Theme viết tay cho Thiết Bị Vệ Sinh Roto, phong cách web thương hiệu lớn (tham khảo bố cục richy.com.vn), màu nhận diện Roto. WooCommerce chế độ catalogue, giữ nguyên nội dung và đường dẫn cũ, tương thích nội dung Flatsome cũ. Không page builder, không jQuery.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: roto
*/

/* ==========================================================================
   1. Tokens — đổi giao diện chủ yếu ở đây (màu lấy từ logo Roto)
   ========================================================================== */
:root {
	--c-primary: #1d3a8f;
	--c-primary-dark: #10165a;
	--c-accent: #2b8fd8;
	--c-bg: #ffffff;
	--c-bg-alt: #f2f6fc;
	--c-bg-soft: #f7f8fa;
	--c-band: #13206b;
	--c-text: #333333;
	--c-heading: #10165a;
	--c-text-muted: #6b7280;
	--c-text-invert: #ffffff;
	--c-border: #e3e8f0;
	--c-zalo: #0068ff;

	--f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-heading: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.0625rem;
	--fs-h3: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
	--fs-h2: clamp(1.6rem, 1.3rem + 1vw, 2rem);
	--fs-h1: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);

	--radius: 10px;
	--radius-sm: 5px;
	--radius-pill: 999px;
	--shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 12px 32px rgba(16, 22, 90, 0.12);

	--space-section: clamp(3rem, 2.2rem + 3vw, 5rem);
	--container: 1230px;
	--gutter: 16px;
	--header-h: 72px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-base); line-height: 1.65; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { font-family: var(--f-heading); line-height: 1.3; margin: 0 0 0.6em; color: var(--c-heading); font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 16px; background: #fff; }
.ico { flex: none; width: 1.1em; height: 1.1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(2rem, 1.6rem + 1.5vw, 3rem); }
.section--alt { background: var(--c-bg-alt); }
.section__head { max-width: 820px; margin: 0 auto 2.25rem; text-align: center; }
/* Tiêu đề khối in hoa, màu thương hiệu, đặt giữa — đặc trưng richy.com.vn. */
.section__head h2 { text-transform: uppercase; color: var(--c-primary); font-weight: 700; letter-spacing: 0.01em; }
.section__eyebrow { display: inline-block; margin-bottom: 0.5rem; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-accent); }
.section__lead { color: var(--c-text-muted); font-size: var(--fs-lg); margin: 0; }
.section__more { margin: 2.25rem 0 0; display: flex; justify-content: center; }
.section__title-left { text-transform: uppercase; color: var(--c-primary); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

/* ==========================================================================
   3. Nút — pill, có mũi tên (kiểu richy.com.vn)
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 2px solid transparent; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn .ico--arrow { transition: transform 0.2s; }
.btn:hover .ico--arrow { transform: translateX(3px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; box-shadow: var(--shadow-lg); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--ghost, .btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--ghost:hover, .btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { background: var(--c-bg-alt); color: var(--c-primary-dark); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.8); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--c-primary); }
.btn--zalo { background: var(--c-zalo); color: #fff; }
.btn--zalo:hover { color: #fff; filter: brightness(1.08); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--c-primary); border-radius: 50%; background: #fff; color: var(--c-primary); cursor: pointer; transition: 0.2s; }
.icon-btn:hover { background: var(--c-primary); color: #fff; }
.icon-btn--fill { background: var(--c-primary); color: #fff; }
.icon-btn--fill:hover { background: var(--c-primary-dark); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--c-primary-dark); text-decoration: none; }
.site-logo__img { width: auto; height: 50px; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__text strong { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.06em; color: var(--c-primary-dark); }
.site-logo__text small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent); }
.site-header__tools { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; width: 24px; height: 2px; background: var(--c-primary-dark); position: relative; transition: transform 0.2s; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 8px var(--gutter) 96px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s; }
.nav-open .primary-nav { transform: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 13px 0; color: var(--c-text); font-weight: 600; text-transform: uppercase; font-size: 0.9375rem; text-decoration: none; border-bottom: 1px solid var(--c-border); }
.primary-nav .sub-menu a { padding-left: 16px; font-weight: 500; text-transform: none; }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav a:hover { color: var(--c-primary); }
.primary-nav .primary-nav__call { display: flex; margin-top: 20px; width: 100%; padding: 12px 22px; border: 0; color: #fff; text-transform: none; }
.header-call { display: inline-grid; }
.site-search { border-top: 1px solid var(--c-border); background: #fff; padding-block: 14px; }
.site-search[hidden] { display: none; }
.site-search__form { display: flex; gap: 10px; }
.site-search__form input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 18px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); }

/* ==========================================================================
   5. Hero slider
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(115deg, #eaf2fc 0%, #f7fbff 45%, #dceafa 100%); }
.hero::before { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(43, 143, 216, 0.16), transparent 65%); pointer-events: none; }
.hero__track { display: grid; }
.hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__inner { position: relative; display: grid; gap: 24px; align-items: center; padding-block: 32px 56px; }
.hero__eyebrow { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: var(--radius-pill); background: #fff; color: var(--c-primary); font-size: var(--fs-sm); font-weight: 600; box-shadow: var(--shadow); }
.hero__title { margin: 0 0 0.5em; font-size: var(--fs-h1); font-weight: 800; line-height: 1.2; color: var(--c-primary-dark); text-wrap: balance; }
.hero__lead { font-size: var(--fs-lg); color: #4b5563; max-width: 560px; }
.hero__media { order: -1; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }
.slider-arrow { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--c-primary-dark); box-shadow: var(--shadow); cursor: pointer; transition: 0.2s; }
.slider-arrow:hover { background: var(--c-primary); color: #fff; }
.slider-arrow--prev { left: 12px; }
.slider-arrow--next { right: 12px; }
.hero .slider-arrow { display: none; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: var(--radius-pill); background: rgba(16, 22, 90, 0.25); cursor: pointer; transition: 0.3s; }
.hero__dots button[aria-current="true"] { width: 28px; background: var(--c-primary); }

/* ==========================================================================
   6. Về Roto (khối "Tự hào")
   ========================================================================== */
.about { position: relative; background: #fff; }
.about__inner { display: grid; gap: 32px; align-items: center; }
.about__title { text-transform: uppercase; color: var(--c-primary); }
.about__lead { font-size: var(--fs-lg); text-align: justify; text-align-last: left; }
.stats { display: grid; gap: 4px; margin: 1.25rem 0 1.75rem; padding: 0; list-style: none; }
.stats li { display: flex; align-items: baseline; gap: 10px; font-weight: 500; text-transform: uppercase; font-size: var(--fs-sm); color: var(--c-heading); }
.stats strong { min-width: 64px; font-size: 1.6rem; font-weight: 800; color: var(--c-accent); }
.about__media { position: relative; }
.about__media::before { content: ""; position: absolute; inset: 24px -12px -12px 24px; border-radius: 20px; background: var(--c-bg-alt); z-index: 0; }
.about__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }

/* ==========================================================================
   7. Danh mục dạng bento
   ========================================================================== */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.bento__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; }
.bento__item img { width: 100%; height: 100%; object-fit: contain; padding: 12% 12% 28%; transition: transform 0.4s; }
.bento__item:hover img { transform: scale(1.05); }
.bento__item--big { grid-column: span 2; aspect-ratio: 16 / 10; background: linear-gradient(140deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); }
.bento__item--big img { padding: 8% 40% 8% 8%; }
.bento__label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 60%, rgba(255, 255, 255, 0)); }
.bento__label strong { color: var(--c-heading); font-size: 0.95rem; line-height: 1.3; }
.bento__label small { display: inline-flex; align-items: center; gap: 4px; color: var(--c-accent); font-weight: 600; font-size: 0.8rem; }
.bento__item--big .bento__label { top: 0; left: auto; width: 46%; justify-content: center; padding: 24px; background: none; }
.bento__item--big .bento__label strong { color: #fff; font-size: clamp(1.1rem, 0.9rem + 1vw, 1.75rem); text-transform: uppercase; }
.bento__item--big .bento__label small { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.bento__item--big img { background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.95) 0 38%, transparent 39%); }

/* ==========================================================================
   8. Bộ lọc + thẻ sản phẩm
   ========================================================================== */
.filter { display: flex; gap: 8px; margin-bottom: 28px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.filter::-webkit-scrollbar { display: none; }
.filter__btn { flex: none; padding: 9px 18px; border: 1.5px solid var(--c-border); border-radius: var(--radius-pill); background: #fff; color: var(--c-text); font-weight: 600; font-size: 0.875rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: 0.2s; }
.filter__btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter__btn.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.pcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.pcard[hidden] { display: none; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard__media { display: block; aspect-ratio: 1; padding: 12px; background: #fff; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 16px; border-top: 1px solid var(--c-border); }
.pcard__cat { display: inline-block; margin-bottom: 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-accent); text-decoration: none; }
.pcard__title { margin: 0 0 6px; font-size: 0.9375rem; line-height: 1.4; font-weight: 700; }
.pcard__title a { color: var(--c-heading); text-decoration: none; }
.pcard__title a:hover { color: var(--c-primary); }
.pcard__price { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.pcard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }

/* ==========================================================================
   9. Dải đậm: khách hàng
   ========================================================================== */
.band { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(43, 143, 216, 0.35), transparent 45%), linear-gradient(120deg, var(--c-band) 0%, var(--c-primary) 100%); }
.band::after { content: "ROTO"; position: absolute; left: -2%; top: 50%; transform: translateY(-50%); font-size: clamp(6rem, 18vw, 16rem); font-weight: 800; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.04); pointer-events: none; }
.band__inner { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.band h2 { color: #fff; text-transform: uppercase; }
.band p { color: rgba(255, 255, 255, 0.85); font-size: var(--fs-lg); }
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.clients li { display: grid; place-items: center; height: 84px; padding: 12px 18px; border-radius: var(--radius); background: #fff; }
.clients img { max-height: 56px; width: auto; object-fit: contain; }

/* ==========================================================================
   10. Tin tức (carousel) + thẻ bài
   ========================================================================== */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 14px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel .slider-arrow { display: none; }
.ncard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.ncard__media { display: block; aspect-ratio: 16 / 10; background: var(--c-bg-alt); overflow: hidden; }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 20px; }
.ncard__title { margin: 0 0 8px; font-size: 0.9375rem; line-height: 1.45; text-transform: uppercase; }
.ncard__title a { color: var(--c-heading); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__title a:hover { color: var(--c-primary); }
.ncard__text { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--c-text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--c-accent); }
.news-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* ==========================================================================
   11. Dải kết nối
   ========================================================================== */
.connect { padding-block: 36px; background: var(--c-bg-soft); border-top: 1px solid var(--c-border); }
.connect__inner { display: grid; gap: 24px; }
.connect__item p { margin-bottom: 10px; font-size: var(--fs-sm); color: var(--c-text-muted); }
.connect__card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--c-heading); }
.connect__card small { display: block; color: var(--c-text-muted); }
.connect__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 0.7rem; font-weight: 700; }
.connect__ico--fb { background: #1877f2; }
.connect__ico--zalo { background: var(--c-zalo); }

/* ==========================================================================
   12. Form
   ========================================================================== */
.form { position: relative; display: grid; gap: 16px; padding: 24px; background: #fff; color: var(--c-text); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 16px; }
.form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: var(--fs-sm); color: var(--c-heading); }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; color: var(--c-text); }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px rgba(29, 58, 143, 0.12); }
.form__hp { position: absolute; left: -9999px; }
.form__note { margin: 0; font-size: 0.8rem; color: var(--c-text-muted); }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); }
.notice--ok { background: #e8f6ec; color: #1d6b35; }
.notice--err { background: #fdecec; color: #9b1c1c; }

/* ==========================================================================
   13. Trang con, bài viết, sản phẩm
   ========================================================================== */
.page-hero { padding-block: 36px 32px; background: linear-gradient(115deg, #eaf2fc 0%, #f7fbff 60%, #e3eefb 100%); }
.page-hero h1 { margin: 0; color: var(--c-primary-dark); text-wrap: balance; }
.page-hero__lead { margin: 12px 0 0; max-width: 760px; color: #4b5563; text-align: justify; text-align-last: left; }
.page-hero--slim { padding-block: 14px; }
.breadcrumb { margin-bottom: 8px; font-size: 0.8125rem; color: var(--c-text-muted); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }
.post-meta { margin: 12px 0 0; color: var(--c-text-muted); font-size: var(--fs-sm); }
.entry { max-width: 820px; margin-inline: auto; overflow-wrap: break-word; }
.entry--wide { max-width: none; }
/* Canh đều đoạn văn; dòng cuối canh trái; ô bảng/chú thích ảnh giữ canh trái. */
.entry p, .entry li { text-align: justify; text-align-last: left; }
.entry td p, .entry th p, .entry figcaption { text-align: left; }
.entry img { border-radius: var(--radius-sm); height: auto; }
.entry h2 { margin-top: 1.6em; color: var(--c-primary); }
.entry h3 { margin-top: 1.3em; }
.entry blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 4px solid var(--c-accent); background: var(--c-bg-alt); }
.entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry th, .entry td { padding: 10px; border: 1px solid var(--c-border); }
.entry iframe { max-width: 100%; }
.entry .aligncenter { margin-inline: auto; }
.entry .alignleft { float: left; margin: 0 1.25em 1em 0; }
.entry .alignright { float: right; margin: 0 0 1em 1.25em; }
.entry .wp-caption { max-width: 100%; }
.term-desc { margin-top: 3rem; max-width: none; }
.single-thumb { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.single-thumb img { width: 100%; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2.5rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: var(--radius-pill); text-decoration: none; }
.page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Bài viết có sidebar; khối kêu gọi ghim khi cuộn (desktop). */
.post-layout { display: grid; gap: 40px; }
.post-layout .entry { max-width: none; margin: 0; }
.sidebar { display: grid; gap: 20px; align-content: start; }
.widget-box { padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.widget-box h2 { margin-bottom: 12px; font-size: 1rem; text-transform: uppercase; color: var(--c-primary); }
.widget-box ul { margin: 0; padding: 0; list-style: none; }
.widget-box li + li { border-top: 1px solid var(--c-border); }
.widget-box li a { display: block; padding: 9px 0; color: var(--c-text); font-size: var(--fs-sm); text-decoration: none; }
.widget-box li a:hover { color: var(--c-primary); }
.widget-quote { background: linear-gradient(140deg, var(--c-primary), var(--c-primary-dark)); color: #fff; }
.widget-quote h2 { color: #fff; }
.widget-quote p { color: rgba(255, 255, 255, 0.85); font-size: var(--fs-sm); }
.widget-quote .btn { width: 100%; margin-top: 8px; }
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }

/* Trang chi tiết sản phẩm */
.product { display: grid; gap: 32px; }
.product__main { display: grid; place-items: center; aspect-ratio: 1; padding: 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.product__main img { max-height: 100%; width: auto; object-fit: contain; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.product__thumbs button { flex: none; width: 76px; height: 76px; padding: 4px; border: 2px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.product__thumbs button.is-active { border-color: var(--c-primary); }
.product__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__title { margin: 4px 0 8px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.product__sku { margin: 0 0 4px; color: var(--c-text-muted); font-size: var(--fs-sm); }
.product__price { margin: 0 0 16px; font-size: 1.15rem; color: var(--c-primary); }
.product__short { margin-bottom: 20px; padding: 16px 18px; border-radius: var(--radius); background: var(--c-bg-alt); max-width: none; }
.product__short p { margin-bottom: 0.4em; }
.product__short img { display: inline; width: 1em; height: 1em; vertical-align: -0.1em; }
.product__cta { display: grid; gap: 10px; margin-bottom: 20px; }
.trust { display: grid; gap: 8px; margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--c-border); }
.trust li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 500; }
.trust .ico { color: #16a34a; }

/* Trang liên hệ */
.contact-list { margin: 0 0 24px; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }

/* ==========================================================================
   14. Nội dung cũ từ Flatsome (inc/flatsome-compat.php)
   ========================================================================== */
.fs-section { position: relative; margin-block: 1.5em; }
.fs-section--bg { padding: 24px; border-radius: var(--radius); overflow: hidden; color: #fff; }
.fs-section__bg { position: absolute; inset: 0; }
.fs-section__bg img { width: 100%; height: 100%; object-fit: cover; }
.fs-section--bg::after { content: ""; position: absolute; inset: 0; background: rgba(16, 22, 90, 0.55); }
.fs-section__inner { position: relative; z-index: 1; }
.fs-row { display: grid; gap: 20px; margin-block: 1em; }
.fs-col > :last-child { margin-bottom: 0; }
.fs-banner { position: relative; display: grid; margin-block: 1.5em; border-radius: var(--radius); overflow: hidden; background: var(--c-primary-dark); color: #fff; }
.fs-banner > img { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 220px; object-fit: cover; opacity: 0.55; }
.fs-banner__text { grid-area: 1 / 1; position: relative; display: grid; place-content: center; padding: 24px; text-align: center; }
.fs-banner__text h1, .fs-banner__text h2, .fs-banner__text h3, .fs-banner__text p { color: #fff; text-align: center; }
.fs-image { margin: 0 0 1em; }
.fs-image img { width: 100%; }
.fs-gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
.fs-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.fs-divider { border: 0; height: 3px; width: 48px; margin: 0.5em 0 1em; background: var(--c-accent); }
.fs-feature { display: flex; gap: 14px; align-items: flex-start; }
.fs-feature img { width: 64px; flex: none; }
.fs-acc { border-bottom: 1px solid var(--c-border); padding: 12px 0; }
.fs-acc summary { font-weight: 600; cursor: pointer; }
.fs-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.fs-dark, .fs-dark h2, .fs-dark h3 { color: #fff; }

/* ==========================================================================
   15. Dải kêu gọi + Footer (nền trắng, dải bản quyền màu thương hiệu)
   ========================================================================== */
.cta-band { padding-block: 44px; color: #fff; background: radial-gradient(circle at 90% 0%, rgba(43, 143, 216, 0.4), transparent 50%), linear-gradient(120deg, var(--c-band), var(--c-primary)); }
.cta-band__inner { display: grid; gap: 20px; align-items: center; }
.cta-band h2 { margin-bottom: 0.3em; color: #fff; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn--primary { background: #fff; color: var(--c-primary); }
.cta-band .btn--ghost { border-color: #fff; color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--c-primary); }

.site-footer { padding-top: 40px; background: #fff; color: var(--c-text); font-size: var(--fs-sm); border-top: 1px solid var(--c-border); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--c-primary); }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--c-border); }
.site-footer__slogan { margin: 0; color: var(--c-text-muted); font-style: italic; }
.site-footer .site-logo__img { height: 54px; }
.site-footer__cols { display: grid; gap: 28px; padding-block: 28px; grid-template-columns: 1fr 1fr; }
.site-footer__h { margin-bottom: 12px; font-size: 0.9375rem; font-weight: 700; color: var(--c-heading); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__contact li { display: flex; gap: 8px; align-items: flex-start; }
.site-footer__contact .ico { margin-top: 3px; color: var(--c-primary); }
.site-footer__contact strong { color: var(--c-primary); font-size: 1.05rem; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social__btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-primary-dark); color: #fff !important; font-size: 0.62rem; font-weight: 700; }
.social__btn--zalo { background: var(--c-zalo); }
.site-footer__company { padding-block: 20px; border-top: 1px solid var(--c-border); }
.site-footer__company p { margin: 0 0 4px; color: var(--c-text-muted); }
.site-footer__name { font-weight: 700; color: var(--c-heading) !important; }
.site-footer__bottom { padding-block: 12px 84px; background: var(--c-primary); color: #fff; text-align: center; font-size: 0.8125rem; }

/* ==========================================================================
   16. Liên hệ nổi
   ========================================================================== */
.float-hotline, .float-social { display: none; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12); }
.mobile-bar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: 0.75rem; font-weight: 600; color: #fff; text-decoration: none; }
.mobile-bar__btn:hover { color: #fff; }
.mobile-bar__btn .ico { width: 22px; height: 22px; }
.mobile-bar__btn b { font-size: 0.85rem; line-height: 22px; }
.mobile-bar__btn--call { background: var(--c-primary); }
.mobile-bar__btn--zalo { background: var(--c-zalo); }
.mobile-bar__btn--quote { background: var(--c-accent); }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (min-width: 600px) {
	.form__row { grid-template-columns: 1fr 1fr; }
	.product-grid { grid-template-columns: repeat(3, 1fr); }
	.clients { grid-template-columns: repeat(4, 1fr); }
	.fs-gallery { grid-template-columns: repeat(3, 1fr); }
	.carousel__track { grid-auto-columns: calc((100% - 16px) / 2); }
	.product__cta { grid-template-columns: 1fr 1fr; }
	.product__cta .btn--outline { grid-column: span 2; }
	.news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
	:root { --gutter: 24px; }
	.fs-row { grid-template-columns: repeat(12, 1fr); }
	.fs-col { grid-column: span var(--span, 12); }
	.connect__inner { grid-template-columns: repeat(3, 1fr); align-items: end; }
	.cta-band__inner { grid-template-columns: 1fr auto; }
	.site-footer__cols { grid-template-columns: repeat(4, 1fr); }
	.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
	.hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-block: 56px 72px; min-height: 560px; }
	.hero__media { order: 0; }
	.hero__media img { aspect-ratio: 1; }
	.hero .slider-arrow { display: grid; }
	.about__inner { grid-template-columns: 1fr 1fr; gap: 64px; }
	.band__inner { grid-template-columns: 1fr 1.1fr; gap: 56px; }
	.product { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
	.bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
	.bento__item--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
	.bento__item--big img { padding: 10% 10% 30%; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95) 0 34%, transparent 35%); }
	.bento__item--big .bento__label { top: auto; width: auto; left: 0; padding: 24px 28px; }
}
@media (min-width: 1024px) {
	:root { --header-h: 84px; }
	.site-logo__img { height: 58px; }
	.nav-toggle, .header-call { display: none; }
	.primary-nav { position: static; display: flex; align-items: center; transform: none; padding: 0; overflow: visible; background: none; }
	.primary-nav > ul { display: flex; gap: 2px; }
	.primary-nav a { padding: 10px 14px; border: 0; font-size: 0.9375rem; white-space: nowrap; }
	.primary-nav li { position: relative; }
	.primary-nav > ul > li > a { position: relative; }
	.primary-nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--c-primary); transform: scaleX(0); transition: transform 0.2s; }
	.primary-nav > ul > li:hover > a::after, .primary-nav > ul > .current-menu-item > a::after, .primary-nav > ul > .current-menu-ancestor > a::after { transform: scaleX(1); }
	.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 280px; padding: 8px 0; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s; }
	.primary-nav .sub-menu a { padding: 9px 18px; white-space: nowrap; }
	.primary-nav .primary-nav__call { display: none; }
	.product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
	.clients { grid-template-columns: repeat(4, 1fr); gap: 14px; }
	.carousel__track { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow: hidden; }
	.carousel { padding-inline: 8px; }
	.carousel .slider-arrow { display: grid; }
	.carousel .slider-arrow--prev { left: -48px; }
	.carousel .slider-arrow--next { right: -48px; }
	.hero .slider-arrow--prev { left: 24px; }
	.hero .slider-arrow--next { right: 24px; }
	.news-grid { grid-template-columns: repeat(3, 1fr); }
	.post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
	.site-footer__cols { grid-template-columns: 1.1fr 1.2fr 1.2fr 1.3fr; }
	.site-footer__bottom { padding-bottom: 12px; }
	.mobile-bar { display: none; }
	.float-hotline { position: fixed; left: 16px; bottom: 24px; z-index: 200; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius-pill); background: var(--c-primary); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; box-shadow: var(--shadow-lg); animation: rt-pulse 2.4s infinite; }
	.float-hotline:hover { color: #fff; background: var(--c-primary-dark); }
	.float-social { position: fixed; right: 14px; bottom: 24px; z-index: 200; display: grid; gap: 10px; }
	.float-social__btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #fff; font-size: 0.66rem; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); cursor: pointer; }
	.float-social__btn:hover { color: #fff; transform: scale(1.06); }
	.float-social__btn--zalo { background: var(--c-zalo); }
	.float-social__btn--fb { background: #1877f2; }
	.float-social__btn--mail { background: var(--c-accent); }
	.float-social__btn--top { background: rgba(29, 58, 143, 0.55); opacity: 0; visibility: hidden; transition: 0.2s; }
	.is-scrolled-far .float-social__btn--top { opacity: 1; visibility: visible; }
}
@media (min-width: 1024px) and (min-height: 700px) {
	.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
}
@media (min-width: 1360px) {
	.carousel .slider-arrow--prev { left: -64px; }
	.carousel .slider-arrow--next { right: -64px; }
}
@keyframes rt-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(29, 58, 143, 0.45), var(--shadow-lg); }
	50% { box-shadow: 0 0 0 10px rgba(29, 58, 143, 0), var(--shadow-lg); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.social__btn .ico, .float-social__btn .ico, .connect__ico .ico { width: 18px; height: 18px; }
@media (max-width: 767px) { .bento__item:not(.bento__item--big) img { padding: 10% 22% 46%; } }
