/*
Theme Name: ApexFilter
Theme URI: https://example.com
Author: ApexFilter
Author URI: https://example.com
Description: B2B filter export site theme. Structure modelled on congbenfilter.com (no Application, no Hot Products). Color scheme adjustable via :root variables.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apexfilter
*/

/* ============================================================
   ApexFilter — 配色集中在 :root，改配色只改这里
   ============================================================ */
:root {
  --navy: #0c2340;
  --navy-2: #12325c;
  --blue: #1f6feb;
  --blue-dark: #174ea6;
  --accent: #ff7a1a;
  --accent-dark: #e0660c;
  --ink: #1d2733;
  --gray: #5f6b7a;
  --light: #f4f7fb;
  --line: #e2e8f0;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(12, 35, 64, .08);
  --shadow-lg: 0 14px 40px rgba(12, 35, 64, .16);
  --font: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-base: 14px;
  --font-h2: 26px;
  --font-nav: 17px;
  --font-hero: 30px;
  --font-contact: 12px;
  --font-btn: 16px;
  --font-card-title: 18px;
  --font-product-title: 16px;
  --font-entry: 16px;
  --font-breadcrumb: 12px;
  --font-footer: 15px;
  --font-form: 16px;
  --font-product-h1: 24px;
  --font-small: 13px;
  --font-stat-num: 24px;
  --font-adv-title: 20px;
  --font-entry-h2: 20px;
  --font-sidebar: 16px;
  --font-logo: 18px;
  --font-logo-small: 10px;
  --font-sub-parent: 19px;
  --font-sub-child: 13px;
  --font-news-title: 15px;
  --font-adv-num: 32px;
  --font-footer-title: 16px;
  --font-page-h2: 20px;
  --font-quote-title: 22px;
  --font-product-contact: 17px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); line-height: 1.666; background: var(--white); -webkit-font-smoothing: antialiased; font-size: var(--font-base); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
