/* ==========================================================================
   ZHONGLI Hoisting Machinery - Global Stylesheet
   Industrial material handling brand site (red / dark / white)
   ========================================================================== */

:root {
    --red:        #c8102e;   /* brand red (matches logo) */
    --red-dark:   #a00b24;
    --dark:       #1a1a1a;   /* deep charcoal */
    --dark-2:     #2b2b2b;
    --grey:       #6b6b6b;
    --grey-light: #f4f4f4;
    --border:     #e3e3e3;
    --white:      #ffffff;
    --maxw:       1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Arial, 'Helvetica Neue', Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    background: var(--white);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all .25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.about-text .btn-primary { background: #fff; color: var(--red); border-color: var(--red); }
.about-text .btn-primary:hover { background: var(--red); color: #fff; border-color: var(--red); }
.about-text .btn-primary::after { content: "→"; margin-left: 8px; transition: transform .25s ease; }
.about-text .btn-primary:hover::after { transform: translateX(3px); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--dark); }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #ccc; font-size: 13px; padding: 9px 0; }
.topbar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #fff; }
.topbar-contact a:hover { color: var(--red); }
.tb-ico { color: var(--red); margin-right: 4px; font-style: normal; }

/* ---------- Header / Nav ---------- */
.header { background: #fff; border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.logo { flex: 0 0 auto; }
.logo img { height: 65px; width: auto; }
.nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 30px; }
.header-right { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.search-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 22px; padding: 2px 6px 2px 14px; background: #fafafa; transition: border-color .2s; }
.search-box:focus-within { border-color: var(--red); }
.search-input { border: none; outline: none; background: transparent; font-size: 13px; color: #333; width: 150px; padding: 7px 0; font-family: inherit; }
.search-btn { background: none; border: none; cursor: pointer; position: relative; width: 16px; height: 16px; padding: 0; margin: 0 8px; flex: 0 0 auto; }
.search-btn::before { content: ""; position: absolute; top: 0; left: 0; width: 9px; height: 9px; border: 2px solid var(--red); border-radius: 50%; }
.search-btn::after { content: ""; position: absolute; bottom: 1px; right: 0; width: 7px; height: 2px; background: var(--red); transform: rotate(45deg); transform-origin: left bottom; }
.search-btn:hover::before { border-color: var(--red-dark); }
.search-btn:hover::after { background: var(--red-dark); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-list li { position: relative; }
.nav-link { font-size: 17px; font-weight: 700; text-transform: uppercase; color: var(--dark); padding: 10px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-link:hover, .nav-link.active, .nav-list li.active > .nav-link { color: var(--red); border-bottom-color: var(--red); }
.nav-caret { font-size: 11px; margin-left: 4px; }

/* Dropdown */
.nav-item { position: relative; }
.nav-item .dropdown, .nav-list li .dropdown { display: none; position: absolute; top: calc(100% + 38px); left: 50%; transform: translateX(-50%); background: #fff; min-width: 230px; border: 1px solid var(--border); border-top: 3px solid var(--red); box-shadow: 0 10px 24px rgba(0,0,0,.14); z-index: 50; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.open .dropdown,
.nav-list li:hover .dropdown, .nav-list li:focus-within .dropdown, .nav-list li.open .dropdown { display: block; }
.dropdown a { display: block; padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--dark); border-bottom: 1px solid var(--border); text-transform: capitalize; }
.dropdown a:hover { background: var(--grey-light); color: var(--red); }

.nav-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--dark); }

/* ---------- Hero (page banner) ---------- */
.hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.35) 55%, rgba(10,10,10,.05) 100%);
}
.hero-inner { max-width: 780px; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-block; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin-bottom: 14px; }
.hero h1, .hero-inner h1 { font-size: 40px; line-height: 1.18; margin-bottom: 18px; font-weight: 800; text-transform: uppercase; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero p, .hero-inner p { font-size: 17px; color: #fff; margin-bottom: 30px; max-width: 620px; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page header (inner pages, compact) ---------- */
.page-hero { padding: 80px 0; }
.page-hero h1 { font-size: 34px; }
.page-hero .hero-inner { max-width: var(--maxw); text-align: left; margin: 0 auto; }

/* ---------- Home hero slider (full screen) ---------- */
.slider { position: relative; height: calc(100vh - 120px); overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; transition: opacity 1.1s ease; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.5) 45%, rgba(8,8,8,.12) 100%); }
.slide .hero-inner { text-align: center; margin: 0 auto; opacity: 0; transform: translateY(24px); transition: opacity .9s ease .25s, transform .9s ease .25s; }
.slide.active .hero-inner { opacity: 1; transform: translateY(0); }
.slide .hero-inner p { margin-left: auto; margin-right: auto; }
.slide .hero-actions { justify-content: center; }
.slide .hero-inner { position: relative; z-index: 1; }
.slide .hero-eyebrow { font-size: 15px; letter-spacing: 3px; }
.slide .hero-inner h1 { font-size: 56px; }
.slide .hero-inner p { font-size: 20px; max-width: 720px; }
.slide .hero-actions .btn { font-size: 16px; padding: 15px 34px; }
.slide-prev, .slide-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(0,0,0,.35); color: #fff; border: none; font-size: 30px; width: 50px; height: 62px; cursor: pointer; transition: all .3s ease; }
.slide-prev { left: 18px; }
.slide-next { right: 18px; }
.slide-prev:hover, .slide-next:hover { background: var(--red); transform: translateY(-50%) scale(1.5); box-shadow: 0 6px 20px rgba(200,30,20,.4); }
.slide-dots { position: absolute; bottom: 28px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s, transform .2s; }
.dot.active { background: var(--red); }
.dot:hover { transform: scale(1.2); }

/* ---------- Features ---------- */
.features { background: #fff; padding: 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { position: relative; border-radius: 16px; overflow: hidden; min-height: 250px; display: flex; align-items: flex-end; box-shadow: 0 4px 14px rgba(0,0,0,.08); transition: box-shadow .3s ease, transform .3s ease; }
.feature-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(8,8,8,.62) 60%, rgba(8,8,8,.85) 100%); transition: background .3s ease; }
.f-content { position: relative; z-index: 2; padding: 22px; text-align: left; color: #fff; }
.f-content h3 { font-size: 16px; text-transform: uppercase; color: #fff; margin-bottom: 7px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.f-content p { font-size: 13px; color: #eee; line-height: 1.5; }
.feature-item:hover img { transform: scale(1.06); }
.feature-item:hover { box-shadow: 0 14px 30px rgba(0,0,0,.18); transform: translateY(-4px); }
.feature-item:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.14) 0%, rgba(190,30,20,.5) 55%, rgba(8,8,8,.9) 100%); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-title { font-size: 28px; font-weight: 800; text-transform: uppercase; color: var(--dark); text-align: center; margin-bottom: 12px; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--red); margin: 12px auto 0; }
.section-sub { text-align: center; color: var(--grey); margin-bottom: 42px; }

