/*
Theme Name: Chengbang Foreign Trade
Theme URI: https://www.hbcbkj.com
Author: Hebei Chengbang Technology Co., Ltd.
Description: Custom B2B foreign trade theme for food machinery, modeled on a classic industrial export site layout: top bar, sticky header, hero slider, product categories, latest products, company profile, news and inquiry management. Built-in SEO (Yoast compatible), inquiry system and WP Customizer integration.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: chengbang
*/

/* ============ Variables & Reset ============ */
:root {
  --cb-primary: #0d3b66;
  --cb-primary-dark: #0a2b4b;
  --cb-primary-light: #1d6fb8;
  --cb-accent: #ef8b1e;
  --cb-accent-dark: #d97a10;
  --cb-dark: #0e2a47;
  --cb-text: #333;
  --cb-muted: #6b7a8d;
  --cb-bg: #f5f7fa;
  --cb-border: #e4e9f0;
  --cb-radius: 8px;
  --cb-shadow: 0 2px 12px rgba(13, 59, 102, 0.08);
  --cb-shadow-hover: 0 8px 24px rgba(13, 59, 102, 0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
  color: var(--cb-text);
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cb-primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cb-accent); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--cb-primary-dark); line-height: 1.35; font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--cb-bg); }

/* Section titles */
.sec-title { text-align: center; margin-bottom: 44px; }
.sec-title h2 { font-size: 32px; margin-bottom: 10px; position: relative; display: inline-block; padding-bottom: 14px; }
.sec-title h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 60px; height: 3px; background: var(--cb-accent); border-radius: 2px; }
.sec-title p { color: var(--cb-muted); font-size: 15px; max-width: 680px; margin: 0 auto; }

