/* PNT theme – WordPress-specific styles on top of design.css (prototype v15.6). */

/* ---------- Be Vietnam Pro, self-hosted (SIL OFL 1.1, assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/be-vietnam-pro-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/be-vietnam-pro-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/be-vietnam-pro-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/be-vietnam-pro-vietnamese-700-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/be-vietnam-pro-vietnamese-800-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/be-vietnam-pro-vietnamese-800-italic.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-ext-800-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/be-vietnam-pro-latin-800-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Accessibility helpers ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }
:target { scroll-margin-top: calc(var(--header-h-compact) + 16px); }

/* ============================================================
   MENU – dropdown + mega menu (WP menu, 3 levels). Not in the prototype (flat menu there).
   Top-level item whose children have children (.nav-mega) opens a panel as wide as the menu.
   ============================================================ */
.nav__list .nav__sub-toggle { display: none; }
.nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__sublink { display: block; padding: 7px 18px; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--text); transition: color .2s, background-color .2s; }
.nav__sublink:hover, .current-menu-item > .nav__sublink { color: var(--red); }

@media (min-width: 1181px) {
  .nav { align-self: stretch; position: relative; }
  .nav__list { height: 100%; align-items: stretch; }
  .nav__list > li { display: flex; align-items: center; position: relative; }
  .nav__list > li.nav-mega { position: static; }

  .nav__sub--1 {
    position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px; padding: 12px 0;
    background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--red);
    box-shadow: var(--shadow-hover);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav__list > li:hover > .nav__sub--1,
  .nav__list > li:focus-within > .nav__sub--1 { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

  /* Mega panel: level-2 items become columns with a heading, level-3 links below. */
  /* Centred under the menu; one column per level-2 item, the panel only as wide as its columns (max 980px). */
  .nav-mega > .nav__sub--1 {
    left: 50%; right: auto; width: max-content; max-width: min(980px, calc(100vw - 2 * var(--gutter)));
    transform: translate(-50%, 8px);
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 240px);
    gap: 8px 36px; padding: 26px 32px 28px;
  }
  .nav__list > li.nav-mega:hover > .nav__sub--1,
  .nav__list > li.nav-mega:focus-within > .nav__sub--1 { transform: translate(-50%, 0); }
  .nav-mega > .nav__sub--1 > li > .nav__sublink {
    padding: 0 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--pnt-gray-mid); /* darker than --border (Sơn, 29/09) */
    font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
  }
  .nav-mega > .nav__sub--1 > li > .nav__sublink:hover { color: var(--red); }
  .nav-mega .nav__sub--2 .nav__sublink { padding: 6px 0; }
  .nav__sub--2 { position: static; }
  .nav__list > li:not(.nav-mega) .nav__sub--2 { padding-left: 14px; }
}

@media (max-width: 1180px) {
  .nav.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.is-open .nav__list > li, .nav.is-open .nav__sub > li { position: relative; }
  .nav.is-open .nav__sub-toggle {
    display: grid; place-items: center; position: absolute; right: 0; top: 4px; width: 40px; height: 40px;
    padding: 0; background: none; border: 0; color: var(--navy);
  }
  .nav.is-open .nav__sub .nav__sub-toggle { top: 0; width: 36px; height: 36px; }
  .nav__sub-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
  .nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav.is-open .nav__sub { display: none; padding: 4px 0 8px 12px; border-bottom: 1px solid var(--border); }
  .nav.is-open .is-sub-open > .nav__sub { display: block; }
  .nav.is-open .nav__sub .nav__sub { border-bottom: 0; padding-top: 0; }
  .nav.is-open .nav__sublink { padding: 9px 44px 9px 4px; }
  .nav.is-open .nav__sub--1 > li > .nav__sublink { font-weight: 600; color: var(--navy); }
}