/* ---------- Products grid ---------- */
.product-carousel { position: relative; overflow: hidden; padding: 4px; }
.p-track { display: flex; gap: 28px; transition: transform .6s ease; will-change: transform; }
.p-track.wrap { flex-wrap: wrap; row-gap: 28px; transition: none; }
.product-card { display: block; flex: 0 0 calc(25% - 21px); box-sizing: border-box; width: calc(25% - 21px); background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-5px); }
.product-card .p-img { padding: 20px; background: #fff; border-bottom: 1px solid var(--border); min-height: 170px; display: flex; align-items: center; justify-content: center; }
.product-card .p-img img { margin: 0 auto; width: auto; }
.product-card .p-img.ph { color: #bbb; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.product-card .p-body { padding: 18px 16px; text-align: center; }
.product-card .p-body h3 { font-size: 15px; text-transform: uppercase; color: var(--dark); margin-bottom: 6px; }
.product-card .p-body p { font-size: 13px; color: var(--grey); margin-bottom: 12px; }
.product-card .p-link { color: var(--red); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.product-card:hover .p-link { text-decoration: underline; }

.p-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.p-right { display: flex; align-items: center; gap: 18px; }
.p-quote { padding: 11px 22px; font-size: 13px; }
.p-navbtns { display: flex; gap: 12px; }
.p-nav { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; border: none; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .25s ease; box-shadow: 0 4px 12px rgba(204,38,31,.22); }
.p-nav:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(204,38,31,.32); }
.p-all { display: inline-block; padding: 11px 22px; border: 2px solid var(--red); border-radius: 25px; color: var(--red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; background: #fff; transition: all .25s ease; }
.p-all:hover { background: var(--red); color: #fff; }

/* ---------- Products page: sidebar + main ---------- */
.products-layout { display: flex; gap: 40px; align-items: flex-start; }
.products-sidebar { flex: 0 0 300px; }
.products-main { flex: 1; min-width: 0; }
.side-block { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 26px; }
.side-block h3 { font-size: 16px; text-transform: uppercase; color: var(--dark); font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.cat-tree { list-style: none; margin: 0; padding: 0; }
.cat-accordion-item { border-bottom: 1px solid var(--border); }
.cat-accordion-item:last-child { border-bottom: none; }
.cat-accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; cursor: pointer; }
.cat-link { font-size: 14px; font-weight: 600; color: var(--dark); text-decoration: none; cursor: pointer; }
.cat-link:hover, .cat-accordion-item.active > .cat-accordion-header .cat-link { color: var(--red); }
.cat-accordion-item.active > .cat-accordion-header .cat-link { color: var(--red); font-weight: 700; }
.arrow-icon { color: var(--red); display: inline-flex; align-items: center; }
.arrow-icon svg { width: 14px; height: 14px; transition: transform .25s ease; }
.cat-accordion-item.open > .cat-accordion-header .arrow-icon svg { transform: rotate(180deg); }
.cat-accordion-body { display: none; margin: 0 0 10px; padding: 0; }
.cat-accordion-item.open > .cat-accordion-body { display: block; }
.cat-accordion-body .cat-accordion-item { border-bottom: 1px dashed var(--border); }
.cat-accordion-body .cat-accordion-item:last-child { border-bottom: none; }
.cat-accordion-body .cat-accordion-header { padding: 10px 0 10px 12px; }
.cat-accordion-body .cat-link { font-size: 13px; font-weight: 500; color: var(--grey); }
.cat-accordion-body .cat-accordion-item.active > .cat-accordion-header .cat-link,
.cat-accordion-body .cat-accordion-item.active > .cat-accordion-header .arrow-icon { color: var(--red); }
.p-sec { display: none; }
.p-sec.active { display: block; }
.sub-cat-item { display: block; padding: 9px 14px 9px 26px; font-size: 12px; color: var(--grey); text-decoration: none; border-left: 2px solid var(--border); margin: 0 12px 5px 12px; border-radius: 0 8px 8px 0; transition: all .2s; }
.sub-cat-item:hover { color: var(--red); border-left-color: var(--red); }
.sub-cat-item.active { color: var(--red); border-left-color: var(--red); background: #fff5f4; font-weight: 600; }
.hot-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); text-decoration: none; }
.hot-item:last-child { border-bottom: none; }
.hot-thumb { width: 62px; height: 46px; border-radius: 8px; overflow: hidden; background: #f2f3f5; flex-shrink: 0; }
.hot-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hot-item h4 { font-size: 13px; color: var(--dark); font-weight: 600; line-height: 1.4; margin: 0; }
.hot-item:hover h4 { color: var(--red); }
.need-help { background: var(--dark-2); color: #fff; border-radius: 14px; padding: 24px 22px; }
.need-help h4 { font-size: 17px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.need-help h4::before { content: "?"; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.need-help p { font-size: 13px; color: #cfd3d8; line-height: 1.6; margin: 0 0 16px; }
.need-help .nh-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e8eaee; margin-bottom: 10px; }
.need-help .nh-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.need-help .nh-btn { display: inline-block; margin-top: 6px; background: var(--red); color: #fff; border-radius: 8px; padding: 11px 24px; font-size: 13px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .4px; transition: background .2s ease; }
.need-help .nh-btn:hover { background: var(--red-dark); }
.p-section { margin-bottom: 46px; }
.p-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.p-section-head h3 { font-size: 20px; text-transform: uppercase; color: var(--dark); font-weight: 800; margin: 0; }
.p-section-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.p-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p-list-grid .product-card { flex: none; width: 100%; }
.pd-hero { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 30px; }
.pd-hero .pd-img { min-height: 340px; border-radius: 12px; }
.pd-hero .pd-info .pd-desc { color: var(--grey); line-height: 1.8; margin-bottom: 20px; }
.pd-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pd-btn-ghost { display: inline-block; border: 2px solid var(--red); background: #fff; color: var(--red); border-radius: 25px; padding: 11px 24px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; text-decoration: none; transition: all .25s ease; }
.pd-btn-ghost:hover { background: var(--red); color: #fff; }
.pd-section { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 30px; }
.pd-sec-title { font-size: 18px; text-transform: uppercase; color: var(--dark); font-weight: 800; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.pd-sec-title:not(:first-child) { margin-top: 28px; }
.pd-section p { font-size: 14px; color: var(--grey); line-height: 1.8; margin: 0 0 16px; }
.pd-features { list-style: none; padding: 0; margin: 18px 0 0; }
.pd-features li { padding: 11px 0 11px 26px; position: relative; font-size: 14px; color: var(--dark); border-bottom: 1px dashed var(--border); }
.pd-features li:last-child { border-bottom: none; }
.pd-features li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 14px; border: 2px solid var(--red); border-radius: 50%; }
.pd-hot .p-list-grid { margin-top: 6px; }

/* ---------- About strip ---------- */
.about-strip { background: var(--grey-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-media { overflow: hidden; border-radius: 16px; }
.about-media img { width: 100%; aspect-ratio: 4/3; object-fit: contain; min-height: 330px; }
.about-text { text-align: left; }
.about-text .section-title { text-align: left; }
.about-text .section-title::after { margin: 12px 0 0; }
.about-text p { color: var(--grey); margin-bottom: 26px; }

/* ---------- Certifications ---------- */
.certs { background: var(--grey-light); }
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.cert-item { text-align: center; padding: 0; border: none; background: none; overflow: hidden; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.10); transition: transform .3s ease, box-shadow .3s ease; }
.cert-item img { width: 100%; display: block; }
.cert-body { padding: 14px 14px 18px; text-align: center; background: #fff; }
.cert-body h3 { font-size: 15px; text-transform: uppercase; color: var(--dark); margin-bottom: 5px; }
.cert-body p { font-size: 13px; color: var(--grey); }
.cert-item:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,.16); }
.cert-badge { width: 84px; height: 84px; line-height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--red); color: #fff; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.cert-item p { font-size: 13px; color: var(--grey); font-weight: 600; }

/* ---------- Contact section / form ---------- */
.contact-section { background: var(--grey-light); padding-bottom: 84px; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-info { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 34px 30px; display: flex; flex-direction: column; justify-content: flex-start; }
.contact-info .section-title { text-align: left; }
.contact-info .section-title::after { margin: 12px 0 0; }
.contact-info p { color: var(--grey); margin: 14px 0 24px; }
.contact-list { margin-top: 4px; }
.contact-list li { padding: 13px 0; border-bottom: 1px dashed var(--border); color: #444; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; }
.contact-list .f-ico { color: var(--red); margin-top: 2px; }
.contact-list li:last-child { border-bottom: none; }
.c-quick { margin-top: 26px; background: var(--grey-light); border-radius: 12px; padding: 18px 20px; }
.c-quick h4 { font-size: 13px; text-transform: uppercase; color: var(--dark); letter-spacing: .4px; margin-bottom: 12px; }
.c-quick p { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #444; margin: 9px 0 0; }
.c-quick .f-ico { color: var(--red); flex-shrink: 0; }
.c-quick a { color: var(--red); }
.c-btn { margin-top: 26px; width: 100%; justify-content: center; }
.nf-section { background: #fff; }
.nf-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.nf-block .section-title { text-align: left; }
.nf-block .section-title::after { margin: 12px 0 0; }
.nf-list { margin: 6px 0 26px; }
.nf-block { display: flex; flex-direction: column; }
.nf-list, .nf-faq { flex: 1; margin: 6px 0 26px; }
.nf-news { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; background: #fff; transition: box-shadow .3s ease, transform .3s ease; }
.nf-news:last-child { margin-bottom: 0; }
.nf-news:hover { box-shadow: 0 8px 18px rgba(0,0,0,.10); }
.nf-news img { width: 96px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.nf-news-body { flex: 1; padding-top: 2px; }
.nf-news-body h4 { font-size: 15px; color: var(--dark); margin-bottom: 6px; transition: color .2s; line-height: 1.45; }
.nf-desc { font-size: 12.5px; color: var(--grey); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-news:hover h4 { color: var(--red); }
.nf-date { display: inline-block; font-size: 11px; color: var(--red); font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.nf-faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; margin-bottom: 14px; background: #fff; }
.nf-faq-item:last-child { margin-bottom: 0; }
.nf-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: none; padding: 16px 0; font-size: 15px; font-weight: 600; color: var(--dark); cursor: pointer; text-align: left; font-family: inherit; }
.nf-plus { width: 26px; height: 26px; border: 1.5px solid var(--red); border-radius: 50%; color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; transition: transform .25s, background .25s, color .25s; flex-shrink: 0; }
.nf-faq-item.open .nf-plus { transform: rotate(45deg); background: var(--red); color: #fff; }
.nf-a { display: none; padding: 0 0 16px; font-size: 13.5px; color: var(--grey); line-height: 1.65; }
.nf-faq-item.open .nf-a { display: block; }
.nf-more { margin-top: auto; align-self: flex-start; background: #fff; color: var(--red); border-color: var(--red); }
.nf-more:hover { background: var(--red); color: #fff; border-color: var(--red); }
.nf-more::after { content: "→"; margin-left: 8px; transition: transform .25s ease; }
.nf-more:hover::after { transform: translateX(3px); }
.c-label { display: inline-block; color: var(--red); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; margin-right: 12px; min-width: 74px; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 7px; }
.req { color: var(--red); font-weight: 700; }
.contact-form input, .contact-form textarea {
    width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--border);
    font-size: 14px; font-family: inherit; color: #333; border-radius: 8px; background: #fafafa;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); background: #fff; }

/* ---------- CTA ---------- */
.cta { background: var(--dark); color: #fff; text-align: center; }
.cta h2 { text-transform: uppercase; font-size: 28px; margin-bottom: 10px; }
.cta p { color: #ccc; margin-bottom: 24px; }

/* ---------- About page ---------- */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-block .about-visual img { width: 100%; border-radius: 4px; display: block; }
.about-block .about-visual .about-stats { margin: 18px 0 22px; }
.about-block .about-visual .btn-primary { min-width: 180px; }
.about-block h3 { font-size: 22px; text-transform: uppercase; color: var(--dark); margin-bottom: 14px; }
.about-block p { color: #555; margin-bottom: 12px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 10px 0 26px; }
.stat { background: var(--grey-light); border-radius: 10px; padding: 14px 8px; text-align: center; }
.stat strong { display: block; font-size: 22px; color: var(--red); font-weight: 800; }
.stat span { font-size: 11.5px; color: var(--grey); }
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.about-point { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px 22px; display: flex; gap: 14px; align-items: flex-start; transition: transform .3s ease, box-shadow .3s ease; }
.ap-ico { flex-shrink: 0; width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: var(--red); color: #fff; }
.about-point h4 { font-size: 15px; color: var(--dark); margin-bottom: 6px; }
.about-point p { font-size: 13px; color: var(--grey); line-height: 1.6; }
.about-point:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.10); }

/* ---------- News list ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.news-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-5px); }
.news-card .n-img { background: var(--dark-2); color: #fff; min-height: 230px; display: flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; overflow: hidden; }
.news-card .n-img img { width: 100%; height: 230px; object-fit: cover; display: block; }
.news-card .n-body { padding: 20px; }
.news-card .n-date { font-size: 12px; color: var(--red); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- News detail article ---------- */
.article-title { font-size: 32px; color: var(--dark); text-transform: uppercase; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.article-date { display: inline-block; color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; margin-bottom: 22px; }
.article-cover { width: 100%; border-radius: 12px; object-fit: cover; display: block; }
.article-flex { display: flex; gap: 36px; align-items: flex-start; }
.article-media { flex: 1 1 46%; }
.article-body { flex: 1 1 54%; }
.article-sub { font-size: 24px; text-transform: uppercase; color: var(--dark); margin-bottom: 16px; }
.article-body p { color: #555; line-height: 1.85; font-size: 16px; margin-bottom: 20px; }
.article-prevnext { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 26px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.article-prevnext a { color: var(--dark); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .25s ease; flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; background: #fff; display: flex; align-items: center; gap: 10px; }
.article-prevnext a:hover { color: var(--red); border-color: var(--red); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.article-prevnext .prev::before { content: "← "; }
.article-prevnext .next::after { content: " →"; }
.news-card .n-body h3 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.news-card .n-body p { font-size: 13px; color: var(--grey); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--dark); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .25s ease; }
.page-link:hover { border-color: var(--red); color: var(--red); }
.page-link.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-link.disabled { opacity: .45; pointer-events: none; }
/* PbootCMS {$pages} dynamic pagination compatibility */
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination ul li { list-style: none; }
.pagination ul li a, .pagination ul li span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--dark); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .25s ease; }
.pagination ul li.active a, .pagination ul li.active span, .pagination ul li.current a, .pagination ul li.on a { background: var(--red); border-color: var(--red); color: #fff; }
.pagination ul li a:hover { border-color: var(--red); color: var(--red); }
.pagination .pageinfo, .pagination .page-total { display: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); margin-bottom: 14px; background: #fff; }
.faq-q { padding: 18px 22px; font-weight: 700; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--red); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 20px; color: #555; font-size: 14px; }
.faq-item.open .faq-a { display: block; }

/* ---------- Product detail ---------- */
.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-img { background: #fff; border: 1px solid var(--border); min-height: 360px; display: flex; align-items: center; justify-content: center; color: #bbb; font-weight: 700; }
.pd-info h1 { font-size: 26px; text-transform: uppercase; color: var(--dark); margin-bottom: 12px; }
.pd-info .pd-desc { color: var(--grey); margin-bottom: 18px; }
.pd-spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.pd-spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: center; color: var(--red); font-weight: 600; }
.pd-spec-table tr:last-child td { border-bottom: none; }
.pd-spec-table td.sp-name { color: var(--dark); background: var(--grey-light); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
@media (max-width: 768px) {
    .pd-spec-table td { padding: 9px 8px; font-size: 12px; }
}

/* ---------- Quote modal ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 999; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: #fff; max-width: 460px; width: 92%; padding: 32px; border-radius: 4px; position: relative; }
.modal h3 { font-size: 20px; text-transform: uppercase; color: var(--dark); margin-bottom: 8px; }
.modal .modal-close { position: absolute; top: 12px; right: 14px; font-size: 24px; cursor: pointer; color: #888; background: none; border: none; }
.modal input, .modal textarea { width: 100%; padding: 11px 13px; margin-bottom: 12px; border: 1px solid var(--border); font-size: 14px; font-family: inherit; border-radius: 3px; }

/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.contact-card { text-align: center; background: var(--grey-light); border: 1px solid var(--border); padding: 30px 20px; }
.contact-card .f-icon { font-size: 30px; }
.contact-card .f-ico { display: block; margin: 0 auto 14px; color: var(--red); }
.contact-card h3 { font-size: 16px; text-transform: uppercase; color: var(--dark); margin-bottom: 8px; }
.contact-card p { font-size: 13px; color: var(--grey); }

/* ---------- Footer ---------- */
.footer { background: #141414; color: #aaa; padding: 72px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding-bottom: 58px; border-bottom: 1px solid #2b2b2b; }
.footer-logo { height: 46px; width: auto; margin-bottom: 14px; }

/* Back to top */
.back-to-top { position: fixed; right: 22px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; border: none; font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease; z-index: 60; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); }
.back-to-top::before { content: ""; width: 11px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(-135deg); margin-top: 5px; }
.footer-col h4 { color: #fff; font-size: 15px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col p { color: #aaa; }
.footer-col li { margin-bottom: 8px; display: flex; align-items: flex-start; gap: 9px; }
.f-ico { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.footer-col a { color: #aaa; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { padding: 22px 0; }
.footer-bottom p { font-size: 13px; color: #777; text-align: center; }

/* ---------- Breadcrumb / page-intro ---------- */
.page-intro { background: var(--grey-light); border-bottom: 1px solid var(--border); padding: 26px 0; }
.page-intro h1 { font-size: 24px; text-transform: uppercase; color: var(--dark); }
.page-intro .crumbs { font-size: 13px; color: var(--grey); margin-top: 4px; }
.page-intro .crumbs a { color: var(--grey); }
.page-intro .crumbs a:hover { color: var(--red); }
.page-intro .crumbs span { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .features-grid, .certs-grid, .about-points, .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .product-card { flex: 0 0 100%; width: 100%; }
    .p-controls { flex-wrap: wrap; gap: 16px 18px; }
    .p-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 14px; }
    .about-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .products-sidebar { flex: 0 0 250px; }
    .p-list-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-block, .pd-wrap, .contact-wrap { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-top: 3px solid var(--red); box-shadow: 0 8px 16px rgba(0,0,0,.12); }
    .nav.open { display: flex; flex-direction: column; }
    .nav-list { flex-direction: column; width: 100%; }
    .nav-link { width: 100%; text-align: center; padding: 15px; border-bottom: 1px solid var(--border); }
    .nav-item, .nav-list li { width: 100%; text-align: center; }
    .nav-item .dropdown, .nav-list li .dropdown { position: static !important; display: none; width: 100%; min-width: auto; border: none; border-top: 1px solid var(--border); box-shadow: none; background: var(--grey-light); overflow: visible; }
    .nav-list li.open .dropdown { display: block; }
    .nav-list li.open .dropdown a { white-space: normal; text-align: center; }
    .dropdown a { padding: 12px 34px; text-align: center; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 30px; }
    .slide .hero-inner h1 { font-size: 38px; }
    .slider { height: calc(100vh - 110px); }
}
@media (max-width: 600px) {
    .features-grid, .certs-grid, .news-grid, .about-points, .contact-cards, .nf-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .product-card { flex: 0 0 100%; width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 25px; }
    .slide .hero-eyebrow { font-size: 13px; }
    .slide .hero-inner h1 { font-size: 30px; }
    .slide .hero-inner p { font-size: 16px; }
    .slide .hero-actions .btn { font-size: 14px; padding: 12px 26px; }
    .slider { height: calc(100vh - 110px); }
    .slide-prev, .slide-next { width: 40px; height: 48px; font-size: 22px; }
    .article-flex { flex-direction: column; }
    .products-layout { flex-direction: column; }
    .products-sidebar { flex: 1 1 100%; }
    .p-list-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 23px; }
    .section { padding: 48px 0; }
    .header-inner { gap: 8px; padding-left: 12px; padding-right: 12px; }
    .logo img { height: 42px; }
    .search-input { width: 60px; }
    .search-box { padding-left: 8px; }
    .header-right { gap: 8px; }
    .nav-toggle { font-size: 26px; }
}
/* ---------- Factory page ---------- */
.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.factory-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: zoom-in; transition: box-shadow .25s; }
.factory-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.10); }
.factory-card .f-img { aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.factory-card .f-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.factory-card:hover .f-img img { transform: scale(1.06); }
.factory-card .f-body { padding: 16px 16px 18px; }
.factory-card .f-body h3 { font-size: 15px; margin: 0 0 6px; color: var(--heading); }
.factory-card .f-body p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
@media (max-width: 992px) { .factory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .factory-grid { grid-template-columns: 1fr; } }
/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; opacity: .9; }
.lightbox-close:hover { opacity: 1; }
.lightbox-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: 15px; padding: 0 20px; }
/* ---------- Custom banner (under certifications) ---------- */
.custom-banner-section { background: #f4f4f4; }
.custom-banner { width: 100%; aspect-ratio: 16/6; object-fit: cover; border-radius: 16px; display: block; }
