/* =========================================================
   Richfarm JSC — demo trang chủ
   Breakpoints: 1200 · 992 · 768 · 576
   ========================================================= */
:root {
  --red: #b3191f;
  --red-dark: #8e1217;
  --ink: #222;
  --ink-2: #555;
  --muted: #777;
  --line: #e5e5e5;
  --grey: #efefef;
  --white: #fff;
  --container: 1280px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
  --font: "Roboto", "Segoe UI", Arial, Helvetica, sans-serif;
  --header-h: 92px;
}
*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--red); padding: 10px 16px; border-radius: 6px; font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.logo img { width: 92px; height: auto; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a { padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__tools { display: flex; align-items: center; gap: 22px; }
.icon-btn { background: none; border: 0; padding: 6px; color: var(--red); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; display: block; }
.lang { display: flex; gap: 18px; font-size: 12px; color: var(--ink-2); }
.lang__item { display: inline-flex; align-items: center; gap: 8px; }
.lang__item[aria-current="true"] { color: var(--red); font-weight: 700; }
.flag { width: 20px; height: 13px; border-radius: 2px; display: inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag--vn { background: #da251d radial-gradient(circle at 50% 50%, #ffcd00 0 3px, transparent 3.5px); }
.flag--uk { background:
  linear-gradient(90deg, transparent 8px, #c8102e 8px 12px, transparent 12px),
  linear-gradient(0deg, transparent 5px, #c8102e 5px 8px, transparent 8px),
  linear-gradient(90deg, transparent 7px, #fff 7px 13px, transparent 13px),
  linear-gradient(0deg, transparent 4px, #fff 4px 9px, transparent 9px),
  #012169; }
.burger { display: none; background: none; border: 0; padding: 8px 4px; }
.burger span { display: block; width: 24px; height: 2.5px; margin: 4px 0; background: var(--red); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.searchbar { border-top: 1px solid var(--line); background: #fafafa; }
.searchbar__inner { display: flex; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.searchbar input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid #ccc; border-radius: 24px; font: inherit; }
.searchbar input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,25,31,.15); }
.searchbar button { padding: 0 22px; border: 0; border-radius: 24px; background: var(--red); color: #fff; font-weight: 500; }

/* ---------- Hero ---------- */
.hero img { width: 100%; aspect-ratio: 1920 / 703; object-fit: cover; }

/* ---------- Section chung ---------- */
.section { padding: 56px 0 72px; }
.section--grey { background: var(--grey); }
.title { text-align: center; color: var(--red); font-size: 38px; font-weight: 500; line-height: 1.2; margin-bottom: 46px; }
.title::after { content: ""; display: block; width: 84px; height: 3px; margin: 16px auto 0; background: var(--red); }
.subtitle { color: var(--red); font-size: 30px; font-weight: 500; margin: 36px 0 24px; }
.lead { max-width: 1020px; margin: -16px auto 36px; text-align: center; font-size: 17px; color: var(--ink-2); }

/* ---------- Giới thiệu ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.intro__kicker { font-size: 22px; color: var(--ink); }
.intro__name { font-size: 33px; font-weight: 500; margin-bottom: 14px; }
.intro__text > p:not([class]) { font-size: 14.5px; color: var(--ink-2); text-align: justify; hyphens: auto; }
.intro__connect { font-size: 21px; font-weight: 500; margin: 34px 0 18px; }
.social { display: flex; gap: 40px; }
.social a { display: grid; justify-items: center; gap: 8px; font-size: 15px; }
.social__ic { width: 62px; height: 62px; border-radius: 50%; border: 2px solid #1c62b9; display: grid; place-items: center; color: #1c62b9; transition: .2s; }
.social li:nth-child(2) .social__ic { border-color: var(--red); color: var(--red); }
.social li:nth-child(3) .social__ic { border-color: #0a68fe; color: #0a68fe; }
.social svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.social svg .fill { fill: currentColor; stroke: none; }
.social b { font-size: 12px; border: 2px solid currentColor; border-radius: 7px; padding: 4px 3px; line-height: 1; }
.social a:hover .social__ic { background: currentColor; }
.social a:hover .social__ic svg, .social a:hover .social__ic b { color: #fff; stroke: #fff; border-color: #fff; }
.social li:nth-child(1) a:hover .social__ic { background: #1c62b9; }
.social li:nth-child(2) a:hover .social__ic { background: var(--red); }
.social li:nth-child(3) a:hover .social__ic { background: #0a68fe; }
.intro__media { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.intro__media img { width: 100%; aspect-ratio: 617 / 385; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 3px solid #fff; background: #5b5b5b; display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0,0,0,.35); transition: transform .2s, background .2s; }
.play svg { width: 36px; height: 36px; fill: #fff; margin-left: 4px; }
.play:hover { transform: scale(1.08); background: var(--red); }

/* ---------- Tabs sản phẩm ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: -10px; }
.tabs button { min-width: 200px; padding: 9px 22px; border-radius: 22px; border: 1.5px solid var(--red); background: #fff; color: var(--red); font-size: 15px; transition: .2s; }
.tabs button:hover { background: #fbeaea; }
.tabs button[aria-selected="true"] { background: var(--red); color: #fff; }
.empty { padding: 60px 16px; text-align: center; color: var(--muted); background: #fff; border-radius: 4px; }

/* ---------- Carousel chung (scroll-snap) ---------- */
.carousel__track { display: grid; grid-auto-flow: column; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 14px; margin: 0 -4px; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { scroll-snap-align: start; }
.products { grid-auto-columns: calc((100% - 3 * 32px) / 4); }
.news { grid-auto-columns: calc((100% - 2 * 32px) / 3); }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: 34px; min-height: 12px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0; background: #c9c9c9; transition: .2s; }
.dots button[aria-current="true"] { background: var(--red); }

/* Sản phẩm */
.product { display: block; height: 100%; background: #fff; box-shadow: var(--shadow); padding: 18px 12px 30px; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.product img { width: 82%; margin: 0 auto 22px; aspect-ratio: 284 / 330; object-fit: contain; }
.product h4 { text-align: center; color: #1b3f78; font-size: 31px; font-weight: 500; line-height: 1.2; margin-bottom: 14px; }
.product p { font-size: 15px; color: var(--ink-2); }

/* Truyền thông */
.carousel--news { max-width: 1180px; margin: 0 auto; }
.post { height: 100%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.post img { width: 100%; aspect-ratio: 368 / 222; object-fit: cover; }
.post__body { padding: 22px 20px 30px; display: flex; flex-direction: column; flex: 1; }
.post h3 { color: var(--red); font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.post h3 a:hover { text-decoration: underline; }
.post p { font-size: 13.5px; color: var(--ink-2); flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.btn { align-self: flex-start; margin-top: 26px; padding: 6px 34px; border-radius: 20px; background: var(--red); color: #fff; font-size: 14px; transition: background .2s; }
.btn:hover { background: var(--red-dark); }

/* ---------- Gallery coverflow ---------- */
.gallery { position: relative; display: flex; align-items: center; gap: 24px; max-width: 1280px; margin: 0 auto; }
.gallery__track { flex: 1; display: grid; grid-template-columns: 1fr 1.66fr 1fr; align-items: center; gap: 36px; min-height: 380px; }
.gallery__item { transition: transform .45s ease, opacity .45s ease; text-align: center; }
.gallery__item img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.gallery__item span { display: block; margin-top: 16px; color: var(--red); font-size: 19px; }
.gallery__item.is-side { opacity: .95; }
.gallery__item.is-center span { font-weight: 500; }
.gallery__item a:hover span { text-decoration: underline; }
.gallery__arrow { flex: none; width: 44px; height: 60px; border: 0; background: none; color: #333; }
.gallery__arrow svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gallery__arrow:hover { color: var(--red); }

/* ---------- Bản đồ ---------- */
.map { position: relative; height: 400px; background: #dfe8de url("../img/map.jpg") center / cover no-repeat; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map__card { position: absolute; left: 50%; top: 48px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); background: rgba(255,255,255,.92); padding: 16px 22px; text-align: center; border-radius: 4px; box-shadow: var(--shadow); pointer-events: none; }
.map__card h2 { color: #2a4f97; font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.map__card p { font-size: 13px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--red); color: #fff; padding: 40px 0 26px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; max-width: 1312px; }
.footer__grid > div:last-child { padding-left: 13%; }
.footer__title { font-size: 17px; font-weight: 500; margin-bottom: 22px; }
.footer__info li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.fi { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.fi svg { width: 13px; height: 13px; fill: var(--red); }
.footer__tax { margin-left: 46px; }
.footer__links li { margin-bottom: 12px; }
.footer a:hover { text-decoration: underline; }
.footer__copy { margin-top: 26px; padding-left: 28px; font-size: 13px; opacity: .95; }

/* ---------- Nút nổi ---------- */
.floating { position: fixed; right: 50px; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: grid; gap: 20px; justify-items: center; }
.fab { width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); color: #fff; font-weight: 700; }
.fab svg { width: 28px; height: 28px; fill: #fff; }
.fab--top { width: 48px; height: 48px; border: 1px solid #ddd; background: #fff; color: #333; font-size: 11px; line-height: 1; align-content: center; gap: 2px; opacity: 0; visibility: hidden; transition: .25s; }
.fab--top svg { width: 16px; height: 16px; fill: none; stroke: #333; stroke-width: 2; }
.fab--top.is-visible { opacity: 1; visibility: visible; }
.fab--call { background: #e3262d; animation: ring 2.4s infinite; }
.fab--zalo { background: #0a68fe; font-size: 15px; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(227,38,45,.45), 0 4px 14px rgba(0,0,0,.25); } 60% { box-shadow: 0 0 0 14px rgba(227,38,45,0), 0 4px 14px rgba(0,0,0,.25); } }

/* ---------- Modal ---------- */
.modal { width: min(900px, 92vw); padding: 0; border: 0; border-radius: 8px; background: #111; color: #fff; }
.modal::backdrop { background: rgba(0,0,0,.7); }
.modal__frame { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 24px; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }
.modal__frame code { color: #ffcd00; }
.modal__close { position: absolute; right: 8px; top: 6px; z-index: 1; width: 40px; height: 40px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; border-radius: 50%; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .nav { gap: 20px; font-size: 13px; }
  .header__inner { gap: 20px; }
  .products { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .carousel__track { gap: 24px; }
  .news { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .floating { right: 20px; }
}

@media (max-width: 992px) {
  :root { --header-h: 72px; }
  .logo img { width: 72px; }
  .burger { display: block; }
  .header__tools { margin-left: auto; gap: 14px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.08); font-size: 15px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .title { font-size: 32px; margin-bottom: 36px; }
  .intro { grid-template-columns: 1fr; gap: 32px; }
  .products { grid-auto-columns: calc((100% - 24px) / 2); }
  .news { grid-auto-columns: calc((100% - 24px) / 2); }
  .gallery__track { grid-template-columns: 1fr 1.5fr 1fr; gap: 16px; min-height: 0; }
  .gallery__item span { font-size: 15px; }
  .footer__grid > div:last-child { padding-left: 0; }
}

@media (max-width: 768px) {
  .section { padding: 40px 0 52px; }
  .title { font-size: 27px; }
  .subtitle { font-size: 22px; margin: 28px 0 18px; }
  .lead { font-size: 15px; margin-top: -10px; }
  .intro__kicker { font-size: 18px; }
  .intro__name { font-size: 27px; }
  .social { gap: 28px; }
  .tabs { gap: 10px; }
  .tabs button { min-width: 0; flex: 1 1 calc(50% - 10px); padding: 9px 12px; font-size: 14px; }
  .product h4 { font-size: 24px; }
  .news { grid-auto-columns: 86%; }
  .gallery { gap: 4px; }
  .gallery__track { display: block; }
  .gallery__item.is-side { display: none; }
  .gallery__arrow { width: 36px; }
  .map { height: 360px; }
  .map__card { top: 16px; padding: 12px 14px; }
  .map__card h2 { font-size: 14px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__tax { display: block; margin: 4px 0 0; }
  .footer__copy { padding-left: 16px; }
  .floating { right: 14px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .fab { width: 52px; height: 52px; border-width: 3px; }
  .fab svg { width: 22px; height: 22px; }
  .fab--top { width: 42px; height: 42px; }
  .fab--zalo { font-size: 13px; }
}

@media (max-width: 576px) {
  .lang { gap: 10px; }
  .lang__item .flag { display: none; }
  .products { grid-auto-columns: 78%; }
  .carousel__track { gap: 16px; }
  .searchbar button { padding: 0 16px; }
}

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

/* =========================================================
   TRANG CON — dùng chung
   ========================================================= */
.banner { position: relative; padding: 78px 0 64px; color: #fff; text-align: center;
  background: linear-gradient(180deg, rgba(60, 8, 10, .55), rgba(60, 8, 10, .72)), url("../img/banner.jpg") center 40% / cover no-repeat; }
.banner h1 { font-size: 40px; font-weight: 500; letter-spacing: .5px; }
.banner h1::after { content: ""; display: block; width: 84px; height: 3px; margin: 14px auto 0; background: #fff; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 16px 0 0; padding: 0; font-size: 14px; }
.crumbs li + li::before { content: "›"; margin: 0 10px; opacity: .7; }
.crumbs a:hover { text-decoration: underline; }
.crumbs--bar { background: #f6f6f6; border-bottom: 1px solid var(--line); }
.crumbs--bar ol { justify-content: flex-start; margin: 0; padding: 14px 0; color: var(--muted); font-size: 13px; }
.crumbs--bar a:hover { color: var(--red); }
.crumbs--bar [aria-current] { color: var(--ink); }
.section--inner { padding-top: 44px; }
.note { margin-top: 18px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--red); font-size: 14px; text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--red); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--lg { padding: 11px 28px; font-size: 15px; font-weight: 500; border-radius: 24px; margin-top: 0; }
.btn--outline { background: #fff; color: var(--red); }
.btn--outline:hover { background: #fbeaea; }
.btn--white { background: #fff; color: var(--red); border-color: #fff; }
.btn--white:hover { background: #fde9e9; }
.btn--zalo { background: #0a68fe; border-color: #0a68fe; }
.btn--zalo:hover { background: #0855cf; }
.btn--block { display: flex; width: 100%; margin-top: 16px; padding: 11px 16px; border-radius: 24px; }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; justify-content: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 15px 18px; white-space: nowrap; font-weight: 500; font-size: 14.5px; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--red); border-bottom-color: var(--red); }

/* Layout 2 cột */
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.layout--right { grid-template-columns: minmax(0, 1fr) 320px; }
.sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-box { background: #fff; padding: 20px; box-shadow: var(--shadow); }
.side-box__title { font-size: 16px; font-weight: 700; color: var(--red); padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--red); }
.side-checks li { margin-bottom: 10px; }
.side-checks label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.side-checks input { width: 17px; height: 17px; accent-color: var(--red); }
.count { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.side-cats li { border-bottom: 1px dashed var(--line); }
.side-cats a { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14.5px; }
.side-cats a:hover { color: var(--red); }
.side-cats span { color: var(--muted); }
.side-posts li + li { margin-top: 14px; }
.side-posts a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; font-size: 14px; font-weight: 500; line-height: 1.4; }
.side-posts img { width: 96px; height: 64px; object-fit: cover; }
.side-posts a:hover span { color: var(--red); }
.side-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.side-gallery button { padding: 0; border: 0; background: none; display: block; width: 100%; overflow: hidden; }
.side-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s; }
.side-gallery button:hover img { transform: scale(1.06); }
.side-cta { background: var(--red); color: #fff; padding: 22px 20px; text-align: center; }
.side-cta p { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.side-cta .btn { margin: 0; }

/* Toolbar + chips */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; padding: 12px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.toolbar p { font-weight: 500; }
.toolbar__right { display: flex; align-items: center; gap: 12px; }
.toolbar label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
select, input[type="search"], input[type="text"], input[type="email"], input[type="tel"], input:not([type]), textarea {
  font: inherit; font-size: 14.5px; color: var(--ink); background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 9px 12px; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(179,25,31,.12); }
.filter-toggle { display: none; padding: 8px 16px; border: 1.5px solid var(--red); border-radius: 20px; background: #fff; color: var(--red); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 16px; background: #fbeaea; color: var(--red); border: 0; font-size: 13px; }
.chip::after { content: "×"; font-size: 16px; line-height: 1; }

/* Lưới sản phẩm */
.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-products--4 { grid-template-columns: repeat(3, 1fr); }
.grid-products > li[hidden] { display: none; }
.product h3 { text-align: center; color: #1b3f78; font-size: 27px; font-weight: 500; line-height: 1.2; margin-bottom: 12px; }
.product__brand { display: block; text-align: center; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin: -8px 0 6px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.services li { text-align: center; padding: 34px 26px; border: 1px solid var(--line); transition: .2s; }
.services li:hover { border-color: var(--red); box-shadow: var(--shadow); }
.services__ic, .perks__ic, .vm__ic, .cc__ic { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: #fbeaea; display: grid; place-items: center; }
.services__ic svg, .perks__ic svg, .vm__ic svg, .cc__ic svg { width: 32px; height: 32px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.services h3, .perks h3 { font-size: 19px; font-weight: 500; color: var(--red); margin-bottom: 10px; }
.services p, .perks p { font-size: 14.5px; color: var(--ink-2); }

/* =========================================================
   VỀ CHÚNG TÔI
   ========================================================= */
.facts { display: grid; gap: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vm__card { background: #fff; padding: 40px 36px; text-align: center; box-shadow: var(--shadow); }
.vm__card h3 { font-size: 24px; font-weight: 500; color: var(--red); margin-bottom: 12px; }
.vm__card p { font-size: 16px; color: var(--ink-2); max-width: 46ch; margin: 0 auto; }
.vm__card--red { background: var(--red); color: #fff; }
.vm__card--red h3, .vm__card--red p { color: #fff; }
.vm__card--red .vm__ic { background: rgba(255,255,255,.15); }
.vm__card--red .vm__ic svg { stroke: #fff; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: v; }
.values li { padding: 28px 24px; border-top: 4px solid var(--red); background: #fafafa; }
.values span { display: block; font-size: 40px; font-weight: 700; color: #f1c7c8; line-height: 1; margin-bottom: 10px; }
.values h3 { font-size: 21px; font-weight: 500; margin-bottom: 8px; color: var(--red); }
.values p { font-size: 14.5px; color: var(--ink-2); }
.factory { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; }
.factory > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.factory__card { position: relative; max-width: 520px; background: rgba(255,255,255,.95); padding: 36px 34px; box-shadow: 0 10px 30px rgba(0,0,0,.2); border-left: 5px solid var(--red); }
.factory__card h2 { color: var(--red); font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.factory__card p { color: var(--ink-2); margin-bottom: 20px; }
.factory__card .btn { margin: 0; }
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.brand { display: flex; flex-direction: column; height: 100%; background: #fff; padding: 24px 20px; text-align: center; box-shadow: var(--shadow); transition: transform .2s; }
.brand:hover { transform: translateY(-4px); }
.brand img { width: 60%; margin: 0 auto 16px; }
.brand__mono { width: 120px; height: 140px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 56px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--red), #e2575b); border-radius: 8px; }
.brand h3 { font-size: 22px; font-weight: 500; color: #1b3f78; margin-bottom: 8px; }
.brand p { font-size: 14px; color: var(--ink-2); flex: 1; }
.brand__more { margin-top: 14px; color: var(--red); font-weight: 500; font-size: 14px; }
.brand__more::after { content: " →"; }

/* =========================================================
   CHI TIẾT SẢN PHẨM
   ========================================================= */
.pd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; margin-bottom: 48px; }
.pd__media { background: #fff; border: 1px solid var(--line); padding: 30px; text-align: center; position: sticky; top: calc(var(--header-h) + 20px); }
.pd__zoom { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.pd__zoom img { width: 78%; margin: 0 auto; transition: transform .3s; }
.pd__zoom:hover img { transform: scale(1.03); }
.pd__hint { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.pd__brand { color: var(--red); text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; font-weight: 700; }
.pd__name { font-size: 46px; font-weight: 500; color: #1b3f78; line-height: 1.15; margin: 6px 0 12px; }
.pd__short { font-size: 18px; color: var(--ink-2); margin-bottom: 22px; }
.pd__attrs { margin: 0 0 22px; border-top: 1px solid var(--line); }
.pd__attrs div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pd__attrs dt { color: var(--muted); }
.pd__attrs dd { margin: 0; font-weight: 500; }
.pd__features { margin-bottom: 28px; }
.pd__features li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.pd__features li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); }
.pd__features li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pd__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ptabs { border: 1px solid var(--line); margin-bottom: 48px; }
.tabs--left { justify-content: flex-start; gap: 0; margin: 0; border-bottom: 1px solid var(--line); background: #fafafa; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs--left::-webkit-scrollbar { display: none; }
.tabs--left button { min-width: 0; border: 0; border-radius: 0; background: none; color: var(--ink); padding: 15px 24px; white-space: nowrap; font-weight: 500; border-bottom: 3px solid transparent; }
.tabs--left button:hover { background: #fff; }
.tabs--left button[aria-selected="true"] { background: #fff; color: var(--red); border-bottom-color: var(--red); }
.ptabs [role="tabpanel"] { padding: 28px 30px; }
.table-wrap { overflow-x: auto; }
.spec { width: 100%; max-width: 640px; border-collapse: collapse; font-size: 15px; }
.spec caption { text-align: left; font-weight: 500; margin-bottom: 10px; }
.spec th, .spec td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.spec th { font-weight: 400; background: #fafafa; width: 60%; }
.spec td { font-weight: 500; }

/* Nội dung văn bản */
.prose { font-size: 16px; line-height: 1.75; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose h2 { font-size: 22px; font-weight: 500; color: var(--red); margin: 30px 0 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--red); text-decoration: underline; }

/* =========================================================
   TRUYỀN THÔNG
   ========================================================= */
.filterbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills button { padding: 8px 20px; border-radius: 20px; border: 1.5px solid var(--red); background: #fff; color: var(--red); font-size: 14.5px; }
.pills button[aria-pressed="true"] { background: var(--red); color: #fff; }
.searchbox { position: relative; }
.searchbox input { width: 280px; padding-right: 38px; border-radius: 20px; }
.searchbox svg { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.1); margin-bottom: 32px; }
.feature[hidden] { display: none; }
.feature__img img { width: 100%; height: 100%; aspect-ratio: 368 / 222; object-fit: cover; }
.feature__body { padding: 36px 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.feature h2 { color: var(--red); font-size: 28px; font-weight: 500; line-height: 1.3; margin-bottom: 14px; }
.feature h2 a:hover { text-decoration: underline; }
.feature p { color: var(--ink-2); }
.post__cat { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.grid-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-posts--2 { grid-template-columns: repeat(2, 1fr); }
.grid-posts > li[hidden] { display: none; }
.post__img { display: block; overflow: hidden; }
.post__img img { transition: transform .3s; }
.post:hover .post__img img { transform: scale(1.04); }
.media__btn { position: relative; padding: 0; border: 0; background: #000; display: block; width: 100%; cursor: pointer; overflow: hidden; }
.media__btn img { width: 100%; aspect-ratio: 368 / 222; object-fit: cover; transition: transform .3s, opacity .3s; }
.media__btn:hover img { transform: scale(1.04); opacity: .85; }
.media__play, .media__zoom { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 3px solid #fff; background: rgba(179,25,31,.9); }
.media__play::after { content: ""; position: absolute; left: 22px; top: 16px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.media__zoom { background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.media__zoom::before { content: ""; position: absolute; left: 15px; top: 15px; width: 16px; height: 16px; border: 2.5px solid #fff; border-radius: 50%; }
.media__zoom::after { content: ""; position: absolute; left: 32px; top: 32px; width: 9px; height: 2.5px; background: #fff; transform: rotate(45deg); transform-origin: left; }
.media__btn:hover .media__zoom, .media__btn:focus-visible .media__zoom { opacity: 1; }
.media h3 { color: var(--ink); }

/* Bài viết chi tiết */
.article__title { font-size: 34px; font-weight: 500; line-height: 1.25; color: var(--red); margin-bottom: 10px; }
.article__meta { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.article__lead { font-size: 18px; font-weight: 500; line-height: 1.6; color: var(--ink); margin-bottom: 24px; }
.article figure { margin: 0 0 26px; }
.article figure img { width: 100%; aspect-ratio: 368 / 222; object-fit: cover; }
.article figcaption { font-size: 13.5px; color: var(--muted); font-style: italic; text-align: center; margin-top: 10px; }
.toc { background: #fbf3f3; border-left: 4px solid var(--red); padding: 18px 22px; margin-bottom: 28px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 15px; }
.toc a:hover { color: var(--red); text-decoration: underline; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--grey); padding: 22px 24px; margin: 32px 0; }
.callout .btn { margin: 0; }
.article__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 4px 12px; border-radius: 14px; background: #f2f2f2; font-size: 13px; color: var(--ink-2); }
.tags a:hover { background: #fbeaea; color: var(--red); }
.share { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); position: relative; }
.share__btn { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 700; }
.share__btn svg { width: 17px; height: 17px; fill: #fff; }
.share__btn--fb { background: #3b5998; } .share__btn--zalo { background: #0a68fe; } .share__btn--copy { background: var(--red); }
.share__toast { position: absolute; right: 0; top: calc(100% + 6px); background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.share__toast.is-shown { opacity: 1; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 8px; }
.pn { display: block; padding: 16px 18px; border: 1px solid var(--line); font-weight: 500; line-height: 1.4; }
.pn span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.pn--prev span::before { content: "← "; } .pn--next { text-align: right; } .pn--next span::after { content: " →"; }
.pn:hover { border-color: var(--red); color: var(--red); }

/* =========================================================
   TUYỂN DỤNG
   ========================================================= */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; margin-bottom: 20px; }
.perks li { padding: 28px 20px; background: #fafafa; }
.jobfilter { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.jobfilter input, .jobfilter select { width: 100%; }
.jobcount { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.jobs { display: grid; gap: 14px; }
.jobs > li[hidden] { display: none; }
.job { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); transition: box-shadow .2s; }
.job:hover { box-shadow: var(--shadow); }
.job h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.job h3 a:hover { color: var(--red); }
.job__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; color: var(--ink-2); }
.job__meta li { display: inline-flex; align-items: center; gap: 6px; }
.job__meta svg { width: 15px; height: 15px; fill: none; stroke: var(--red); stroke-width: 2; }
.job__salary { text-align: right; font-weight: 700; color: var(--red); }
.job__salary span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.job .btn { margin: 0; }
.card-block { background: #fff; padding: 32px 34px; box-shadow: var(--shadow); margin-bottom: 24px; }
.block-title { font-size: 21px; font-weight: 500; color: var(--red); margin-bottom: 6px; }
.block-sub { color: var(--ink-2); margin-bottom: 20px; }
.jd .prose h2 { font-size: 20px; }
.jobsum dl { margin: 0; }
.jobsum div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.jobsum dt { color: var(--muted); }
.jobsum dd { margin: 0; font-weight: 500; text-align: right; }
.side-jobs li + li { border-top: 1px solid var(--line); }
.side-jobs a { display: block; padding: 10px 0; font-weight: 500; font-size: 14.5px; }
.side-jobs a span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.side-jobs a:hover { color: var(--red); }

/* Form */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field[hidden] { display: none; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field abbr { color: var(--red); text-decoration: none; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; }
.field input[readonly] { background: #f5f5f5; color: var(--ink-2); }
.field input[type="file"] { padding: 8px; border: 1px dashed #bbb; border-radius: 4px; background: #fafafa; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field--check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--red); flex: none; }
.field__err { min-height: 0; font-size: 13px; color: var(--red); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); background: #fff8f8; }
.form__ok { margin-top: 16px; padding: 14px 16px; background: #eaf6ec; color: #1d6b2f; border-left: 4px solid #2e9a4a; }

/* =========================================================
   LIÊN HỆ
   ========================================================= */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.contact-cards li { text-align: center; padding: 28px 18px; border: 1px solid var(--line); }
.contact-cards h2 { font-size: 17px; font-weight: 500; color: var(--red); margin-bottom: 6px; }
.contact-cards p { font-size: 14.5px; color: var(--ink-2); }
.contact-cards a:hover { color: var(--red); text-decoration: underline; }
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.contact .card-block { margin: 0; }
.contact__map { display: flex; flex-direction: column; min-height: 420px; background: #dfe8de url("../img/map.jpg") center / cover; }
.contact__map iframe { flex: 1; width: 100%; border: 0; min-height: 380px; }
.contact__map .btn { margin: 0; border-radius: 0; }

/* Lightbox */
.lightbox { max-width: min(1100px, 94vw); padding: 0; border: 0; background: transparent; color: #fff; text-align: center; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox p { margin-top: 12px; }
.lightbox .modal__close { top: 0; right: 0; }

/* =========================================================
   RESPONSIVE — TRANG CON
   ========================================================= */
@media (max-width: 1200px) {
  .layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .layout--right { grid-template-columns: minmax(0, 1fr) 280px; }
  .brands, .values, .perks { grid-template-columns: repeat(2, 1fr); }
  .pd__name { font-size: 38px; }
}
@media (max-width: 992px) {
  .banner { padding: 56px 0 46px; }
  .banner h1 { font-size: 32px; }
  .layout, .layout--right { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar--filter { display: none; }
  .sidebar--filter.is-open { display: grid; }
  .filter-toggle { display: inline-block; }
  .grid-products, .grid-products--4 { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; gap: 28px; }
  .pd__media { position: static; max-width: 420px; margin: 0 auto; width: 100%; }
  .feature { grid-template-columns: 1fr; }
  .grid-posts { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .job { grid-template-columns: 1fr auto; }
  .job .btn { grid-column: 1 / -1; justify-self: start; }
  .subnav { top: var(--header-h); }
}
@media (max-width: 768px) {
  .banner h1 { font-size: 26px; }
  .crumbs ol { font-size: 13px; }
  .vm { grid-template-columns: 1fr; }
  .vm__card { padding: 30px 22px; }
  .factory { min-height: 0; padding: 200px 0 0; display: block; }
  .factory > img { height: 240px; }
  .factory__card { max-width: none; margin: 0 -16px; padding: 26px 20px; box-shadow: none; }
  .facts div, .pd__attrs div { grid-template-columns: 1fr; gap: 2px; }
  .pd__name { font-size: 32px; }
  .pd__short { font-size: 16px; }
  .pd__cta .btn { flex: 1 1 100%; }
  .ptabs [role="tabpanel"] { padding: 22px 16px; }
  .grid-posts, .grid-posts--2 { grid-template-columns: 1fr; }
  .feature__body { padding: 24px 20px 28px; }
  .feature h2 { font-size: 22px; }
  .searchbox, .searchbox input { width: 100%; }
  .article__title { font-size: 26px; }
  .article__lead { font-size: 16px; }
  .prose { font-size: 15.5px; }
  .prevnext { grid-template-columns: 1fr; }
  .jobfilter { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .job__salary { text-align: left; }
  .card-block { padding: 24px 18px; }
  .form__grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .grid-products, .grid-products--4, .brands, .values, .perks { grid-template-columns: 1fr; }
  .product h3 { font-size: 24px; }
  .toolbar { padding: 10px 12px; }
}

/* Tinh chỉnh mobile */
.tabs--left button { flex: none !important; }
@media (max-width: 768px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-cards li { padding: 18px 12px; }
  .contact-cards .cc__ic { width: 52px; height: 52px; margin-bottom: 10px; }
  .contact-cards p { font-size: 13.5px; word-break: break-word; }
}
@media (max-width: 576px) {
  .grid-products, .grid-products--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-products .product { padding: 12px 10px 18px; }
  .grid-products .product img { margin-bottom: 12px; }
  .grid-products .product h3 { font-size: 19px; margin-bottom: 6px; }
  .grid-products .product p { font-size: 13px; }
  .perks, .values { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .perks li, .values li { padding: 18px 12px; }
  .perks__ic { width: 52px; height: 52px; }
  .perks h3, .values h3 { font-size: 16px; }
  .perks p, .values p { font-size: 13px; }
}
@media (max-width: 360px) {
  .contact-cards, .perks, .values { grid-template-columns: 1fr; }
}