/* ---------- Header search panel ---------- */
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px rgba(42,67,104,.10); padding: 18px 0; }
.search-panel__form { display: flex; gap: 12px; max-width: 720px; margin-left: auto; }
.search-panel__form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; font-size: 15px; color: var(--text); background: var(--gray-050); border: 1px solid var(--border); border-radius: 4px; }
.search-panel__form input:focus { outline: none; border-color: var(--royal); background: #fff; }

/* ---------- Brand logos without a design-specific size ---------- */
.logo-chip img { max-height: 36px; }
.logo-chip__name { font-size: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }

/* ---------- News card date (not in prototype) ---------- */
.news-card__meta { display: flex; align-items: center; gap: 10px; }
.news-card__date { color: var(--text-2); }
.news-card__media { display: block; }

/* ---------- Footer legal menu (WP menu = <ul>) ---------- */
ul.footer__links { list-style: none; margin: 0; padding: 0; }
ul.footer__links li { display: flex; align-items: center; }
ul.footer__links li + li::before { content: "|"; margin-right: 10px; color: var(--pnt-gray-mid); }

/* ============================================================
   CONTACT FORM 7 inside .lead-form (design form styles)
   ============================================================ */
.lead-form-wrap { min-width: 0; }
.wpcf7 .lead-form .wpcf7-form-control-wrap { display: block; }
.lead-form .field input, .lead-form .field select, .lead-form .field textarea { width: 100%; }
.field textarea { min-height: 110px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text); background: var(--gray-050); border: 1px solid var(--border); border-radius: 4px; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--royal); background: #fff; }
.field .wpcf7-not-valid { border-color: var(--red); }
.wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 12.5px; color: var(--red-dark); }
.lead-form__row--full { grid-template-columns: 1fr; }
.lead-form .wpcf7-response-output { margin: 16px 0 0 !important; padding: 10px 14px !important; font-size: 14px; border-radius: 4px; }
.lead-form.sent .wpcf7-response-output { border-color: #3c9d5d !important; color: #256b3e; background: #eef8f1; }
.lead-form .wpcf7-spinner { position: absolute; right: 16px; bottom: 50px; }
.lead-form .lead-form__submit { border: 0; }
.lead-form__note { margin-top: 12px; font-size: 12.5px; color: var(--text-2); }

/* ============================================================
   INNER PAGES (archives, singles, pages) – same tokens as the homepage
   ============================================================ */
.page-head { position: relative; isolation: isolate; padding: 56px 0 44px; background: linear-gradient(90deg, #FFFFFF 0%, #F7FAFD 45%, #DBEBF7 100%); border-bottom: 1px solid var(--border); }
.page-head__title { margin-top: 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1.2; font-weight: 800; color: var(--navy); }
.page-head__desc { margin-top: 12px; max-width: 760px; color: var(--text-2); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-2); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span[aria-hidden] { color: var(--pnt-gray-mid); }

.page-body { padding-block: 56px 88px; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.sidebar-box { padding: 22px 22px 18px; background: var(--gray-050); border: 1px solid var(--border); }
.sidebar-box + .sidebar-box { margin-top: 20px; }
.sidebar-box__title { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.sidebar-box ul li a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--text); }
.sidebar-box ul li a:hover, .sidebar-box .is-current > a { color: var(--red); }
.sidebar-box ul ul { padding-left: 14px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar a { padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.filter-bar a:hover, .filter-bar a.is-current { color: #fff; background: var(--navy); border-color: var(--navy); }

.card-grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid .news-card, .card-grid .product-card { height: 100%; }
/* Product cards outside the homepage: fixed 4:3 image at every screen size (29/09/2026). design.css sizes the
   homepage slider image from the viewport height (approved design, not touched); inside a .card-grid that made
   the frame 1.8:1 on laptops. Two classes win over design.css in all its media queries. */
.card-grid .product-card__media { aspect-ratio: 4 / 3; height: auto; }
.empty-state { padding: 40px; text-align: center; color: var(--text-2); background: var(--gray-050); border: 1px dashed var(--border); }

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; font-weight: 600; color: var(--navy); border: 1px solid var(--border); background: #fff; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { color: #fff; background: var(--navy); border-color: var(--navy); }

/* Rich text from the CMS (legacy HTML + editor) */
.entry-content { max-width: 860px; font-size: 16.5px; line-height: 1.8; color: var(--text); overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.6em 0 .6em; line-height: 1.35; color: var(--navy); font-weight: 700; }
.entry-content h2 { font-size: 24px; } .entry-content h3 { font-size: 20px; } .entry-content h4 { font-size: 18px; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content table, .entry-content figure { margin: 0 0 1em; }
.entry-content ul { list-style: disc; padding-left: 1.4em; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content a { color: var(--royal); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--navy); }
.entry-content img { height: auto !important; max-width: 100% !important; margin-inline: auto; }
.entry-content table { width: 100% !important; border-collapse: collapse; font-size: 15px; }
.entry-content td, .entry-content th { padding: 8px 10px; border: 1px solid var(--border); vertical-align: top; }
.entry-content iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); color: var(--text-2); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.entry-meta a { color: var(--red); font-weight: 600; }

/* Product / project single */
.single-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery-main { background: var(--gray-050); border: 1px solid var(--border); }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; background: #fff; border: 1px solid var(--border); }
.gallery-thumbs button.is-current { border-color: var(--red); }
.gallery-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.spec-table th { width: 44%; font-weight: 600; color: var(--navy); background: var(--gray-050); }
.term-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.term-links a { padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--blue-050); }
.term-links a:hover { color: #fff; background: var(--navy); }
.single-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.section-block { margin-top: 64px; }
.section-block > .section__title { margin-bottom: 24px; }

@media (max-width: 1024px) {
  .layout-sidebar, .single-hero { grid-template-columns: 1fr; gap: 36px; }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .card-grid, .card-grid--4 { grid-template-columns: 1fr; }
  .page-head { padding: 36px 0 30px; }
  .page-body { padding-block: 36px 64px; }
  .search-panel__form { flex-direction: column; }
}

/* ---------- Page head variants ---------- */
.page-head--compact { padding: 18px 0; }

/* ---------- Product listing background (archive-san-pham.php, 29/09/2026) ----------
   Same soft-blue gradient and technical pattern as "Vì sao chọn PNT" (.why / .why__pattern in design.css)
   behind the title band and the listing; boxes on it turn white so they read as cards. */
.listing-bg { position: relative; isolation: isolate; background: linear-gradient(135deg, #F7FAFD 0%, var(--pnt-bg-blue-pale) 46%, var(--pnt-bg-blue-light) 100%); }
.listing-bg .page-head { background: transparent; border-bottom-color: rgba(49,79,124,.14); }
.listing-bg .sidebar-box, .listing-bg .product-filter__toggle { background: #fff; }

/* ---------- Brand page / brand index ---------- */
.brand-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 40px; padding: 36px; background: var(--gray-050); border: 1px solid var(--border); }
.brand-intro--media { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.brand-intro__logo { display: inline-flex; align-items: center; margin-bottom: 22px; padding: 14px 22px; background: #fff; border: 1px solid var(--border); }
.brand-intro__logo img { display: block; width: auto; max-height: 48px; }
.brand-intro__logo img[data-logo="logo-canny"] { max-height: 38px; }
.brand-intro__logo img[data-logo="logo-temi"] { max-height: 42px; }
.brand-intro__logo img[data-logo="logo-mitsubishi"] { max-height: 56px; }
.brand-intro .section__title { margin-bottom: 14px; }
.brand-intro .entry-content { max-width: none; font-size: 16px; }
.brand-intro .entry-content > :last-child { margin-bottom: 0; }
.brand-intro__empty { color: var(--text-2); font-style: italic; }
.brand-intro .single-actions { margin-top: 24px; }
.brand-intro__media { margin: 0; text-align: center; }
.brand-intro__media img { display: inline-block; width: auto; max-width: 100%; max-height: 560px; box-shadow: var(--shadow); }
.brand-video { max-width: 900px; margin: 0 auto 48px; }
.brand-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.brand-products-title { margin-bottom: 20px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.brand-grid__meta { margin-top: 8px; font-size: 13.5px; color: var(--text-2); text-align: center; }

/* ---------- Contact page ---------- */
.contact-page__offices > .section__title { margin-bottom: 24px; }
.office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.office-card { display: flex; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.office-card strong { display: block; color: var(--navy); line-height: 1.4; }
.office-card p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
.office-card a:hover { color: var(--red); }
.office-card--contact { background: var(--blue-050); }
.office-card--contact strong a { color: var(--red); }
.office-card .foffice__icon { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; color: var(--red); border: 1.5px solid currentColor; border-radius: 50%; }
.office-card .foffice__icon svg { width: 16px; height: 16px; }

@media (max-width: 1024px) {
  .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-intro, .brand-intro--media { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .brand-intro__media img { max-height: 440px; }
}
@media (max-width: 640px) {
  .office-grid { grid-template-columns: 1fr; }
  .brand-intro, .brand-intro--media { padding: 22px 16px; }
}

/* ---------- About pages (content from the company profile) ---------- */
.entry-content .lead { font-size: 19px; line-height: 1.65; color: var(--navy); }
.entry-content figure img { width: 100%; }
.entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--text-2); text-align: center; }
.entry-content .data-table th { font-weight: 600; color: var(--navy); background: var(--gray-050); text-align: left; }
.entry-content .data-table td:last-child, .entry-content .data-table th:last-child { width: 130px; white-space: nowrap; text-align: right; }
.entry-content ol.timeline { position: relative; margin: 1.4em 0 1.6em; padding: 0 0 0 28px; list-style: none; }
.entry-content ol.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 6px; width: 2px; background: var(--border); }
.entry-content ol.timeline li { position: relative; margin-bottom: 18px; }
.entry-content ol.timeline li::before { content: ""; position: absolute; top: 7px; left: -28px; width: 14px; height: 14px; background: #fff; border: 3px solid var(--red); border-radius: 50%; }
.timeline__date { display: block; font-weight: 700; color: var(--navy); }
.layout-sidebar > .sidebar { align-self: stretch; }
.sidebar-toc { position: sticky; top: calc(var(--header-h-compact) + 20px); }
.culture-block { margin: 8px 0 44px; }
.culture-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.culture-block__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 1024px) {
  .sidebar-toc { position: static; }
  .layout-sidebar > .sidebar { align-self: start; }
}

/* ---------- Product comparison (inc/compare.php, site.js #4) ---------- */
.compare-toggle { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy); background: none; border: 0; cursor: pointer; }
.compare-toggle[hidden], .compare-bar[hidden] { display: none; }
.compare-toggle__box { position: relative; flex-shrink: 0; width: 16px; height: 16px; background: #fff; border: 1.5px solid var(--text-2); border-radius: 3px; }
.compare-toggle:hover { color: var(--red); }
.compare-toggle[aria-pressed="true"] { color: var(--red); }
.compare-toggle[aria-pressed="true"] .compare-toggle__box { background: var(--red); border-color: var(--red); }
.compare-toggle[aria-pressed="true"] .compare-toggle__box::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.product-card__compare { align-self: flex-start; margin: 10px 18px 0; }
.compare-toggle--page { min-height: 40px; padding: 0 16px; border: 1px solid var(--border); background: #fff; }

.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 12px 0; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 -8px 28px rgba(13, 27, 61, .14); }
.compare-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.compare-bar__list { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; min-width: 0; }
.compare-bar__item { display: flex; align-items: center; gap: 8px; max-width: 280px; padding: 4px 4px 4px 4px; font-size: 13.5px; font-weight: 600; color: var(--navy); background: var(--gray-050); border: 1px solid var(--border); }
.compare-bar__item img { width: 40px; height: 40px; object-fit: cover; }
.compare-bar__item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-bar__remove { flex-shrink: 0; width: 26px; height: 26px; font-size: 20px; line-height: 1; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.compare-bar__remove:hover { color: var(--red); }
.compare-bar__note { order: 3; flex-basis: 100%; font-size: 13.5px; color: var(--red); }
.compare-bar__note:empty { display: none; }
.compare-bar__actions { display: flex; align-items: center; gap: 16px; }
.compare-bar__clear { font: inherit; font-size: 13px; color: var(--text-2); text-decoration: underline; background: none; border: 0; cursor: pointer; }
body.has-compare-bar { padding-bottom: 84px; }
body.has-compare-bar .fab { bottom: 96px; }

.compare-diff { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14.5px; font-weight: 600; color: var(--navy); cursor: pointer; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); background: #fff; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-table__corner, .compare-table tbody th { width: 200px; font-weight: 600; color: var(--navy); background: var(--gray-050); }
.compare-table__product { font-weight: 400; }
.compare-table__media { display: block; max-width: 240px; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; background: var(--gray-050); }
.compare-table__media img { width: 100%; height: 100%; object-fit: cover; }
.compare-table__name { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.compare-table__name:hover { color: var(--red); }
.compare-table__remove { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--text-2); text-decoration: underline; }
.compare-table__remove:hover { color: var(--red); }
.compare-table__empty { color: var(--text-2); font-style: italic; }
.compare-table.only-diff tr.is-same { display: none; }
.compare-table__actions td > * + * { margin-top: 12px; }
.compare-table__actions .link-more { display: inline-flex; }
.compare-empty p + p { margin-top: 8px; }
.compare-add { max-width: 640px; margin-top: 32px; padding: 24px; background: var(--gray-050); border: 1px solid var(--border); }
.compare-add label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--navy); }
.compare-add__row { display: flex; gap: 10px; }
.compare-add select { flex: 1; min-width: 0; height: 42px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid var(--border); }
@media (max-width: 640px) {
  .compare-bar { padding: 10px 0; }
  .compare-bar__item.has-thumb span, .compare-bar__clear { display: none; }
  body.has-compare-bar { padding-bottom: 72px; }
  body.has-compare-bar .fab { bottom: 84px; }
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .compare-table__corner, .compare-table tbody th { width: 120px; }
  .compare-add { padding: 18px 16px; }
}

/* ---------- Product list filter (inc/product-filter.php, site.js #6) ---------- */
.product-filter__toggle[hidden], .product-filter__apply[hidden] { display: none; }
.product-filter__group { min-width: 0; margin: 0; }
.product-filter__group legend { float: left; width: 100%; }
.product-filter__group legend + * { clear: both; }
.product-filter__sub { margin: 12px 0 4px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.product-filter__sub:first-of-type { margin-top: 0; }
.product-filter__list { list-style: none; margin: 0; padding: 0; }
.product-filter__option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; color: var(--text); cursor: pointer; }
.product-filter__option input { flex-shrink: 0; width: 17px; height: 17px; margin: 0; accent-color: var(--red); cursor: pointer; }
.product-filter__option:hover .product-filter__name { color: var(--red); }
.product-filter__option input:checked ~ .product-filter__name { font-weight: 600; color: var(--navy); }
.product-filter__name { flex: 1; min-width: 0; }
.product-filter__count { flex-shrink: 0; min-width: 26px; padding: 1px 7px; font-size: 12px; font-weight: 600; text-align: center; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 999px; }
.product-filter__option.is-disabled { cursor: default; opacity: .45; }
.product-filter__option.is-disabled:hover .product-filter__name { color: inherit; }
.product-filter__actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.product-filter__clear { font-size: 13.5px; color: var(--text-2); text-decoration: underline; }
.product-filter__clear:hover { color: var(--red); }
.product-filter.is-loading { opacity: .6; pointer-events: none; }
.product-filter__toggle { display: none; }
@media (min-width: 1025px) {
  /* Filter in the left column (29/09/2026). It is first in the source, so no reordering. */
  .layout-sidebar--filter { grid-template-columns: 300px minmax(0, 1fr); }
}

.product-results { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; }
.product-results__count { font-size: 14.5px; color: var(--text-2); }
.product-results__count strong { color: var(--navy); }
.product-results__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.product-results__chips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13.5px; font-weight: 600; color: var(--navy); background: var(--blue-050); border-radius: 999px; }
.product-results__chips a span { font-size: 16px; line-height: 1; }
.product-results__chips a:hover { color: #fff; background: var(--red); }

@media (max-width: 1024px) {
  /* Filter above the results (first in the source), folded behind a button once site.js runs. */
  .product-filter__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 700; color: var(--navy); background: var(--gray-050); border: 1px solid var(--border); cursor: pointer; }
  .product-filter__toggle::after { content: ""; width: 8px; height: 8px; margin-left: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
  .product-filter.is-open .product-filter__toggle::after { transform: rotate(-135deg); }
  .product-filter__badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; color: #fff; background: var(--red); border-radius: 999px; }
  .product-filter.is-enhanced:not(.is-open) .product-filter__body { display: none; }
  .product-filter.is-enhanced .product-filter__body { margin-top: 12px; }
  .product-filter__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-filter__body .sidebar-box + .sidebar-box { margin-top: 0; }
  .product-filter__actions { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 640px) {
  .product-filter__body { grid-template-columns: 1fr; }
}

/* ---------- Liên hệ: hub + child pages (page-lien-he.php) ---------- */
.contact-intro { margin-bottom: 32px; }
.contact-hub__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; color: var(--text); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow-hover); }
.contact-card__icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--red); background: var(--pnt-red-soft); border-radius: 50%; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card__title { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.contact-card__desc { flex: 1; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.contact-card .link-more { align-self: flex-start; }
.contact-nav { margin-bottom: 32px; }
.office-card__name { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--navy); }
/* Form pages: the homepage "Trao đổi về công trình" band (design.css .contact), full width and flush with the footer.
   Fixed padding – the homepage variant shrinks on short screens to fit one viewport, which is not needed here. */
.page-body--flush { padding-bottom: 0; }
.contact--page { padding-block: 72px; }
.contact--page .contact__inner { align-items: start; }
.contact__hotline { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--pnt-text-blue); }
.contact__hotline a { color: var(--red); white-space: nowrap; }
.contact__hotline a:hover { text-decoration: underline; }
.lead-form.empty-state { margin: 0; }
.contact--page .field textarea { height: 132px; }   /* CF7 default rows="10" is too tall next to the intro */
@media (max-width: 1024px) {
  .contact-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .contact--page { padding-block: 48px; }
}
@media (max-width: 640px) {
  .contact-hub__grid { grid-template-columns: 1fr; }
}

/* ---------- Product page: the brand above the title links to the brand page ---------- */
.single-hero__info .eyebrow a { color: inherit; }
.single-hero__info .eyebrow a:hover { color: var(--red-dark); }

/* ============================================================
   HOMEPAGE on a 13" laptop (≥1181px wide, ≤900px tall): "Giải pháp + Dịch vụ" and "Đối tác + Sản phẩm" fill the
   whole screen (Sơn, 29/09/2026). design.css keeps 56px at the bottom of each block for the floating "Liên hệ"
   button; here that button becomes a vertical tab in the right margin (≥40px wide at these sizes), so the two blocks
   end 22px above the screen edge and their photos grow into the freed height.
   Đối tác + Sản phẩm, 2nd pass (Sơn, same day: "kéo dãn ra hơn nữa"): grey border 14 → 6px, white frame padding
   22 → 12px top and bottom, the 36px go to the product photos (1280×631: 148 → 204px).
   ============================================================ */
@media (min-width: 1181px) and (max-height: 900px) {
  .home .solutions { padding-bottom: 22px; }
  .home .solutions .tile { height: clamp(110px, calc(95.8vh - 426px), 330px); }
  .home .partners-products { padding-block: 6px; }
  .home .pp { padding-top: 12px; padding-bottom: 12px; }
  .home .product-card__media { height: clamp(92px, calc(90vh - 364px), 330px); }

  .home .fab { right: 0; bottom: 14px; gap: 8px; min-height: 0; width: 34px; padding: 14px 0 16px;
    writing-mode: vertical-rl; font-size: 13px; letter-spacing: .02em;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
  .home .fab svg { width: 16px; height: 16px; }
  .home .fab:hover { transform: translateX(-2px); }
}
/* laptop 1181–1260px: the service band is 20px taller there (design.css), the photos give it back */
@media (min-width: 1181px) and (max-width: 1260px) and (max-height: 900px) {
  .home .solutions .tile { height: clamp(110px, calc(95.8vh - 446px), 330px); }
}

/* ---------- Google Translate (EN / 中, site.js): hide its top bar, tooltips and hover highlight ---------- */
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight, .VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q { background: none !important; box-shadow: none !important; }

/* ---------- Hero: prev / next buttons and slide bars (Sơn, 29/09/2026 – colours of the reference screenshot) ----------
   Translucent light buttons with white arrows instead of white buttons with blue arrows; bars light grey, current one red. */
.hero__arrow { color: #fff; background: rgba(255,255,255,.18); }
.hero__arrow:hover { color: #fff; background: var(--red); }
.hero__dot { background: rgba(255,255,255,.55); box-shadow: none; }
.hero__dot.is-active { background: var(--red); }