/* Buttons */
.btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-size: 15px; font-weight: 700; cursor: pointer; border: none; transition: all .25s; text-align: center; }
.btn-primary { background: var(--cb-accent); color: #fff; }
.btn-primary:hover { background: var(--cb-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(239,139,30,.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--cb-primary); }
.btn-blue { background: var(--cb-primary); color: #fff; }
.btn-blue:hover { background: var(--cb-primary-light); color: #fff; }

/* ============ Top Bar ============ */
.topbar { background: var(--cb-dark); color: #cfe0f0; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #cfe0f0; }
.topbar a:hover { color: var(--cb-accent); }
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); border-radius: 3px; font-size: 12px; }
.topbar-social a:hover { background: var(--cb-accent); color: #fff; }

/* ============ Header ============ */
.site-header { background: #fff; box-shadow: var(--cb-shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 82px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 52px; height: 52px; background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-light)); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; letter-spacing: 1px; flex-shrink: 0; }
.logo-text .name { font-size: 19px; font-weight: 800; color: var(--cb-primary-dark); line-height: 1.2; display: block; }
.logo-text .slogan { font-size: 11px; color: var(--cb-muted); letter-spacing: 2px; text-transform: uppercase; }
.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a { display: block; padding: 10px 15px; color: var(--cb-primary-dark); font-weight: 700; font-size: 15px; border-radius: 4px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--cb-accent); }
.main-nav li { position: relative; }
.main-nav li ul { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; box-shadow: var(--cb-shadow-hover); border-radius: 0 0 6px 6px; display: none; padding: 6px 0; z-index: 200; }
.main-nav li:hover > ul { display: block; }
.main-nav li ul a { padding: 9px 18px; font-size: 14px; white-space: nowrap; }
.main-nav li ul a:hover { background: var(--cb-bg); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 10px 22px; font-size: 14px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 26px; height: 3px; background: var(--cb-primary); margin: 5px 0; border-radius: 2px; }

/* ============ Hero Slider ============ */
.hero { position: relative; height: 540px; overflow: hidden; background: var(--cb-primary-dark); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-content { max-width: 640px; color: #fff; padding-left: 8%; animation: heroIn .8s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-content .eyebrow { display: inline-block; background: rgba(239,139,30,.9); padding: 5px 14px; border-radius: 3px; font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 18px; }
.hero-content h1 { color: #fff; font-size: 44px; line-height: 1.25; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hero-content p { font-size: 17px; opacity: .92; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots button { width: 34px; height: 4px; border: none; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--cb-accent); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; cursor: pointer; transition: background .2s; }
.hero-arrow:hover { background: var(--cb-accent); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* ============ Home: About Preview ============ */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-preview-img { position: relative; }
.about-preview-img img { border-radius: var(--cb-radius); box-shadow: var(--cb-shadow-hover); }
.about-preview-img .exp-badge { position: absolute; right: -18px; bottom: -18px; background: var(--cb-accent); color: #fff; border-radius: var(--cb-radius); padding: 18px 26px; text-align: center; box-shadow: var(--cb-shadow-hover); }
.exp-badge .num { font-size: 34px; font-weight: 800; line-height: 1; }
.exp-badge .lab { font-size: 12px; letter-spacing: 1px; }
.about-preview-text .eyebrow { color: var(--cb-accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.about-preview-text h2 { font-size: 32px; margin: 8px 0 18px; }
.about-preview-text p { color: var(--cb-muted); margin-bottom: 14px; }
.about-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 30px; }
.about-feats li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--cb-primary-dark); font-size: 14px; }
.about-feats li::before { content: "\2713"; width: 22px; height: 22px; background: rgba(29,111,184,.12); color: var(--cb-primary-light); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* ============ Home: Categories ============ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { position: relative; border-radius: var(--cb-radius); overflow: hidden; box-shadow: var(--cb-shadow); transition: all .3s; display: block; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--cb-shadow-hover); }
.cat-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .5s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .cat-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px; background: linear-gradient(transparent, rgba(10,31,51,.85)); color: #fff; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.cat-card .cat-name .arr { width: 30px; height: 30px; background: var(--cb-accent); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

/* ============ Home: Why Choose Us ============ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: #fff; border: 1px solid var(--cb-border); border-radius: var(--cb-radius); padding: 34px 28px; text-align: center; transition: all .3s; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--cb-shadow-hover); border-color: transparent; }
.why-icon { width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 18px; background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.why-card h3 { font-size: 18px; margin-bottom: 10px; }
.why-card p { color: var(--cb-muted); font-size: 14px; }

/* ============ Home: Products ============ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { background: #fff; border-radius: var(--cb-radius); overflow: hidden; box-shadow: var(--cb-shadow); transition: all .3s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--cb-shadow-hover); }
.prod-card .thumb { overflow: hidden; background: var(--cb-bg); }
.prod-card .thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s; }
.prod-card:hover .thumb img { transform: scale(1.06); }
.prod-card .info { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.prod-card .info h3 { font-size: 15px; line-height: 1.45; margin-bottom: 12px; flex: 1; }
.prod-card .info h3 a { color: var(--cb-primary-dark); }
.prod-card .info h3 a:hover { color: var(--cb-accent); }
.prod-card .more { font-size: 13px; font-weight: 700; color: var(--cb-accent); display: inline-flex; align-items: center; gap: 6px; }
.center-more { text-align: center; margin-top: 38px; }

/* ============ Stats band ============ */
.stats-band { background: linear-gradient(120deg, var(--cb-primary-dark), var(--cb-primary-light)); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item .num { font-size: 40px; font-weight: 800; line-height: 1.1; }
.stat-item .num i { font-style: normal; color: var(--cb-accent); }
.stat-item .lab { font-size: 14px; opacity: .85; margin-top: 6px; }

/* ============ News ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: var(--cb-radius); overflow: hidden; box-shadow: var(--cb-shadow); transition: all .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--cb-shadow-hover); }
.news-card .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card .info { padding: 20px 22px 24px; }
.news-card .date { font-size: 12px; color: var(--cb-muted); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.news-card h3 { font-size: 16px; line-height: 1.5; margin-bottom: 10px; }
.news-card h3 a { color: var(--cb-primary-dark); }
.news-card h3 a:hover { color: var(--cb-accent); }
.news-card p { font-size: 13.5px; color: var(--cb-muted); }

/* ============ CTA Band ============ */
.cta-band { background: linear-gradient(rgba(10,31,51,.88), rgba(10,31,51,.88)), linear-gradient(120deg, var(--cb-primary), var(--cb-primary-light)); padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 28px; margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.8); }

/* ============ Footer ============ */
.site-footer { background: var(--cb-dark); color: #a9bccf; font-size: 14px; }
.footer-main { padding: 56px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--cb-accent); }
.footer-col p { margin-bottom: 12px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #a9bccf; }
.footer-col ul a:hover { color: var(--cb-accent); }
.footer-col ul a::before { content: "\203A"; margin-right: 8px; color: var(--cb-accent); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; line-height: 1.6; }
.footer-contact .ico { color: var(--cb-accent); flex-shrink: 0; width: 18px; text-align: center; }
.footer-contact a { color: #a9bccf; }
.footer-contact a:hover { color: var(--cb-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom a { color: #a9bccf; }
.footer-bottom a:hover { color: var(--cb-accent); }

/* ============ Breadcrumb & Page banner ============ */
.page-banner { background: linear-gradient(rgba(10,43,75,.82), rgba(10,43,75,.82)), url(assets/img/banner-1.svg) center/cover; padding: 52px 0; text-align: center; }
.page-banner h1 { color: #fff; font-size: 34px; margin-bottom: 8px; }
.page-banner .crumbs { color: rgba(255,255,255,.75); font-size: 13.5px; }
.page-banner .crumbs a { color: rgba(255,255,255,.75); }
.page-banner .crumbs a:hover { color: var(--cb-accent); }

/* ============ Layout with sidebar ============ */
.layout-2col { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.sidebar .widget { background: #fff; border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); padding: 24px; margin-bottom: 24px; }
.sidebar .widget-title { font-size: 17px; padding-bottom: 12px; border-bottom: 2px solid var(--cb-bg); margin-bottom: 16px; }
.sidebar .cat-list li { border-bottom: 1px dashed var(--cb-border); }
.sidebar .cat-list li:last-child { border-bottom: none; }
.sidebar .cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 4px; color: var(--cb-text); font-size: 14px; }
.sidebar .cat-list a:hover, .sidebar .cat-list .active a { color: var(--cb-accent); }
.sidebar .cat-list .count { font-size: 12px; color: var(--cb-muted); background: var(--cb-bg); padding: 1px 8px; border-radius: 10px; }
.sidebar .prod-mini { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--cb-border); }
.sidebar .prod-mini:last-child { border-bottom: none; }
.sidebar .prod-mini img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sidebar .prod-mini h4 { font-size: 13.5px; line-height: 1.45; font-weight: 600; }
.sidebar .prod-mini h4 a { color: var(--cb-text); }
.sidebar .prod-mini h4 a:hover { color: var(--cb-accent); }
.side-cta { background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-light)); color: #fff; text-align: center; padding: 30px 24px; border-radius: var(--cb-radius); }
.side-cta h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.side-cta p { font-size: 13px; opacity: .85; margin-bottom: 18px; }
.side-cta .btn { width: 100%; }

/* ============ Product single ============ */
.product-single { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.product-gallery { position: sticky; top: 100px; }
.product-gallery img { border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); width: 100%; }
.product-title { font-size: 28px; margin-bottom: 14px; }
.product-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13.5px; color: var(--cb-muted); }
.product-meta b { color: var(--cb-primary-dark); }
.product-desc { color: var(--cb-text); margin-bottom: 24px; }
.product-desc p { margin-bottom: 12px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: 14px; }
.spec-table caption { text-align: left; font-weight: 700; font-size: 16px; color: var(--cb-primary-dark); padding-bottom: 10px; }
.spec-table td { border: 1px solid var(--cb-border); padding: 10px 14px; }
.spec-table td:first-child { background: var(--cb-bg); font-weight: 700; color: var(--cb-primary-dark); width: 40%; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Forms ============ */
.inquiry-form { background: #fff; border: 1px solid var(--cb-border); border-radius: var(--cb-radius); padding: 30px; box-shadow: var(--cb-shadow); }
.inquiry-form h3 { font-size: 20px; margin-bottom: 6px; }
.inquiry-form .form-note { font-size: 13px; color: var(--cb-muted); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--cb-primary-dark); }
.form-field label .req { color: #e05656; }
.form-field input, .form-field textarea, .form-field select { border: 1px solid var(--cb-border); border-radius: 5px; padding: 11px 14px; font-size: 14px; font-family: inherit; background: #fbfcfe; transition: border-color .2s; width: 100%; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--cb-primary-light); background: #fff; }
.form-msg { padding: 12px 16px; border-radius: 5px; margin-bottom: 18px; font-size: 14px; }
.form-msg.ok { background: #e8f6ee; color: #1c7a44; border: 1px solid #bfe5cf; }
.form-msg.err { background: #fdecec; color: #b03030; border: 1px solid #f2c6c6; }

/* ============ Blog ============ */
.post-card { display: grid; grid-template-columns: 280px 1fr; gap: 24px; background: #fff; border-radius: var(--cb-radius); box-shadow: var(--cb-shadow); overflow: hidden; margin-bottom: 24px; transition: all .3s; }
.post-card:hover { box-shadow: var(--cb-shadow-hover); transform: translateY(-3px); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.post-card .info { padding: 24px 26px 24px 0; display: flex; flex-direction: column; }
.post-card h2 { font-size: 20px; margin-bottom: 10px; }
.post-card h2 a { color: var(--cb-primary-dark); }
.post-card h2 a:hover { color: var(--cb-accent); }
.post-card .meta { font-size: 12.5px; color: var(--cb-muted); margin-bottom: 10px; }
.post-card .excerpt { color: var(--cb-muted); font-size: 14px; flex: 1; }
.post-card .more { margin-top: 12px; font-weight: 700; color: var(--cb-accent); font-size: 13.5px; }

/* Entry content */
.entry-content { font-size: 15.5px; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2, .entry-content h3 { margin: 26px 0 14px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 24px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--cb-radius); margin: 10px 0; }
.entry-content table { border-collapse: collapse; margin: 16px 0; width: 100%; }
.entry-content table td, .entry-content table th { border: 1px solid var(--cb-border); padding: 8px 12px; }

/* Pagination */
.pagination-wrap { margin-top: 36px; text-align: center; }
.nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--cb-border); border-radius: 5px; color: var(--cb-text); font-weight: 700; background: #fff; }
.nav-links .page-numbers.current { background: var(--cb-primary); color: #fff; border-color: var(--cb-primary); }
.nav-links .page-numbers:hover:not(.current) { border-color: var(--cb-accent); color: var(--cb-accent); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info-card { background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-light)); color: #fff; border-radius: var(--cb-radius); padding: 38px 34px; }
.contact-info-card h3 { color: #fff; font-size: 22px; margin-bottom: 22px; }
.contact-info-card li { display: flex; gap: 14px; margin-bottom: 20px; font-size: 14.5px; line-height: 1.6; }
.contact-info-card .ico { width: 40px; height: 40px; background: rgba(255,255,255,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.contact-info-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-info-card a { color: #fff; }

/* ============ Floating WhatsApp & back-to-top ============ */
.float-tools { position: fixed; right: 22px; bottom: 26px; z-index: 300; display: flex; flex-direction: column; gap: 12px; }
.float-tools a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 14px rgba(0,0,0,.22); transition: transform .2s; }
.float-tools a:hover { transform: scale(1.08); }
.float-wa { background: #25d366; color: #fff; }
.float-top { background: var(--cb-primary); color: #fff; font-size: 18px; display: none; }
.float-top.show { display: flex; }

/* ============ 404 ============ */
.error-404 { text-align: center; padding: 90px 20px; }
.error-404 .code { font-size: 90px; font-weight: 800; color: var(--cb-primary); line-height: 1; }
.error-404 h2 { margin: 14px 0 10px; }
.error-404 p { color: var(--cb-muted); margin-bottom: 26px; }

/* No thumbnail placeholder */
.no-thumb { background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-light)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85); font-weight: 700; width: 100%; aspect-ratio: 16/9; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .layout-2col { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 36px; }
}
@media (max-width: 768px) {
  .topbar-left span:nth-child(2) { display: none; }
  .header-inner { height: 68px; }
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; background: #fff; box-shadow: var(--cb-shadow-hover); padding: 10px 0; display: none; z-index: 150; max-height: calc(100vh - 68px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0 16px; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--cb-border); }
  .main-nav li ul { position: static; display: block; box-shadow: none; padding-left: 14px; }
  .mobile-toggle { display: block; }
  .header-actions .btn { display: none; }
  .hero { height: 460px; }
  .hero-content { padding: 0 24px; }
  .hero-content h1 { font-size: 28px; }
  .hero-arrow { display: none; }
  .section { padding: 44px 0; }
  .sec-title h2 { font-size: 26px; }
  .about-preview, .product-single, .contact-grid { grid-template-columns: 1fr; }
  .about-preview-img .exp-badge { right: 10px; bottom: -14px; }
  .cat-grid, .why-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card .thumb img { min-height: 180px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .cat-grid, .why-grid, .news-grid, .prod-grid { grid-template-columns: 1fr; }
  .hero { height: 420px; }
  .hero-content h1 { font-size: 24px; }
}
