/* CLW theme family: shared layout. Color tokens are set per theme in common.html */
:root {
  --blue: #174f78;
  --blue-dark: #18364d;
  --red: #b8463d;
  --accent: #174f78;
  --accent-ink: #174f78;
  --eyebrow: #174f78;
  --overlay: 24, 54, 77;
  --ink: #202b34;
  --muted: #687783;
  --line: #e5e9ec;
  --bg: #fff;
  --soft: #f4f6f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus { text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { letter-spacing: 0; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav { height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-weight: 800; color: var(--blue); }
.brand-mark {
  width: 42px; height: 32px; flex-shrink: 0; border-radius: 50%;
  background: radial-gradient(circle at 60% 42%, #fff 0 25%, transparent 26%),
    linear-gradient(135deg, var(--red) 0 45%, var(--blue) 46% 100%);
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.brand-text { font-size: 17px; line-height: 1.15; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.footer-brand { color: #fff; margin: 0 0 14px; }
.footer-brand .brand-mark { box-shadow: none; }
footer a.footer-brand { display: flex; color: #fff; }
.footer-brand small { color: rgba(255,255,255,.68); }
.links { display: flex; align-items: center; gap: 4px; flex: 1; font-size: 14px; font-weight: 700; height: 100%; }
.links > .nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.links > .nav-item > a { padding: 0 10px; height: 100%; display: flex; align-items: center; border-bottom: 3px solid transparent; text-transform: capitalize; white-space: nowrap; }
.links > .nav-item:hover > a, .links > .nav-item.active > a { color: var(--blue); border-bottom-color: var(--accent); }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(20, 30, 40, .12);
  padding: 8px 0;
}
.dropdown.wide { display: none; grid-template-columns: repeat(3, minmax(200px, 1fr)); width: 680px; padding: 10px; }
.nav-item:hover .dropdown { display: block; }
.nav-item:hover .dropdown.wide { display: grid; }
.dropdown a { display: block; padding: 9px 16px; font-weight: 600; font-size: 13px; color: var(--ink); }
.dropdown a:hover { background: var(--soft); color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.icon-btn svg { width: 18px; height: 18px; }
.lang-box { position: relative; }
.lang { border: 1px solid var(--line); padding: 0 12px; height: 40px; border-radius: 4px; font-size: 13px; background: #fff; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(20, 30, 40, .12); padding: 6px; width: 340px; grid-template-columns: repeat(2, 1fr); gap: 2px; z-index: 60;
}
.lang-box.open .lang-menu { display: grid; }
.lang-menu a { padding: 8px 10px; font-size: 13px; border-radius: 3px; }
.lang-menu a:hover, .lang-menu a.active { background: var(--soft); color: var(--blue); }
.menu-toggle { display: none; }

.search-panel { display: none; border-top: 1px solid var(--line); background: #fff; padding: 16px 0; }
.search-panel.open { display: block; }
.search-panel form { display: flex; gap: 10px; }
.search-panel input { flex: 1; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 72px); overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav .m-item { border-bottom: 1px solid var(--line); }
.mobile-nav .m-row { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav .m-row > a { flex: 1; padding: 14px 0; font-weight: 700; text-transform: capitalize; }
.mobile-nav .m-sub-toggle { background: none; border: 0; width: 44px; height: 44px; font-size: 20px; cursor: pointer; color: var(--muted); }
.mobile-nav .m-sub { display: none; padding: 0 0 10px 14px; }
.mobile-nav .m-item.open .m-sub { display: block; }
.mobile-nav .m-sub a { display: block; padding: 8px 0; color: var(--muted); font-size: 14px; }
.mobile-nav .m-langs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; }
.mobile-nav .m-langs a { border: 1px solid var(--line); padding: 5px 9px; font-size: 12px; border-radius: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 0; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; font-size: 14px; white-space: nowrap;
}
.btn:hover, .btn:focus { color: #fff; filter: brightness(1.08); }
.btn.secondary { background: #fff; color: var(--accent-ink); border: 1px solid var(--accent-ink); }
.btn.secondary:hover { color: var(--accent-ink); }
.btn.dark { background: var(--blue-dark); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 540px; color: #fff; display: flex; align-items: center; overflow: hidden; background: var(--blue-dark);
}
.hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg.on { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--overlay), .86), rgba(var(--overlay), .36), rgba(var(--overlay), .05));
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1, .page-hero h1 { margin: 0 0 14px; max-width: 700px; font-size: clamp(32px, 5vw, 60px); line-height: 1.08; }
.hero p, .page-hero p { max-width: 620px; margin: 0 0 28px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row {
  margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 850px;
  border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28);
}
.trust-item { padding: 16px 14px; border-right: 1px solid rgba(255,255,255,.22); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { display: block; font-size: 12px; color: rgba(255,255,255,.78); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.eyebrow { color: var(--eyebrow); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
h2 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.15; }
.lead { max-width: 720px; color: var(--muted); margin: 10px 0 0; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; align-items: center; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; display: block; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.photo { position: relative; padding-top: 68%; background: #edf1f3; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .photo img { transform: scale(1.04); }
.card-body { padding: 16px; }
.card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.arrow { display: inline-block; margin-top: 12px; color: var(--accent-ink); font-weight: 900; font-size: 13px; }
.category-card .photo { padding-top: 62%; }
.category-card .card-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; }
.category-card h3 { font-size: 15px; margin: 0; }
.category-card .card-body span { color: var(--accent-ink); font-weight: 900; }

.blue-band { background: var(--soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.stat { background: #fff; padding: 18px; border-radius: 2px; }
.stat strong { display: block; color: var(--blue); font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }
.factory-photo { min-height: 360px; border-radius: 2px; background: #dfe5e9 center/cover no-repeat; }

.quote-strip { padding: 54px 0; color: #fff; background: var(--blue-dark); }
.quote-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.quote-strip .eyebrow { color: rgba(255,255,255,.75); }
.quote-strip p { color: rgba(255,255,255,.82); margin: 8px 0 0; }

.service-box { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.service-box .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.service-box .ico svg { width: 22px; height: 22px; }
.service-box h3 { margin: 0 0 6px; font-size: 17px; }
.service-box p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- inner pages ---------- */
.page-hero {
  position: relative; min-height: 260px; display: flex; align-items: center; color: #fff;
  background: var(--blue-dark) center/cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--overlay), .84), rgba(var(--overlay), .3)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); text-transform: capitalize; }
.page-hero p { margin-bottom: 0; font-size: 16px; }
.crumbs { border-bottom: 1px solid var(--line); background: #fff; }
.crumbs .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 52px; flex-wrap: wrap; }
.crumbs .path { font-size: 13px; color: var(--muted); }
.crumbs .path a:hover { color: var(--blue); }
.crumbs .path i { font-style: normal; margin: 0 6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tab { padding: 8px 15px; background: #fff; border: 1px solid var(--line); border-radius: 4px; font-weight: 800; font-size: 13px; }
.tab:hover { border-color: var(--accent); color: var(--accent-ink); }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-body { padding-top: 40px; }

.list-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.side-nav { border: 1px solid var(--line); border-radius: 2px; }
.side-nav h3 { margin: 0; padding: 14px 16px; background: var(--blue-dark); color: #fff; font-size: 16px; text-transform: capitalize; }
.side-nav a { display: block; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.side-nav a:hover, .side-nav a.active { color: var(--accent-ink); background: var(--soft); }
.side-nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.side-contact { margin-top: 18px; padding: 18px; background: var(--soft); border-radius: 2px; }
.side-contact h4 { margin: 0 0 10px; }
.side-contact p { margin: 0 0 6px; font-size: 13px; color: var(--muted); word-break: break-all; }
.side-contact .btn { width: 100%; margin-top: 10px; }

.clw-pages { margin-top: 34px; text-align: center; }
.clw-pages ul.pagination { display: inline-flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.clw-pages .pagination li > a, .clw-pages .pagination li > span {
  display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-weight: 700; color: var(--ink); background: #fff;
}
.clw-pages .pagination li.active > a, .clw-pages .pagination li.active > span { background: var(--accent); border-color: var(--accent); color: #fff; }
.clw-pages .pagination li.disabled > span { color: #b5bec5; }
.empty-tip { padding: 50px 0; text-align: center; color: var(--muted); }

/* product detail */
.product-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.gallery-main { position: relative; padding-top: 72%; background: #edf1f3; border-radius: 2px; overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.thumb { position: relative; padding-top: 72%; border-radius: 2px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #edf1f3; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }
.product-info h1 { margin: 6px 0 14px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.product-info .desc { color: var(--muted); margin: 0 0 22px; }
.product-info .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.check-list { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.check-list li::before { content: "✓"; color: var(--accent-ink); font-weight: 900; }
.detail-tabs { margin-top: 46px; border-bottom: 1px solid var(--line); display: flex; gap: 6px; flex-wrap: wrap; }
.detail-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; font-weight: 800; font-size: 15px; cursor: pointer; color: var(--muted); }
.detail-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.detail-pane { display: none; padding: 26px 0; }
.detail-pane.active { display: block; }

.rich { font-size: 15px; line-height: 1.8; color: #34404a; overflow-x: auto; word-wrap: break-word; }
.rich img { height: auto !important; margin: 10px auto; }
.rich table { width: 100%; border-collapse: collapse; margin: 14px 0; background: #fff; font-size: 14px; }
.rich td, .rich th { padding: 10px 12px; border: 1px solid var(--line); }
.rich tr:nth-child(odd) td { background: #f8fafb; }
.rich p { margin: 0 0 12px; }

/* news */
.news-row { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.news-row .photo { padding-top: 64%; border-radius: 2px; }
.news-row h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; }
.news-row h3 a:hover { color: var(--blue); }
.news-row p { margin: 0; color: var(--muted); font-size: 14px; }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.meta a { color: var(--accent-ink); font-weight: 700; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.article h1 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; }
.article .meta { padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.side-list a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.side-list .photo { padding-top: 70%; }
.side-list h4 { margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
.side-list span { font-size: 12px; color: var(--muted); }
.side-title { margin: 0 0 6px; font-size: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.prevnext { margin-top: 30px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.prevnext p { margin: 0; color: var(--muted); }
.prevnext a { color: var(--ink); font-weight: 700; }
.prevnext a:hover { color: var(--blue); }
.prevnext .next { text-align: right; }
.tags { margin-top: 18px; font-size: 13px; color: var(--muted); }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; background: var(--soft); border-radius: 3px; color: var(--ink); }

/* contact / form */
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { background: var(--soft); border-radius: 2px; padding: 18px; }
.contact-item h3 { margin: 0 0 4px; font-size: 15px; }
.contact-item p { margin: 0; color: var(--muted); word-break: break-word; }
.contact-item a:hover { color: var(--blue); }
.contact-social { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.contact-social a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 4px; color: #fff; font-weight: 800; font-size: 14px;
  transition: transform .2s, filter .2s;
}
.contact-social a:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.contact-social svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.contact-social .cs-fb { background: #1877f2; }
.contact-social .cs-tt { background: #111; }
.contact-social .cs-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.contact-social .cs-wa { background: #25d366; }
.rich a { color: var(--accent-ink); text-decoration: underline; word-break: break-all; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 24px; }
.form h2 { margin: 0 0 16px; font-size: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; position: relative; }
label { font-size: 12px; color: var(--muted); font-weight: 800; margin: 0; }
label span { color: var(--red); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 4px; min-height: 42px; padding: 10px 12px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.captcha-img { position: absolute; right: 4px; bottom: 4px; height: 34px; cursor: pointer; border-radius: 3px; }
.form-tip { font-size: 12px; color: var(--muted); margin: 0 0 12px; }

/* ---------- footer ---------- */
footer { background: var(--blue-dark); color: #fff; padding: 46px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.3fr; gap: 24px; font-size: 13px; }
footer h4 { margin: 0 0 14px; font-size: 15px; text-transform: capitalize; }
footer a, footer p { display: block; color: rgba(255,255,255,.72); margin: 0 0 8px; word-break: break-word; }
footer a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.socials a:hover { background: var(--accent); }
.socials svg { width: 16px; height: 16px; fill: #fff; }
.copyright { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 12px; color: rgba(255,255,255,.6); }
.copyright .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.copyright a { display: inline; color: rgba(255,255,255,.6); margin: 0; }

.float-bar { position: fixed; right: 16px; bottom: 22px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float-bar a {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.float-bar a.wa { background: #25d366; }
.float-bar svg { width: 22px; height: 22px; fill: #fff; }
.float-bar .to-top { opacity: 0; pointer-events: none; transition: opacity .2s; }
.float-bar .to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .links > .nav-item > a { padding: 0 7px; font-size: 13px; }
  .nav-actions .btn { display: none; }
}
@media (max-width: 920px) {
  .links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav { justify-content: space-between; }
  .hero { min-height: 480px; }
  .trust-row, .grid-4, .grid-3, .stats, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .product-top, .contact-layout, .list-layout, .article-layout { grid-template-columns: 1fr; }
  .list-layout .side-nav { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .list-layout .side-nav h3 { width: 100%; border-radius: 2px; }
  .list-layout .side-nav a { border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; font-size: 13px; }
  .list-layout .side-nav a.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: none; }
  .list-layout .side-contact { display: none; }
  .quote-strip .wrap { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .lang-box { display: none; }
  .trust-row, .grid-4, .grid-3, .stats, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .grid-4.keep-2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero h1 { font-size: 32px; }
  .news-row { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .next { text-align: left; }
  section { padding: 40px 0; }
}