.container { width: min(1440px, 96%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; font-weight: 700; font-size: var(--font-btn); cursor: pointer; border: 2px solid transparent; transition: all .18s ease; text-align: center; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

/* ---------- Header / Nav (single row, navy background) ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--navy); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: center; height: 70px; width: 100%; }
.header-center { display: flex; align-items: center; gap: 44px; margin-left: 24%; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; position: absolute; left: 2%; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: var(--font-btn); letter-spacing: -.5px; }
.logo-mark span { color: var(--navy); }
.logo-text { line-height: 1.15; }
.logo-text b { display: block; font-size: var(--font-logo); font-weight: 800; }
.logo-text small { display: block; font-size: var(--font-logo-small); color: rgba(255,255,255,.7); letter-spacing: .5px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 20px; }
.nav > li { position: relative; }
.nav > li > a { display: block; padding: 8px 14px; color: rgba(255,255,255,.9); font-weight: 600; font-size: var(--font-nav); border-radius: 6px; }
.nav > li > a:hover, .nav > li > a.active, .nav > li.current-menu-item > a { color: #fff; background: var(--accent); }
.nav > li.has-sub > a::after { content: "▾"; font-size: 11px; margin-left: 6px; opacity: .7; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 20; }
.nav .sub-wide { position: fixed; left: 40vw; top: 90px; transform: none; border-radius: 0 0 8px 8px; }
.nav > li:hover .sub { display: block; }
.nav .sub a { display: block; color: var(--ink); font-size: 13px; }
.nav .sub-wide { display: none; gap: 0; padding: 0; white-space: nowrap; }
.nav > li:hover .sub-wide { display: flex; }
.sub-group { flex: 1 1 auto; padding: 16px 24px; border-right: 1px solid var(--line); }
.sub-group:last-child { border-right: none; }
.sub-parent { font-weight: 800; color: var(--navy); font-size: var(--font-sub-parent); padding: 4px 0 10px; margin-bottom: 6px; border-bottom: 2px solid var(--accent); display: block; white-space: nowrap; letter-spacing: 0.3px; transition: color .25s ease, background .25s ease, border-color .25s ease; border-radius: 4px; padding: 6px 10px; }
.sub-parent:hover { color: #fff !important; background: var(--accent) !important; border-bottom-color: rgba(255,255,255,.3) !important; }
.sub-child { font-size: var(--font-sub-child); padding: 6px 10px; color: var(--gray); display: block; white-space: nowrap; position: relative; transition: color .25s ease, transform .25s ease, background .25s ease; border-radius: 6px; }
.sub-child:hover { color: #fff !important; background: var(--accent) !important; transform: translateX(15px); }
.sub-child.active { color: #fff; font-weight: 600; background: var(--accent); }

.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 6px 10px; font-size: 20px; cursor: pointer; color: #fff; font-family: inherit; }

.btn-quote { background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 6px; font-weight: 600; font-size: var(--font-small); white-space: nowrap; }
.btn-quote:hover { background: var(--accent-dark); color: #fff; }
.header-contacts { position: absolute; right: 0; top: 0; height: 100%; display: flex; align-items: center; gap: 16px; font-size: var(--font-contact); padding-right: 16px; }
.header-contacts a { color: rgba(255,255,255,.8); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.header-contacts a:hover { color: #fff; }
.header-contacts svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transform: translateX(100%); transition: transform 1.2s ease; z-index: 0; }
.slide.active { transform: translateX(0); z-index: 2; }
.slide.prev { transform: translateX(-100%); z-index: 1; }

/* slider arrows */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: none; background: rgba(12,35,64,.5); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; z-index: 10; transition: background .2s; }
.slider-arrow:hover { background: var(--accent); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* dots */
.dots { position: absolute; bottom: 28px; left: 24px; display: flex; gap: 10px; z-index: 10; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: transparent; cursor: pointer; transition: all .2s; padding: 0; }
.dots button:hover { border-color: #fff; background: rgba(255,255,255,.4); }
.dots button.active { background: var(--accent); border-color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.tinted { background: var(--light); }
.section.dark { background: var(--navy); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: var(--font-small); }
.section-head h2 { font-size: var(--font-h2); font-weight: 800; margin: 8px 0 12px; line-height: 1.2; }
.section-head p { color: var(--gray); font-size: var(--font-base); }
.dark .section-head p { color: rgba(255,255,255,.75); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Why choose us ---------- */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why h2 { font-size: var(--font-h2); font-weight: 800; line-height: 1.2; margin: 8px 0 18px; }
.why p { color: var(--gray); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat { background: var(--light); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.stat b { display: block; font-size: var(--font-stat-num); color: var(--blue); font-weight: 800; line-height: 1; }
.stat span { font-size: var(--font-contact); color: var(--gray); }
.why-visual { background: #fff; border-radius: var(--radius); min-height: 420px; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; border-top: 0 solid var(--blue); border-bottom: 0 solid var(--blue); transition: border-width .3s; }
.why-visual:hover { border-top: 6px solid var(--navy); border-bottom: 6px solid var(--navy); }
.why-visual svg { width: 180px; height: 180px; stroke: #fff; opacity: .9; }
.why-visual .tag { position: absolute; bottom: 20px; left: 20px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); padding: 10px 16px; border-radius: 8px; font-size: var(--font-base); }

/* ---------- Product category cards ---------- */
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px 24px; text-align: center; transition: transform .18s, box-shadow .18s, border-color .18s; color: var(--ink); display: block; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); color: var(--ink); }
.cat-icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; background: var(--light); display: grid; place-items: center; }
.cat-icon svg { width: 38px; height: 38px; stroke: var(--blue); fill: none; stroke-width: 1.6; }
.cat-card h3 { font-size: var(--font-card-title); margin-bottom: 6px; }
.cat-card p { color: var(--gray); font-size: var(--font-base); }
.cat-card .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; font-size: var(--font-base); }

/* Category card with fixed image */
.cat-item { display: flex; flex-direction: column; align-items: center; }
.cat-card-with-image { padding: 0; overflow: hidden; display: flex; flex-direction: column; width: 100%; }
.cat-image { height: 280px; display: grid; place-items: center; background: #fff; padding: 12px; }
.cat-image img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s ease; }
.cat-card-with-image:hover .cat-image img { transform: scale(1.03); }
.cat-name-outside { margin-top: 14px; font-size: var(--font-footer); font-weight: 600; }
.cat-name-outside a { color: #000; text-decoration: none; transition: color .2s; }
.cat-name-outside a:hover { color: var(--accent); }

/* ---------- Product catalog: sidebar + grid ---------- */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.catalog-sidebar { background: transparent; position: sticky; top: 96px; }
.catalog-sidebar h3 { font-size: var(--font-sidebar); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin: 0; padding: 14px; text-align: center; }
.cat-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-list > li { background: #f7f7f7; border-bottom: 2px solid #fff; }
.cat-list > li:last-child { border-bottom: none; }
.cat-heading { background: var(--accent) !important; border-bottom: none !important; border-radius: var(--radius) var(--radius) 0 0; }
.cat-parent-row { display: flex; align-items: center; justify-content: space-between; transition: background .15s; }
.cat-parent-row > a { display: block; flex: 1; padding: 12px 14px; color: var(--ink); font-weight: 500; font-size: var(--font-sidebar); transition: color .15s; }
.cat-list > li:hover > .cat-parent-row { background: var(--accent); }
.cat-list > li:hover > .cat-parent-row > a { color: #fff; }
.cat-list > li.active > .cat-parent-row > a { color: var(--accent); }
.cat-list > li.active:hover > .cat-parent-row > a { color: #fff; }
.cat-toggle { width: 28px; height: 28px; display: grid; place-items: center; background: none; border: none; cursor: pointer; padding: 0; margin-right: 4px; border-radius: 4px; transition: background .15s; }
.cat-toggle::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--gray); border-bottom: 1.5px solid var(--gray); transform: rotate(-45deg); transition: transform .2s, border-color .15s; }
.cat-list > li:hover .cat-toggle::before, .cat-toggle:hover::before { border-right-color: #fff; border-bottom-color: #fff; }
.cat-list > li.expanded > .cat-parent-row .cat-toggle::before { transform: rotate(45deg); }
.cat-children { list-style: none; margin: 2px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s ease, opacity .2s ease; }
.cat-list > li.expanded > .cat-children { max-height: 500px; opacity: 1; }
.cat-contact { background: #f7f7f7; padding: 0 14px 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-contact h3 { font-size: var(--font-sidebar); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin: 0 -14px 12px; padding: 14px; background: var(--accent); text-align: center; }
.cat-contact-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: var(--font-sidebar); color: var(--ink); line-height: 1.5; }
.cat-contact-item svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; margin-top: 1px; }
.cat-contact-item span { word-break: break-word; }
.cat-children li { margin-bottom: 2px; }
.cat-children a { display: block; padding: 6px 12px; border-radius: 4px; color: var(--gray); font-size: var(--font-sidebar); font-weight: 500; border-left: none; }
.cat-children a:hover { color: var(--accent); }
.cat-children li.active a { background: var(--light); color: var(--blue); font-weight: 600; }
.related-list a { font-size: var(--font-sidebar); padding: 8px 12px; color: var(--gray); font-weight: 500; }
.related-list a:hover { color: var(--blue); }

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
  .cat-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .cat-list li { margin-bottom: 0; }
  .cat-list a { border-left: 1px solid var(--line); }
}

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }
.product-item { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; position: relative; width: 100%; min-width: 0; box-sizing: border-box; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .hot { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: var(--font-contact); font-weight: 700; padding: 3px 9px; border-radius: 4px; z-index: 2; }
.product-img { height: 220px; width: 100%; background: linear-gradient(135deg, #eef3f9, #dde7f3); display: grid; place-items: center; position: relative; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-img svg { width: 64px; height: 64px; stroke: var(--navy); fill: none; stroke-width: 1.5; opacity: .55; }
.product-info { padding: 14px 4px 0; }
.product-info h3 { font-size: var(--font-product-title); margin-bottom: 6px; line-height: 1.3; height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #000; }
.product-info h3 a { color: #000; }
.product-info h3 a:hover { color: var(--accent); }
.product-info .spec { color: var(--gray); font-size: var(--font-contact); height: 1.5em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- Advantages ---------- */
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .adv { grid-template-columns: 1fr; } }
.adv-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 22px; transition: transform .35s ease, box-shadow .35s ease, background .35s ease; cursor: pointer; }
.adv-item:hover { transform: translateY(-10px); box-shadow: 0 16px 40px rgba(0,0,0,.3); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.adv-item .num { font-size: var(--font-adv-num); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.adv-item h3 { font-size: var(--font-adv-title); font-weight: 700; margin-bottom: 8px; }
.adv-item p { color: rgba(255,255,255,.75); font-size: var(--font-btn); line-height: 1.8; }

/* ---------- Testimonials ---------- */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.review::before { content: "“"; position: absolute; top: 10px; right: 20px; font-size: 80px; color: var(--light); font-family: var(--font); line-height: 1; }
.review .stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 10px; }
.review p { color: var(--ink); font-size: var(--font-base); margin-bottom: 18px; position: relative; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.review .who b { display: block; font-size: var(--font-small); }
.review .who span { font-size: var(--font-small); color: var(--gray); }

/* ---------- News ---------- */
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; min-width: 0; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 250px; overflow: hidden; background: linear-gradient(135deg, var(--navy-2), var(--blue)); display: flex; align-items: center; justify-content: center; }
.news-thumb svg { width: 56px; height: 56px; stroke: #fff; fill: none; stroke-width: 1.5; opacity: .85; }
.news-body { padding: 20px; background: #fff; }
.news-body .date { font-size: var(--font-contact); color: var(--gray); text-transform: uppercase; letter-spacing: 1px; }
.news-body h3 { font-size: var(--font-news-title); margin: 8px 0; line-height: 1.4; word-break: break-word; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--accent); }
.news-body p { color: var(--gray); font-size: var(--font-small); line-height: 1.5; }
.news-body .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; font-size: var(--font-base); }

/* List layout (Blog page) */
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-list .news-card { display: grid; grid-template-columns: 260px 1fr; }
.news-list .news-thumb { height: auto; }
@media (max-width: 700px) { .news-list .news-card { grid-template-columns: 1fr; } .news-list .news-thumb { height: 170px; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #fff; padding: 70px 0; text-align: center; }
.cta-band h2 { font-size: var(--font-h2); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { background: #071a30; color: #fff; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: var(--font-footer-title); letter-spacing: .5px; }
.footer a { color: #fff; display: block; margin-bottom: 9px; font-size: var(--font-footer); }
.footer a:hover { color: var(--accent); }
.footer .brand { color: #fff; font-weight: 800; font-size: var(--font-logo); margin-bottom: 12px; }
.footer .desc { font-size: var(--font-footer); margin-bottom: 20px; line-height: 1.7; }
.footer .social { display: flex; gap: 10px; }
.footer .social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; margin: 0; }
.footer .social a:hover { background: var(--accent); }
.footer .social svg { width: 16px; height: 16px; fill: #fff; }
.footer .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: var(--font-footer); }
.footer .contact-line svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; flex: 0 0 16px; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 20px; font-size: var(--font-base); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { display: inline; margin: 0 8px 0 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: var(--font-form); margin-bottom: 6px; }
.form-group label span { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: var(--font-form); color: var(--ink); background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.12); }
.form-note { font-size: 13px; color: var(--gray); margin-top: 12px; }
.form-card .btn { font-size: var(--font-btn); }

/* ---------- Contact info ---------- */
.contact-list li { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-list .ci { flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--light); display: grid; place-items: center; }
.contact-list .ci svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.contact-list .t { font-weight: 700; font-size: var(--font-base); }
.contact-list .d { color: var(--ink); font-size: var(--font-small); word-break: break-word; }

/* ---------- Inner page hero ---------- */
.page-hero { background: linear-gradient(110deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: var(--font-hero); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.8); margin-top: 8px; }
.crumbs { font-size: var(--font-breadcrumb); color: rgba(255,255,255,.65); margin-bottom: 10px; }
.crumbs a { color: rgba(255,255,255,.85); }

/* ---------- Photo cards (company photos / certificates) ---------- */
.photo-card { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: box-shadow .35s ease, transform .35s ease; cursor: pointer; }
.photo-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .5s ease; }
.photo-card:hover { box-shadow: 0 12px 32px rgba(12,35,64,.18); transform: translateY(-4px); }
.photo-card:hover img { transform: scale(1.08); }

/* ---------- Video ---------- */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; box-shadow: var(--shadow-lg); background: #000; }
.video-wrapper iframe, .video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.why-visual.video-wrapper { min-height: auto; display: block; padding-bottom: 56.25%; }

/* ---------- Lightbox arrows ---------- */
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer; display: none; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: background .2s, opacity .2s; z-index: 10; }
.lb-arrow:hover { background: rgba(255,255,255,.3); }
#lb-prev { left: 24px; }
#lb-next { right: 24px; }

/* ---------- Tables / FAQ / Downloads ---------- */
table.cert { width: 100%; border-collapse: collapse; }
table.cert th, table.cert td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; font-size: var(--font-small); }
table.cert th { background: var(--navy); color: #fff; }

.faq-item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 20px; font-weight: 700; font-size: var(--font-form); cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-family: inherit; }
.faq-q::after { content: "+"; font-size: 24px; color: var(--accent); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 20px 18px; color: #000; font-size: var(--font-form); }
.faq-item.open .faq-a { display: block; }

.dl-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 12px; }
.dl-item .ic { width: 46px; height: 46px; border-radius: 8px; background: var(--light); display: grid; place-items: center; }
.dl-item .ic svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.dl-item b { display: block; font-size: var(--font-base); }
.dl-item span { font-size: var(--font-contact); color: var(--gray); }
.dl-item .btn { margin-left: auto; padding: 8px 18px; font-size: 14px; }

/* ---------- Single product ---------- */
.single-product .catalog-layout { grid-template-columns: 260px 1fr; gap: 32px; }
.single-product .product-layout { display: flex; gap: 32px; align-items: flex-start; }
@media (max-width: 1100px) { .single-product .catalog-layout { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .single-product .product-layout { flex-direction: column; } }
.product-gallery { flex: 0 0 450px; }
.product-gallery .main-img { position: relative; width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in; }
.product-gallery .main-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .15s ease; transform-origin: 50% 50%; will-change: transform; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(12,35,64,.6); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 3; transition: background .15s; }
.gallery-arrow:hover { background: var(--accent); }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.product-gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.product-gallery .thumbs img { height: 90px; width: 100%; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: #fff; }
.product-gallery .thumbs img.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.product-meta h1 { font-size: var(--font-product-h1); font-weight: 800; line-height: 1.4; margin-bottom: 24px; }
.product-meta .pcat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue); background: #e8f0fd; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.product-meta .spec { color: #333; font-size: var(--font-btn); margin-bottom: 20px; }
.product-meta .spec ul { list-style: disc; padding-left: 20px; margin: 8px 0; }
.product-meta .spec ul li { margin-bottom: 6px; line-height: 1.6; }
.product-meta .spec h1 { font-size: var(--font-logo); font-weight: 800; color: var(--ink); margin: 16px 0 10px; }
.product-meta .spec h2 { font-size: calc(var(--font-logo) - 1px); font-weight: 700; color: var(--ink); margin: 14px 0 8px; }
.product-meta .spec h3 { font-size: var(--font-btn); font-weight: 700; color: var(--ink); margin: 14px 0 8px; }
.product-meta .spec h4 { font-size: var(--font-footer); font-weight: 700; color: var(--ink); margin: 12px 0 6px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0 4px; font-size: var(--font-small); }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.spec-table th { background: var(--light); color: var(--ink); width: 150px; font-weight: 600; white-space: nowrap; }
.spec-table td { color: var(--gray); }
.spec-table tr:nth-child(even) td { background: #fbfcfe; }

/* ---------- Breadcrumbs / entry content ---------- */
.entry-content,
.entry-content p,
.entry-content span,
.entry-content div,
.entry-content li { font-size: var(--font-entry) !important; }
.entry-content h2 { font-size: var(--font-entry-h2) !important; margin: 28px 0 12px; }
.entry-content ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.entry-content img { border-radius: 8px; margin: 12px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: var(--font-entry); }
.entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: var(--font-entry); }
.entry-content table th { background: var(--light); color: var(--ink); font-weight: 600; }
.entry-content table td { color: var(--ink); }
.entry-content table tr:nth-child(even) td { background: #fbfcfe; }
.page-content { font-size: var(--font-base); }
.page-content h2 { font-size: var(--font-page-h2); margin: 28px 0 12px; }
.page-content p { margin-bottom: 12px; font-size: var(--font-base); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  .header-inner { justify-content: space-between; height: auto; padding: 10px 16px; }
  .header-center { gap: 12px; }
  .header-contacts { display: none; }
  .btn-quote { padding: 8px 14px; font-size: 13px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 4%; gap: 4px; display: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav.open { display: flex; }
  .nav > li > a { color: rgba(255,255,255,.9); }
  .nav .sub { position: static; display: block; box-shadow: none; border: none; padding: 0 0 6px 14px; background: rgba(255,255,255,.08); min-width: auto; }
  .nav .sub-wide { position: static; left: auto; top: auto; flex-direction: column; gap: 0; min-width: auto; }
  .sub-group { flex: none; min-width: auto; padding: 8px 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .sub-group:last-child { border-bottom: none; }
  .sub-parent { border-bottom: none; padding-bottom: 0; margin-bottom: 0; font-weight: 600; color: #fff; }
  .sub-child { color: rgba(255,255,255,.8); padding: 4px 12px; }
  .nav .sub a { color: rgba(255,255,255,.85); }
  .nav > li.has-sub > a::after { display: none; }
  .slide { min-height: 100vh; min-height: 100svh; }
  .section-head h2, .why h2 { font-size: calc(var(--font-h2) - 4px); }
  .page-hero h1 { font-size: calc(var(--font-product-h1)); }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Single product inline font-size replacements ---------- */
.product-contact-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; font-size: var(--font-product-contact); font-weight: 600; color: #000; }
.quote-form-title { font-size: var(--font-quote-title); font-weight: 800; margin-bottom: 16px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 24px; }
.pagination .nav-links, .page-numbers { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-weight: 600; font-size: 13px; }
a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-numbers.dots { border: none; }

