/* ============================================================
   Nantong Plastics — Main CSS
   White + Tech Blue · Industrial B2B
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
    --blue:        #0066CC;
    --blue-deep:   #003D7A;
    --blue-light:  #E3F2FD;
    --blue-sky:    #1E88E5;
    --orange:      #FF6B35;
    --orange-dark: #E55A2B;
    --green-wa:    #25D366;
    --tx:          #212121;
    --tx-2:        #616161;
    --tx-3:        #9E9E9E;
    --border:      #E0E0E0;
    --bg:          #FFFFFF;
    --bg-gray:     #F5F7FA;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --radius:    4px;
    --radius-lg: 8px;
    --shadow:    0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --header-h:  76px;
    --container: 1200px;
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--blue-deep); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--tx);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--blue-sky); }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: 0; background: none; font: inherit; color: inherit; }

h1, h2, h3, h4 { font-weight: 700; color: var(--tx); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 32px); color: var(--blue-deep); }
h3 { font-size: clamp(18px, 1.6vw, 22px); }
h4 { font-size: 16px; letter-spacing: 0.02em; }
p  { margin: 0 0 1em; color: var(--tx-2); }

/* ── Container ──────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Section ────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-sub { font-size: 16px; color: var(--tx-2); margin: 0; }
.section-foot { margin-top: 40px; text-align: center; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    height: 44px; padding: 0 22px;
    border-radius: var(--radius);
    font-size: 15px; font-weight: 600;
    line-height: 1; letter-spacing: 0.01em;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-cta { background: var(--orange); color: #fff; }
.btn-cta:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: #fff; color: var(--blue-deep); border-color: #fff; }
.btn-whatsapp { background: var(--green-wa); color: #fff; }
.btn-whatsapp:hover { background: #1DAE54; color: #fff; }

/* ── WP Admin Bar — match theme top-bar color to remove visual gap ── */
#wpadminbar { background-color: var(--blue-deep) !important; }
#wpadminbar .ab-top-menu > li > .ab-item,
#wpadminbar .ab-top-menu > li > .ab-item:focus { color: rgba(255,255,255,0.8) !important; }
#wpadminbar .ab-top-menu > li.hover > .ab-item,
#wpadminbar .ab-top-menu > li.menupop:hover > .ab-item,
#wpadminbar .ab-submenu { background-color: var(--blue-sky) !important; }

/* ── Top Bar ─────────────────────────────────────────────── */
.top-bar {
    position: sticky; top: 0; z-index: 101;
    background: var(--blue-deep);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    line-height: 1;
}
.top-bar-inner {
    display: flex; align-items: center; justify-content: flex-end;
    height: 28px; gap: 16px;
}
.top-bar-contact { display: flex; align-items: center; gap: 20px; }
.top-bar-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s var(--ease);
    white-space: nowrap;
}
.top-bar-link:hover { color: #fff; }
.top-bar-social { display: flex; align-items: center; gap: 10px; }
.top-bar-social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    color: rgba(255,255,255,0.7);
    border-radius: 4px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.top-bar-social-link:hover { color: #fff; background: rgba(255,255,255,0.12); }
@media (max-width: 640px) {
    .top-bar-contact .top-bar-link:nth-child(2) { display: none; } /* hide email on small mobile */
}
@media (max-width: 480px) {
    .top-bar-contact { gap: 12px; }
    .top-bar-link { font-size: 11px; }
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 28px; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}
.header-inner {
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.site-logo { display: flex; align-items: center; gap: 12px; color: var(--blue-deep); text-decoration: none; }
.site-logo:hover { color: var(--blue-deep); }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-name { font-weight: 700; font-size: 15px; white-space: nowrap; }
.logo-sub { font-size: 11px; color: var(--tx-2); font-weight: 400; white-space: nowrap; }

.primary-nav .nav-list {
    display: flex; align-items: center; gap: 4px;
}
.primary-nav a, .primary-nav .dropdown-trigger {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 14px;
    font-size: 14px; font-weight: 500;
    color: var(--tx);
    border-radius: var(--radius);
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.primary-nav a:hover, .primary-nav .dropdown-trigger:hover {
    color: var(--blue); background: var(--blue-light);
}
.primary-nav .ext-link { color: var(--tx-2); }

.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
}
.dropdown-menu a {
    display: block; padding: 10px 18px;
    border-radius: 0;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.header-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
    display: inline-flex; align-items: center;
    padding: 8px 12px;
    font-size: 13px; font-weight: 600;
    color: var(--blue-deep);
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang-toggle:hover { color: var(--blue); border-color: var(--blue); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--blue-deep); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    height: clamp(480px, 80vh, 720px);
    overflow: hidden;
    background: var(--blue-deep);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; transition: opacity 0.8s var(--ease);
    pointer-events: none;
    will-change: opacity;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,30,80,0.52) 0%, rgba(0,30,80,0.28) 60%, rgba(0,30,80,0.10) 100%);
}
.hero-content { position: relative; color: #fff; max-width: 760px; }
.hero-content h1 {
    color: #fff;
    font-size: clamp(24px, 5vw, 56px);
    line-height: 1.2;
    margin-bottom: 16px;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.hero-content p { color: rgba(255,255,255,0.9); font-size: clamp(15px, 1.4vw, 19px); margin: 0; }

.hero-actions {
    position: absolute; left: 0; right: 0; bottom: 64px;
    display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-dots {
    position: absolute; left: 50%; bottom: 24px;
    transform: translateX(-50%);
    display: flex; gap: 8px;
}
.hero-dots button {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background 0.25s var(--ease), width 0.25s var(--ease);
}
.hero-dots button.is-active { background: #fff; width: 28px; border-radius: 5px; }

/* ── Stats ──────────────────────────────────────────────── */
.stats { background: var(--blue-light); padding: 56px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-num {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: var(--blue-deep);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label { font-size: 14px; color: var(--tx-2); font-weight: 500; }

/* ── Categories ─────────────────────────────────────────── */
.cat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.cat-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    color: var(--tx);
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}
.cat-card-img { aspect-ratio: 1; overflow: hidden; background: var(--blue-light); }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.cat-card h3 { color: var(--blue-deep); margin-bottom: 8px; }
.cat-card p { font-size: 14px; margin-bottom: 16px; flex: 1; }
.cat-card-cta { color: var(--blue); font-weight: 600; font-size: 14px; }

/* ── Why ────────────────────────────────────────────────── */
.section-why { background: var(--bg-gray); }
.why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.why-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: var(--blue-light);
    color: var(--blue);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}
.why-card h3 { color: var(--blue-deep); margin-bottom: 8px; }
.why-card p { font-size: 14px; margin: 0; }

/* ── Factory ────────────────────────────────────────────── */
.factory-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.factory-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.factory-img img { width: 100%; height: auto; }
.factory-body h2 { margin-bottom: 16px; }
.factory-body p { font-size: 16px; margin-bottom: 24px; }
.factory-bullets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.factory-bullets li {
    position: relative;
    padding-left: 28px;
    color: var(--tx);
    font-size: 15px;
}
.factory-bullets li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 16px; height: 9px;
    border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
}

/* ── Certifications ─────────────────────────────────────── */
.section-certs { background: var(--bg-gray); }

/* Homepage: 4-cert grid, no scrolling */
.cert-grid-home {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-top: 32px;
}
@media (max-width: 768px) { .cert-grid-home { grid-template-columns: repeat(2, 1fr); } }

/* Certifications page: multi-column grid per category */
.cert-category {
    contain: layout style;
    margin-top: 56px;
}
.cert-category:first-child { margin-top: 0; }
.cert-category-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px; padding-bottom: 14px;
    border-bottom: 2px solid var(--blue);
}
.cert-category-head h3 { font-size: 20px; color: var(--blue-deep); margin: 0; }
.cert-category-count {
    font-size: 12px; color: var(--blue); background: var(--blue-light);
    padding: 2px 10px; border-radius: 20px; font-weight: 600;
}
.cert-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 960px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px)  { .cert-grid { grid-template-columns: repeat(2, 1fr); } }

/* Cert card (shared) */
.cert-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    display: flex; flex-direction: column;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cert-card-img { aspect-ratio: 400/560; overflow: hidden; }
.cert-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-card-label {
    padding: 10px 12px 12px; text-align: center; flex: 1;
}
.cert-card-label strong {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--tx); line-height: 1.4; margin-bottom: 2px;
}
.cert-card-label span {
    display: block; font-size: 11px; color: var(--tx-3); line-height: 1.3;
}

/* ISO special: single card wider */
.cert-grid-iso {
    display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
}
.cert-grid-iso .cert-card-img { aspect-ratio: 400/560; }
.cert-grid-iso .cert-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cert-grid-iso-body { padding: 32px 32px 32px 0; }
.cert-grid-iso-body h4 { font-size: 20px; color: var(--blue-deep); margin: 0 0 6px; }
.cert-grid-iso-body p  { color: var(--tx-2); font-size: 15px; margin: 0; line-height: 1.6; }
@media (max-width: 640px) {
    .cert-grid-iso { grid-template-columns: 1fr; }
    .cert-grid-iso-body { padding: 20px; }
}

/* ── Brand Wall ─────────────────────────────────────────── */
.brand-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.brand-cell {
    aspect-ratio: 150/80;
    min-width: 0; /* grid items default to min-width:auto; this allows cells to shrink below image intrinsic size on mobile */
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.brand-cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border-color: transparent;
}
.brand-cell img {
    height: 36px;        /* fixed height = all logos same visual size */
    width: auto;         /* width follows each logo's own aspect ratio */
    max-width: 80%;      /* don't overflow narrow mobile cells */
    object-fit: contain;
    transition: filter 0.25s var(--ease);
}
@media (min-width: 768px) { .brand-cell img { height: 44px; } }
@media (min-width: 1200px) { .brand-cell img { height: 52px; } }
.brand-cell:hover img { filter: brightness(1.05); }

/* ── News ───────────────────────────────────────────────── */
.news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.news-img { display: block; aspect-ratio: 500/300; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 24px; }
.news-meta { display: flex; gap: 12px; font-size: 12px; color: var(--tx-2); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.news-cat { color: var(--blue); font-weight: 600; }
.news-body h3 { margin-bottom: 16px; }
.news-body h3 a { color: var(--tx); }
.news-body h3 a:hover { color: var(--blue); }
.news-readmore { font-size: 14px; font-weight: 600; color: var(--blue); }

/* ── Bottom CTA ─────────────────────────────────────────── */
.section-cta { background: var(--blue-deep); color: #fff; padding: 64px 0; }
.cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 32px; flex-wrap: wrap;
}
.cta-text h2 { color: #fff; margin-bottom: 8px; }
.cta-text p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,0.8); margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding: 64px 24px 48px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 16px; }

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-mark {
    background: #fff;
    border-radius: var(--radius);
    padding: 4px;
}
.footer-logo .logo-name { color: #fff; font-weight: 700; }
.footer-about { font-size: 14px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    color: #fff;
}
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-contact-list { font-size: 14px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: rgba(255,255,255,0.55); }
.footer-bottom-links a:hover { color: #fff; }

/* ── Floating actions ───────────────────────────────────── */
.floating-actions {
    position: fixed; right: 20px; bottom: 24px; z-index: 90;
    display: flex; flex-direction: column; gap: 10px;
}
.fab {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.fab:hover { transform: translateY(-2px); color: #fff; }
.fab-whatsapp { background: var(--green-wa); }
.fab-whatsapp:hover { background: #1DAE54; }
.fab-wechat { background: var(--blue); }
.fab-wechat:hover { background: var(--blue-sky); }
.fab-email { background: var(--orange); }
.fab-email:hover { background: var(--orange-dark); }
.fab-top { background: var(--blue-deep); opacity: 0; visibility: hidden; }
.fab-top.is-visible { opacity: 1; visibility: visible; }
.fab-top:hover { background: var(--blue); }

/* ── WeChat popup ───────────────────────────────────────── */
.wechat-popup {
    position: fixed; inset: 0; z-index: 110;
    background: rgba(0,30,80,0.7);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.wechat-popup[hidden] { display: none; }
.wechat-popup-inner {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 32px 24px;
    text-align: center;
    max-width: 280px;
}
.wechat-close {
    position: absolute; top: 8px; right: 12px;
    font-size: 24px; color: var(--tx-2);
    line-height: 1;
}
.wechat-close:hover { color: var(--tx); }
.wechat-title { font-weight: 600; color: var(--blue-deep); margin-bottom: 12px; }
.wechat-popup img { margin: 0 auto 12px; border-radius: var(--radius); }
.wechat-id { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--tx); margin: 0; }

/* ── Cookie banner ──────────────────────────────────────── */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: #fff;
    border-top: 2px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    padding: 14px 0;
    font-size: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; padding: 4px 0;
}
.cookie-text { flex: 1; min-width: 200px; font-size: 13px; color: var(--tx-2); margin: 0; line-height: 1.5; }
.cookie-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cookie-link { font-size: 13px; color: var(--tx-2); white-space: nowrap; }
.cookie-link:hover { color: var(--blue); }
.cookie-btn-outline {
    display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: #fff; font-size: 13px; color: var(--tx); cursor: pointer;
    transition: border-color 0.2s, color 0.2s; white-space: nowrap;
}
.cookie-btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.cookie-btn-accept { height: 36px; padding: 0 16px; font-size: 13px; white-space: nowrap; }

/* ── Cookie preferences panel ───────────────────────────── */
.cookie-prefs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    background: #fff;
    border-top: 2px solid var(--blue);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.10);
    max-height: 80vh; overflow-y: auto;
}
.cookie-prefs[hidden] { display: none; }
.cookie-prefs-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cookie-prefs-title { font-size: 15px; font-weight: 700; margin: 0; }
.cookie-prefs-close {
    background: none; border: none; cursor: pointer;
    font-size: 22px; line-height: 1; color: var(--tx-2);
    padding: 4px 8px; border-radius: var(--radius);
}
.cookie-prefs-close:hover { background: var(--bg-gray); color: var(--tx); }
.cookie-prefs-body { padding: 4px 0; }
.cookie-cat {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px 0; border-bottom: 1px solid var(--bg-gray);
}
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat-side { flex-shrink: 0; padding-top: 2px; }
.cookie-cat-info { flex: 1; }
.cookie-cat-name { font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.cookie-cat-desc { font-size: 13px; color: var(--tx-2); line-height: 1.5; margin: 0; }
.cookie-always-on {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
    color: var(--blue); background: var(--blue-light);
    padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}
.cookie-prefs-foot {
    display: flex; justify-content: flex-end;
    padding: 16px 0; border-top: 1px solid var(--border);
}

/* ── Cookie toggle switch ───────────────────────────────── */
.cookie-toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle-track {
    position: absolute; inset: 0; border-radius: 12px;
    background: var(--border); transition: background 0.2s var(--ease);
}
.cookie-toggle-track::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: left 0.2s var(--ease);
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--blue); }
.cookie-toggle input:checked + .cookie-toggle-track::after { left: 23px; }
.cookie-toggle input:focus-visible + .cookie-toggle-track { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 640px) {
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; justify-content: flex-end; }
    .cookie-link { display: none; }  /* privacy link in prefs panel is enough on mobile */
}

/* ── Page fallback ──────────────────────────────────────── */
.page-fallback { padding: 80px 24px; min-height: 50vh; }
.page-404 { text-align: center; }
.page-404 h1 { font-size: clamp(64px, 12vw, 140px); color: var(--blue-deep); margin-bottom: 8px; }

/* ============================================================
   Sub-pages: shared
   ============================================================ */

/* ── Page banner ────────────────────────────────────────── */
.page-banner {
    position: relative;
    height: clamp(260px, 40vh, 420px);
    overflow: hidden;
    background: var(--blue-deep);
    display: flex; align-items: center;
}
.page-banner-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.5;
}
.page-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,30,80,0.55) 0%, rgba(0,30,80,0.75) 100%);
}
.page-banner-content { position: relative; color: #fff; }
.page-banner-content h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
.page-banner-content p  { color: rgba(255,255,255,0.85); font-size: clamp(15px, 1.4vw, 18px); margin: 0; max-width: 720px; }

.breadcrumb {
    display: flex; gap: 8px; align-items: center;
    font-size: 13px; color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

.container.narrow { max-width: 880px; }
.lead { font-size: 17px; color: var(--tx); line-height: 1.7; }

/* ============================================================
   About page
   ============================================================ */
.story-grid {
    display: grid; grid-template-columns: 1fr 2fr; gap: 56px;
    align-items: start;
}
.story-aside h2 { margin-bottom: 24px; }
.story-meta {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    padding: 24px; background: var(--blue-light); border-radius: var(--radius-lg);
}
.story-meta > div { display: flex; flex-direction: column; }
.story-meta span { font-size: 28px; font-weight: 800; color: var(--blue-deep); line-height: 1; }
.story-meta small { font-size: 13px; color: var(--tx-2); margin-top: 4px; }

.timeline {
    position: relative;
    list-style: none; padding: 0; margin: 0;
    counter-reset: timeline;
}
.timeline::before {
    content: ""; position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px; background: var(--border);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    width: 50%; padding: 16px 32px 16px 0;
}
.timeline-item:nth-child(even) {
    margin-left: 50%; padding: 16px 0 16px 32px;
}
.timeline-marker {
    position: absolute;
    top: 22px;
    width: 64px; height: 36px;
    background: var(--blue); color: #fff;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.timeline-item .timeline-marker { right: -32px; transform: translateX(50%); }
.timeline-item:nth-child(even) .timeline-marker { left: -32px; right: auto; transform: translateX(-50%); }
.timeline-body {
    background: #fff; border: 1px solid var(--border);
    padding: 16px 20px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    font-size: 15px;
}

.section-mvv { background: var(--bg-gray); }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card {
    background: #fff; padding: 32px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    text-align: center;
}
.mvv-card h3 { color: var(--blue-deep); margin-bottom: 12px; }
.mvv-card p  { font-size: 16px; margin: 0; }

.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.gallery-cell {
    aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius);
    background: var(--blue-light);
}
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-cell:hover img { transform: scale(1.05); }

.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dept-card {
    background: #fff; padding: 24px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.dept-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.dept-card h3 { color: var(--blue-deep); margin-bottom: 8px; }
.dept-card p  { font-size: 14px; margin: 0; }

@media (max-width: 1024px) {
    .story-grid    { grid-template-columns: 1fr; gap: 32px; }
    .mvv-grid      { grid-template-columns: 1fr; }
    .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
    .dept-grid     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .timeline::before { left: 16px; transform: none; }
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%; margin-left: 0; padding: 16px 0 16px 56px;
    }
    .timeline-item .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 16px; right: auto; transform: none;
    }
}

/* ============================================================
   Products overview
   ============================================================ */
.products-overview { display: flex; flex-direction: column; gap: 64px; }
.products-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center;
}
.products-row.is-reverse .products-row-img { order: 2; }
.products-row-img {
    overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.products-row-img img { width: 100%; height: auto; display: block; }
.products-row-body h2 { margin-bottom: 8px; }
.products-row-sub { color: var(--blue); font-weight: 500; margin-bottom: 16px; }
.products-row-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.products-overview-count {
    display: inline-block; font-size: 12px; font-weight: 700;
    color: var(--blue); background: var(--blue-light);
    border-radius: 20px; padding: 3px 12px; margin-bottom: 12px;
    letter-spacing: 0.04em;
}
.products-overview-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.products-overview-sub {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--tx-2);
    background: var(--bg-gray); border-radius: 20px;
    padding: 4px 12px; border: 1px solid var(--border);
}
.products-overview-sub em { font-style: normal; font-weight: 700; color: var(--blue-deep); }
/* ── Category page: full filter bar ──────────────────────────── */
.cat-filter-bar {
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 28px;
    padding: 20px; background: var(--bg-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

/* Search */
.cat-search-wrap {
    position: relative; display: flex; align-items: center;
}
.cat-search-icon {
    position: absolute; left: 13px; color: var(--tx-3); pointer-events: none;
}
.cat-search-input {
    width: 100%; padding: 10px 36px 10px 38px;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font: inherit; font-size: 14px; color: var(--tx); background: #fff;
    transition: border-color 0.2s var(--ease);
}
.cat-search-input:focus { outline: none; border-color: var(--blue); }
.cat-search-input::placeholder { color: var(--tx-3); }
.cat-search-clear {
    position: absolute; right: 10px;
    background: none; border: none; cursor: pointer;
    color: var(--tx-3); font-size: 14px; padding: 4px 6px;
}
.cat-search-clear:hover { color: var(--tx); }

/* Sub-category tabs (generation) */
.cat-sub-tabs {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-sub-tab {
    padding: 7px 16px; border-radius: var(--radius);
    border: 1.5px solid var(--border); background: #fff;
    color: var(--tx); font-size: 13px; font-weight: 500; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.cat-sub-tab:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.cat-sub-tab.is-active {
    background: var(--blue-deep); border-color: var(--blue-deep);
    color: #fff; font-weight: 600;
}
.cat-sub-count {
    font-size: 11px; font-weight: 700; border-radius: 20px;
    padding: 1px 7px;
    background: rgba(0,0,0,0.08); color: inherit;
}
.cat-sub-tab.is-active .cat-sub-count { background: rgba(255,255,255,0.2); }

/* Diameter filter */
.cat-dia-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding-top: 10px; border-top: 1px solid var(--border);
}
.cat-dia-label {
    font-size: 12px; font-weight: 700; color: var(--tx-2);
    text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap;
}
.cat-dia-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-dia-pill {
    padding: 4px 12px; border-radius: 20px;
    border: 1.5px solid var(--border); background: #fff;
    color: var(--tx-2); font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease); white-space: nowrap;
}
.cat-dia-pill:hover { border-color: var(--blue); color: var(--blue); }
.cat-dia-pill.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* full-width details button */
.pcard-details-btn { width: 100%; text-align: center; justify-content: center; }

/* ── Catalog pagination ──────────────────────────────────────── */
.cat-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap;
    margin: 40px 0 16px;
}
.cat-page-btn {
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: var(--radius); border: 1.5px solid var(--border);
    background: #fff; color: var(--tx); font-size: 14px; font-weight: 500;
    cursor: pointer; transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
    display: inline-flex; align-items: center; justify-content: center;
}
.cat-page-btn:hover { border-color: var(--blue); color: var(--blue); }
.cat-page-btn.is-active {
    background: var(--blue-deep); border-color: var(--blue-deep);
    color: #fff; font-weight: 700;
}
.cat-page-btn:disabled { opacity: 0.35; cursor: default; }
.cat-page-ellipsis {
    min-width: 32px; text-align: center;
    color: var(--tx-3); font-size: 14px; user-select: none;
}
/* No results */
.cat-no-results {
    text-align: center; padding: 64px 20px;
    color: var(--tx-3); font-size: 15px;
}
.cat-no-results[hidden] { display: none; }

@media (max-width: 1024px) {
    .products-row { grid-template-columns: 1fr; gap: 24px; }
    .products-row.is-reverse .products-row-img { order: 0; }
}

.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }

/* ============================================================
   Custom Service
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap-card {
    background: #fff; padding: 28px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cap-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.cap-icon {
    width: 48px; height: 48px;
    background: var(--blue-light); color: var(--blue);
    border-radius: var(--radius); display: inline-flex;
    align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.cap-card h3 { color: var(--blue-deep); margin-bottom: 8px; font-size: 18px; }
.cap-card p  { font-size: 14px; margin: 0; }

.process-flow {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px; align-items: stretch;
}
.process-step {
    text-align: center; padding: 24px 12px;
    background: var(--bg-gray); border-radius: var(--radius-lg);
    position: relative;
}
.process-num {
    width: 36px; height: 36px;
    background: var(--blue); color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; margin-bottom: 12px;
}
.process-step h3 { font-size: 15px; color: var(--blue-deep); margin-bottom: 6px; }
.process-step p  { font-size: 13px; margin: 0; color: var(--tx-2); }

.commit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.commit-card {
    text-align: center; padding: 32px 16px;
    background: var(--blue-deep); color: #fff;
    border-radius: var(--radius-lg);
}
.commit-num { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; margin-bottom: 8px; }
.commit-label { font-size: 14px; color: rgba(255,255,255,0.85); }

.mold-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center;
}
.mold-img { border-radius: var(--radius-lg); overflow: hidden; }
.mold-img img { width: 100%; height: auto; }

.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.case-img { aspect-ratio: 3/2; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card h3 { font-size: 17px; padding: 20px 20px 0; color: var(--blue-deep); margin: 0 0 8px; }
.case-card p  { padding: 0 20px 20px; margin: 0; font-size: 14px; }

@media (max-width: 1024px) {
    .cap-grid       { grid-template-columns: repeat(2, 1fr); }
    .process-flow   { grid-template-columns: repeat(2, 1fr); }
    .commit-grid    { grid-template-columns: repeat(2, 1fr); }
    .mold-grid      { grid-template-columns: 1fr; gap: 32px; }
    .cases-grid     { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .cap-grid       { grid-template-columns: 1fr; }
    .process-flow   { grid-template-columns: 1fr; }
    .commit-grid    { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MOQ
   ============================================================ */
.tier-table-wrap { overflow-x: auto; }
.tier-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-size: 15px;
}
.tier-table th {
    background: var(--blue-light);
    color: var(--blue-deep);
    font-weight: 600;
    padding: 14px 16px; text-align: left;
}
.tier-table td {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}
.tier-table tr:nth-child(even) td { background: var(--bg-gray); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.check-list, .bullet-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.check-list li {
    position: relative; padding-left: 32px; font-size: 15px;
}
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 6px;
    width: 18px; height: 10px;
    border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
    transform: rotate(-45deg);
}
.bullet-list li {
    position: relative; padding-left: 22px; font-size: 15px;
}
.bullet-list li::before {
    content: ""; position: absolute; left: 0; top: 9px;
    width: 8px; height: 8px;
    background: var(--blue);
    border-radius: 50%;
}
.bullet-list-wide li { padding: 10px 0 10px 22px; border-top: 1px solid var(--border); }
.bullet-list-wide li:first-child { border-top: 0; }
.bullet-list-wide li::before { top: 19px; }

@media (max-width: 1024px) {
    .info-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact-card-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.contact-card {
    display: flex; flex-direction: column; align-items: flex-start;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    text-align: left; color: var(--tx);
    font: inherit; cursor: pointer;
    text-decoration: none;
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
    color: var(--tx);
}
.contact-card-icon {
    width: 44px; height: 44px;
    background: var(--blue-light); color: var(--blue);
    border-radius: var(--radius);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.contact-card-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tx-2); margin-bottom: 4px; }
.contact-card-value { font-weight: 600; color: var(--blue-deep); font-size: 15px; word-break: break-word; }

.map-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: stretch;
}
.map-body h2 { margin-bottom: 16px; }
.map-body p { font-size: 16px; margin-bottom: 24px; }
.hours-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.hours-list strong { color: var(--blue-deep); display: inline-block; min-width: 120px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 400px; }

@media (max-width: 1024px) {
    .contact-card-grid { grid-template-columns: repeat(2, 1fr); }
    .map-grid          { grid-template-columns: 1fr; gap: 32px; }
    .map-frame iframe  { min-height: 300px; }
}
@media (max-width: 480px) {
    .contact-card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Inquiry form
   ============================================================ */
.inquiry-form {
    display: flex; flex-direction: column; gap: 16px;
    background: #fff;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.phone-field-wrap { display: flex; gap: 6px; align-items: stretch; }
.phone-code-select { flex: 0 0 82px; width: 82px !important; padding-left: 8px !important; padding-right: 4px !important; font-size: 14px; cursor: pointer; }
.phone-number-input { flex: 1 1 0; min-width: 0; width: auto !important; }
.form-field span { color: var(--tx-2); font-weight: 500; }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit; font-size: 15px;
    color: var(--tx); background: #fff;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; margin-top: 8px; }
.form-feedback {
    font-size: 14px; margin-top: 4px; padding: 10px 14px;
    border-radius: var(--radius);
}
.form-feedback:empty { padding: 0; }
.form-feedback.is-success { background: #E7F6EE; color: #1B7F3D; border: 1px solid #BFE5CD; }
.form-feedback.is-error   { background: #FDECEC; color: #B0392F; border: 1px solid #F2C7C2; }

@media (max-width: 768px) {
    .inquiry-form { padding: 20px; }
    .form-row     { grid-template-columns: 1fr; }
    .form-submit  { align-self: stretch; }
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color 0.25s var(--ease);
}
.faq-item[open] { border-color: var(--blue); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    font-size: 16px; font-weight: 600; color: var(--blue-deep);
    cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--blue-light); color: var(--blue);
    border-radius: 50%;
    font-size: 18px; line-height: 1; font-weight: 600;
}
.faq-answer { padding: 0 24px 20px; color: var(--tx-2); font-size: 15px; }

/* ============================================================
   News page (wider grid)
   ============================================================ */
.news-grid-wide { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .news-grid-wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .news-grid-wide { grid-template-columns: 1fr; } }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .stats-grid     { grid-template-columns: repeat(5, 1fr); gap: 12px; }
    .cat-grid       { grid-template-columns: repeat(2, 1fr); }
    .why-grid       { grid-template-columns: repeat(2, 1fr); }
    .news-grid      { grid-template-columns: repeat(2, 1fr); }
    .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
    .factory-grid   { gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 32px; }
    .stats { padding: 40px 0; }
    .stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
    .cat-grid       { grid-template-columns: 1fr; }
    .why-grid       { grid-template-columns: 1fr; }
    .news-grid      { grid-template-columns: 1fr; }
    .factory-grid   { grid-template-columns: 1fr; gap: 28px; }
    .brand-grid     { grid-template-columns: repeat(3, 1fr); }
    .footer-grid    { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; }
    .footer-bottom .container { justify-content: center; text-align: center; }

    .hero { height: clamp(420px, 70vh, 560px); }
    .hero-actions { bottom: 56px; }
    .hero-actions .btn { flex: 1; min-width: 140px; }

    .cta-inner { flex-direction: column; align-items: flex-start; }

    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        transform: translateY(-12px);
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
    }
    .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .primary-nav .nav-list { flex-direction: column; align-items: stretch; padding: 12px 0; gap: 0; }
    .primary-nav .nav-list > li { border-bottom: 1px solid var(--border); }
    .primary-nav .nav-list > li:last-child { border-bottom: 0; }
    .primary-nav a, .primary-nav .dropdown-trigger {
        width: 100%; padding: 14px 24px; border-radius: 0;
        justify-content: space-between;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none; border: 0;
        background: var(--bg-gray);
        transform: none;
        max-height: 0; padding: 0;
        opacity: 1; visibility: visible;
        overflow: hidden;
        transition: max-height 0.3s var(--ease);
    }
    .has-dropdown.is-open .dropdown-menu { max-height: 400px; padding: 4px 0; }

    .logo-sub { display: none; }
    .header-right .btn-cta { display: none; }

    .floating-actions { right: 14px; bottom: 14px; }
    .fab { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hide nav-toggle dropdown chevron on mobile rotate when open */
.has-dropdown.is-open .dropdown-trigger svg { transform: rotate(180deg); }
.dropdown-trigger svg { transition: transform 0.25s var(--ease); }

/* Anchor-based dropdown trigger (new nav structure) */
.drop-arrow { transition: transform 0.25s var(--ease); flex-shrink: 0; }
.has-dropdown:hover .drop-arrow,
.has-dropdown.is-open .drop-arrow { transform: rotate(180deg); }

/* ── Language switcher — dual option ───────────────────────── */
.lang-toggle { display: none; } /* hide legacy single-toggle if still rendered */
.lang-switcher {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px; font-weight: 600;
    white-space: nowrap;
}
.lang-opt { color: var(--tx-3); transition: color 0.2s var(--ease); line-height: 1; }
.lang-opt:hover { color: var(--blue); }
.lang-opt.is-active { color: var(--blue-deep); font-weight: 700; }
.lang-sep { color: var(--border); font-size: 14px; line-height: 1; }

/* ── Footer bottom company name ─────────────────────────────── */
.footer-company-name {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.03em;
}

/* ============================================================
   Footer — 5-column grid
   ============================================================ */
.footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.3fr !important;
}
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr !important; gap: 32px; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   Category grid — 3-item variant
   ============================================================ */
.cat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .cat-grid-3 { grid-template-columns: 1fr; } }

/* ============================================================
   Global Footprint map
   ============================================================ */
.section-footprint { padding-bottom: 40px; }
.world-map-wrap {
    width: 100%;
    max-width: 1060px;
    margin: 32px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,20,60,0.35);
    /* prevent any tap-zoom expansion on mobile */
    touch-action: pan-x pan-y;
}
.world-map-img {
    width: 100%;
    height: auto;
    display: block;
    /* ensure image never overflows on narrow screens */
    max-width: 100%;
}

/* ============================================================
   About page — Gallery hero slideshow
   ============================================================ */
.gallery-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16/6;
    overflow: hidden;
    background: var(--blue-deep);
    margin-top: 32px;
}
.gallery-slides { position: relative; width: 100%; height: 100%; }
.gallery-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 0.7s var(--ease);
}
.gallery-slide.is-active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.25s var(--ease);
    z-index: 2;
}
.gallery-nav:hover { background: rgba(255,255,255,0.38); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-indicators {
    position: absolute;
    bottom: 14px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 2;
}
.gallery-indicators button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background 0.25s var(--ease), width 0.25s var(--ease);
}
.gallery-indicators button.is-active {
    background: #fff;
    width: 24px; border-radius: 4px;
}
@media (max-width: 768px) {
    .gallery-hero { aspect-ratio: 16/9; }
    .gallery-nav { width: 36px; height: 36px; }
}

/* ============================================================
   File upload widget
   ============================================================ */
.file-upload-wrap { display: flex; flex-direction: column; gap: 6px; }
.file-upload-input {
    position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
}
.file-upload-label {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border: 1px dashed var(--blue);
    border-radius: var(--radius);
    color: var(--blue);
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: background 0.2s var(--ease);
    width: fit-content;
}
.file-upload-label:hover { background: var(--blue-light); }
.file-upload-hint { font-size: 12px; color: var(--tx-3); }
.file-upload-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.file-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; padding: 4px 0;
    border-bottom: 1px solid var(--border);
}
.file-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item-size { color: var(--tx-3); flex-shrink: 0; }
.file-item-err  { color: #b0392f; font-size: 12px; flex-shrink: 0; }
.file-item-remove {
    flex-shrink: 0; margin-left: 8px;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #e0e0e0; border: none; cursor: pointer;
    font-size: 13px; font-weight: 700; line-height: 1; color: #555;
    transition: background 0.15s, color 0.15s;
}
.file-item-remove:hover { background: #e53935; color: #fff; }
.file-item-uploading { opacity: 0.7; }
.file-item-progress { font-size: 11px; color: var(--tx-3); flex-shrink: 0; animation: ntp-blink 1s step-end infinite; }
@keyframes ntp-blink { 50% { opacity: 0.3; } }
.pd-inquiry .file-item-progress { color: rgba(255,255,255,0.5); }

/* ============================================================
   Quality Control page
   ============================================================ */
.qc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: qc-step;
}
.qc-step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
    text-align: center;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.qc-step:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.qc-step-num {
    width: 48px; height: 48px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    font-size: 20px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.qc-step h3 { color: var(--blue-deep); margin-bottom: 8px; font-size: 16px; }
.qc-step p  { font-size: 14px; margin: 0; }

.qc-std-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center;
}
.qc-std-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.qc-std-img img { width: 100%; height: auto; }

@media (max-width: 1024px) {
    .qc-steps { grid-template-columns: repeat(2, 1fr); }
    .qc-std-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .qc-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   Service page
   ============================================================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.service-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.svc-card-img {
    width: 100%; aspect-ratio: 4/3; overflow: hidden;
    background: var(--bg-gray);
}
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-img-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--tx-3);
    border-bottom: 1.5px dashed var(--border);
}
.svc-card-body { padding: 20px 24px; text-align: center; }
.svc-card-body h3 { color: var(--blue-deep); font-size: 17px; margin-bottom: 8px; }
.svc-card-body p  { font-size: 14px; margin: 0; color: var(--tx-2); }
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .service-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Stores page
   ============================================================ */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.store-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex; flex-direction: column; gap: 12px;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    text-align: center;
}
.store-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.store-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-lg);
    background: var(--blue-light);
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto;
    color: var(--store-color, var(--blue));
}
.store-card h3 { color: var(--blue-deep); font-size: 17px; margin: 0; }
.store-card p  { font-size: 14px; color: var(--tx-2); flex: 1; margin: 0; }
.store-card .btn { align-self: center; margin-top: auto; }

.check-list-wide {
    max-width: 680px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 1200px) { .stores-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  {
    .stores-grid { grid-template-columns: 1fr; }
    .check-list-wide { grid-template-columns: 1fr; }
}

/* ============================================================
   Legal pages (Privacy / Terms)
   ============================================================ */
.container.narrow h2 {
    font-size: clamp(18px, 2vw, 22px);
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid var(--border);
}
.container.narrow h2:first-of-type { margin-top: 0; border-top: none; }
.legal-date {
    font-size: 13px; color: var(--tx-3);
    margin-bottom: 2em;
    font-style: italic;
}

/* ============================================================
   Sitemap page
   ============================================================ */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.sitemap-col h3 {
    font-size: 15px;
    color: var(--blue-deep);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-light);
}
.sitemap-col ul { display: flex; flex-direction: column; gap: 10px; }
.sitemap-col a { font-size: 14px; color: var(--tx-2); }
.sitemap-col a:hover { color: var(--blue); }
@media (max-width: 1024px) { .sitemap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .sitemap-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 400px)  { .sitemap-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Factory photos (homepage section-factory-photos)
   ============================================================ */
.section-factory-photos { background: var(--bg-2, #f0f4f8); }

.factory-main-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 32px;
}
.factory-main-img img { width: 100%; height: auto; display: block; }

.factory-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.factory-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--blue-light);
}

.factory-photo-item img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.factory-photo-item:hover img { transform: scale(1.04); }

.factory-photo-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    color: #fff;
    font-size: .75rem;
    letter-spacing: .06em;
}

@media (max-width: 900px) { .factory-photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .factory-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ============================================================
   Footprint map (homepage)
   ============================================================ */
.footprint-map-wrap {
    max-width: 1000px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,60,120,.10);
}
.footprint-map-img {
    width: 100%; height: auto; display: block;
}

/* ============================================================
   FAQ CTA (homepage before footer CTA)
   ============================================================ */
.section-faq-cta {
    background: var(--bg-gray);
    padding: 56px 0;
}
.faq-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.faq-cta-text h3 { color: var(--blue-deep); margin-bottom: 8px; }
.faq-cta-text p  { color: var(--tx-2); margin: 0; }
@media (max-width: 768px) {
    .faq-cta-inner { flex-direction: column; align-items: flex-start; }
    .faq-cta-inner .btn { align-self: stretch; text-align: center; }
}

/* ============================================================
   Service page — group sections
   ============================================================ */
.section-service-group + .section-service-group {
    padding-top: 0;
}
.svc-group-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.section-service-group { background: var(--bg-gray); }

/* ============================================================
   Scroll-reveal animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
    will-change: transform, opacity;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}
/* Stagger children in grids */
.reveal .why-card,
.reveal .cat-card,
.reveal .news-card,
.reveal .service-card,
.reveal .factory-photo-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.in-view .why-card,
.reveal.in-view .cat-card,
.reveal.in-view .news-card,
.reveal.in-view .service-card,
.reveal.in-view .factory-photo-item {
    opacity: 1;
    transform: translateY(0);
}
.reveal.in-view .why-card:nth-child(1),
.reveal.in-view .cat-card:nth-child(1),
.reveal.in-view .news-card:nth-child(1),
.reveal.in-view .service-card:nth-child(1),
.reveal.in-view .factory-photo-item:nth-child(1) { transition-delay: 0.08s; }
.reveal.in-view .why-card:nth-child(2),
.reveal.in-view .cat-card:nth-child(2),
.reveal.in-view .news-card:nth-child(2),
.reveal.in-view .service-card:nth-child(2),
.reveal.in-view .factory-photo-item:nth-child(2) { transition-delay: 0.16s; }
.reveal.in-view .why-card:nth-child(3),
.reveal.in-view .cat-card:nth-child(3),
.reveal.in-view .news-card:nth-child(3),
.reveal.in-view .service-card:nth-child(3),
.reveal.in-view .factory-photo-item:nth-child(3) { transition-delay: 0.24s; }
.reveal.in-view .why-card:nth-child(4),
.reveal.in-view .cat-card:nth-child(4),
.reveal.in-view .news-card:nth-child(4),
.reveal.in-view .service-card:nth-child(4),
.reveal.in-view .factory-photo-item:nth-child(4) { transition-delay: 0.32s; }
/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal .why-card, .reveal .cat-card,
    .reveal .news-card, .reveal .service-card, .reveal .factory-photo-item {
        opacity: 1; transform: none; transition: none;
    }
}

/* ============================================================
   Mobile: hero title font-size safety
   ============================================================ */
@media (max-width: 420px) {
    .hero-content h1 { font-size: 20px; }
}

/* ============================================================
   Sticky header offset — accounts for top-bar height
   ============================================================ */
:root { --topbar-h: 28px; }
@media (max-width: 768px) { :root { --topbar-h: 28px; } }
html { scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 16px); }

/* ============================================================
   Product Catalog — Filter tabs
   ============================================================ */
.section-pcatalog { padding-top: 40px; }
.pfilter-result { text-align: right; font-size: 13px; color: var(--tx-3); margin: 14px 0 28px; }
.pfilter-num { font-weight: 700; color: var(--blue-deep); }

/* ============================================================
   Product Catalog — Grid & Cards
   ============================================================ */
.pcatalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .pcatalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .pcatalog-grid { grid-template-columns: repeat(2, 1fr); } }

.pcard {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,40,100,0.13);
    border-color: var(--blue);
}
.pcard.is-hidden { display: none; }
.pcard-img-link { display: block; }
.pcard-img { aspect-ratio: 1; overflow: hidden; background: #F0F6FF; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-img-ph {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; color: var(--tx-3);
    background: linear-gradient(135deg, #E8F2FF 0%, #F4F8FF 100%);
}
.pcard-img-ph svg { opacity: 0.3; }
.pcard-img-ph span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-3); }

.pcard-body { padding: 14px 14px 4px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pcard-badge {
    display: inline-flex; align-items: center; align-self: flex-start;
    font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 20px;
    background: var(--blue-light); color: var(--blue);
}
.pcard-badge.is-gen2   { background: #E8F5E9; color: #2E7D32; }
.pcard-badge.is-gen3   { background: #EDE7F6; color: #5E35B1; }
.pcard-badge.is-lotion2 { background: #FFF3E0; color: #E65100; }
.pcard-badge.is-perfume { background: #FCE4EC; color: #AD1457; }

.pcard-sku-link { text-decoration: none; }
.pcard-sku {
    font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
    font-size: 12px; font-weight: 700; color: var(--blue-deep);
    line-height: 1.4; letter-spacing: -0.01em;
}
.pcard-sku-link:hover .pcard-sku { color: var(--blue); }
.pcard-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.pcard-spec-tag {
    font-size: 10px; color: var(--tx-2);
    background: var(--bg-gray); border-radius: 4px;
    padding: 2px 7px; white-space: nowrap;
}
.pcard-actions {
    padding: 10px 14px 14px;
    display: grid; grid-template-columns: 1fr; gap: 8px;
}

/* ============================================================
   Product Detail Page
   ============================================================ */
.section-pd { padding-top: 0; padding-bottom: 0; }
.pd-wrap {
    display: grid; grid-template-columns: 400px 1fr;
    gap: 56px; align-items: start; padding: 56px 0;
}
@media (max-width: 960px) { .pd-wrap { grid-template-columns: 1fr; gap: 36px; padding: 36px 0; } }

.pd-images { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
@media (max-width: 960px) { .pd-images { position: static; } }

.pd-img-main {
    aspect-ratio: 1; border-radius: var(--radius-lg);
    overflow: hidden; background: #EEF5FF;
    border: 1px solid var(--border);
}
.pd-img-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-img-ph {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; color: var(--tx-3);
    background: linear-gradient(135deg, #E8F2FF, #F4F8FF);
}
.pd-img-ph svg { opacity: 0.25; }
.pd-img-ph-label { font-size: 12px; color: var(--tx-3); letter-spacing: 0.06em; text-transform: uppercase; }

.pd-img-cutaway {
    border-radius: var(--radius-lg); border: 2px dashed var(--border);
    padding: 28px 20px; background: #FAFCFF;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    min-height: 160px; justify-content: center;
}
.pd-img-cutaway-icon { opacity: 0.2; }
.pd-img-cutaway-title { font-size: 13px; font-weight: 600; color: var(--tx-2); }
.pd-img-cutaway-sub { font-size: 11px; color: var(--tx-3); text-align: center; line-height: 1.6; }

.pd-info { display: flex; flex-direction: column; gap: 28px; }
.pd-sub-badge {
    display: inline-flex; align-self: flex-start; align-items: center;
    font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 20px;
    background: var(--blue-light); color: var(--blue);
    margin-bottom: 4px;
}
.pd-sub-badge.is-gen2   { background: #E8F5E9; color: #2E7D32; }
.pd-sub-badge.is-gen3   { background: #EDE7F6; color: #5E35B1; }
.pd-sub-badge.is-lotion2 { background: #FFF3E0; color: #E65100; }
.pd-sub-badge.is-perfume { background: #FCE4EC; color: #AD1457; }

.pd-sku {
    font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
    font-size: clamp(20px, 2.5vw, 28px); font-weight: 700;
    color: var(--blue-deep); line-height: 1.2; margin: 0;
}
.pd-section-title {
    font-size: 13px; font-weight: 700; color: var(--tx-2);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin: 0 0 12px; padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-light);
}
.pd-specs-table {
    width: 100%; border-collapse: collapse;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); font-size: 14px;
}
.pd-specs-table tr:nth-child(even) td { background: var(--bg-gray); }
.pd-specs-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    vertical-align: top; line-height: 1.5;
}
.pd-specs-table tr:last-child td { border-bottom: none; }
.pd-specs-table td:first-child {
    font-weight: 600; color: var(--tx-2); width: 36%; white-space: nowrap;
}
.pd-specs-table td code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 13px; color: var(--blue-deep); background: var(--blue-light);
    padding: 1px 6px; border-radius: 4px;
}
.pd-desc { font-size: 15px; color: var(--tx-2); line-height: 1.75; margin: 0; }
.pd-certs {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 16px; background: var(--bg-gray); border-radius: var(--radius);
}
.pd-cert-badge {
    font-size: 11px; font-weight: 700; color: var(--blue-deep);
    background: #fff; border: 1px solid var(--border);
    border-radius: 6px; padding: 5px 12px; letter-spacing: 0.05em;
}
.pd-inquiry {
    background: var(--blue-deep); border-radius: var(--radius-lg); padding: 28px;
}
.pd-inquiry h4 { color: #fff; font-size: 16px; margin: 0 0 20px; }
/* override the base .inquiry-form white background when inside the dark panel */
.pd-inquiry .inquiry-form { background: transparent; padding: 0; border: none; box-shadow: none; }
.pd-inquiry .form-field span,
.pd-inquiry .form-field label { color: rgba(255,255,255,0.75) !important; font-weight: 500; }
.pd-inquiry .form-field input,
.pd-inquiry .form-field textarea,
.pd-inquiry .form-field select {
    background: rgba(255,255,255,0.12) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    color: #fff !important;
}
.pd-inquiry .form-field input::placeholder,
.pd-inquiry .form-field textarea::placeholder { color: rgba(255,255,255,0.38) !important; }
.pd-inquiry .form-field input:focus,
.pd-inquiry .form-field textarea:focus,
.pd-inquiry .form-field select:focus {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3) !important;
    outline: none;
}
.pd-inquiry .form-field select option { background: var(--blue-deep); color: #fff; }
.pd-inquiry .form-feedback { margin-bottom: 8px; }
/* file upload widget inside dark panel */
.pd-inquiry .file-upload-label { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.85); }
.pd-inquiry .file-upload-label:hover { background: rgba(255,255,255,0.08); }
.pd-inquiry .file-upload-hint { color: rgba(255,255,255,0.45); }
.pd-inquiry .file-item { border-color: rgba(255,255,255,0.15); color: #fff; }
.pd-inquiry .file-item-size { color: rgba(255,255,255,0.5); }
.pd-inquiry .file-item-remove { background: rgba(255,255,255,0.25); color: #fff; }
.pd-inquiry .file-item-remove:hover { background: #e53935; color: #fff; }
.pd-inquiry .file-item-stale { color: rgba(255,255,255,0.45); }

.pd-related { padding: 56px 0; }
.pd-related .section-title { font-size: clamp(22px, 2.5vw, 28px); margin-bottom: 0; }
.pd-related-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px;
}
@media (max-width: 768px) { .pd-related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Coming soon state ──────────────────────────────────────── */
.is-coming-soon {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}
.footer-social-link.is-coming-soon {
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0.35; cursor: default; pointer-events: none;
}
.btn-coming-soon {
    opacity: 0.5; cursor: not-allowed;
    font-style: italic; letter-spacing: 0.02em;
    pointer-events: none;
}

/* ── News empty state ───────────────────────────────────────── */
.news-empty {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center;
    padding: 56px 24px; text-align: center; color: var(--tx-3);
}
.news-empty svg { display: block; margin-bottom: 16px; opacity: 0.3; }
.news-empty p { font-size: 16px; margin: 0; }

/* ── News list pagination ───────────────────────────────────── */
.news-pagination { display: flex; justify-content: center; margin-top: 48px; }
.news-pagination .page-numbers {
    display: inline-flex; align-items: center; gap: 6px;
    list-style: none; margin: 0; padding: 0;
}
.news-pagination .page-numbers li { display: block; }
.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; color: var(--tx); text-decoration: none;
    transition: all 0.2s var(--ease);
}
.news-pagination .page-numbers a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.news-pagination .page-numbers .current { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
.news-pagination .page-numbers .dots { border-color: transparent; background: transparent; color: var(--tx-3); }
@media (max-width: 640px) {
    .news-pagination .page-numbers a,
    .news-pagination .page-numbers span { min-width: 32px; height: 32px; font-size: 13px; }
}

/* ── News detail page ───────────────────────────────────────── */
.news-detail-banner {
    position: relative;
    padding: 72px 0 64px;
    background: var(--blue-deep);
    color: #fff;
    text-align: center;
}
.news-detail-banner .page-banner-content { max-width: 780px; margin: 0 auto; }
.news-detail-cat {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: #90caf9;
    background: rgba(255,255,255,0.12); padding: 4px 12px;
    border-radius: 100px; margin-bottom: 20px;
}
.news-detail-banner h1 { color: #fff; margin-bottom: 16px; font-size: clamp(1.5rem,3.5vw,2.4rem); }
.news-detail-meta { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; }

.news-detail-layout { max-width: 800px; margin: 0 auto; }

.news-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--blue); text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}
.news-back-link:hover { color: var(--blue-deep); }

.news-detail-cover {
    margin: 0 0 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.news-detail-cover img {
    width: 100%; height: auto; display: block;
    max-height: 480px; object-fit: cover;
}

.news-content {
    font-size: 16px; line-height: 1.8; color: var(--tx);
}
.news-content h2 { font-size: 1.4rem; margin: 2em 0 0.8em; color: var(--tx); }
.news-content h3 { font-size: 1.2rem; margin: 1.8em 0 0.6em; color: var(--tx); }
.news-content p  { margin: 0 0 1.4em; }
.news-content ul,
.news-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.news-content li { margin-bottom: 0.4em; }
.news-content strong { font-weight: 700; }
.news-content a  { color: var(--blue); text-decoration: underline; }
.news-content blockquote {
    border-left: 3px solid var(--blue);
    margin: 1.6em 0; padding: 12px 20px;
    background: var(--bg-gray); color: var(--tx-2);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.news-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.2em 0; }

.news-detail-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }

.news-excerpt { font-size: 14px; color: var(--tx-2); line-height: 1.6; margin-bottom: 16px; }

/* ── Featured Products (homepage) ───────────────────────────── */
/* position+z-index lifts this stacking context above subsequent sections
   so the hover popup can overflow into the section below visually */
.section-feat { background: var(--bg-gray); position: relative; z-index: 2; }
.feat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* Card: overflow visible so popup floats outside bounds */
.feat-card {
    position: relative;
    z-index: 1;
    /* z-index delay: reset after leave animation completes */
    transition: z-index 0s 0.3s;
}
.feat-card:hover {
    z-index: 50;
    transition: z-index 0s 0s;
}
/* Inner link clips image + footer to rounded corners */
.feat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.feat-card:hover .feat-card-link {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,40,100,0.14);
}
.feat-card-fig {
    aspect-ratio: 1;
    overflow: hidden;
    margin: 0;
    background: var(--blue-light);
}
.feat-card-fig img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}
.feat-card:hover .feat-card-fig img { transform: scale(1.07); }
.feat-card-foot { padding: 10px 12px 12px; }
.feat-card:hover .feat-card-foot { background: var(--blue-light); }
.feat-card-model {
    font-size: 10px; color: var(--blue); font-weight: 700;
    letter-spacing: 0.4px; margin: 0 0 3px; text-transform: uppercase;
}
.feat-card-name {
    font-size: 12.5px; font-weight: 700; color: var(--blue-deep);
    margin: 0; line-height: 1.35;
}

/* ── Hover popup detail card ─────────────────────────────────── */
/* Exit transition: quick snap-away */
/* ── Popup base — exit is quick snap-away ─────────────────────── */
.feat-popup {
    position: absolute;
    top: 0; left: 50%;
    width: 310px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,40,110,0.2), 0 0 0 1px rgba(0,50,120,0.08);
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    /* Start smaller + slightly below rest position — emphasises the "pop" */
    transform: translateX(-50%) translateY(calc(-15% + 10px)) scale(0.88);
    transform-origin: top center;
    /* Exit: sharp, brisk */
    transition: opacity 0.14s ease, transform 0.16s cubic-bezier(0.55, 0, 1, 0.45);
}
/* Entry — spring bounce: briefly overshoots scale(1), then settles */
.feat-card:hover .feat-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-15%) scale(1);
    transition: opacity 0.08s linear, transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Left-edge cards */
.feat-card:nth-child(1) .feat-popup,
.feat-card:nth-child(2) .feat-popup {
    left: 0;
    transform: translateX(0) translateY(calc(-15% + 10px)) scale(0.88);
    transform-origin: top left;
}
.feat-card:nth-child(1):hover .feat-popup,
.feat-card:nth-child(2):hover .feat-popup {
    transform: translateX(0) translateY(-15%) scale(1);
    transition: opacity 0.08s linear, transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Right-edge cards */
.feat-card:nth-child(5) .feat-popup,
.feat-card:nth-child(6) .feat-popup {
    left: auto; right: 0;
    transform: translateX(0) translateY(calc(-15% + 10px)) scale(0.88);
    transform-origin: top right;
}
.feat-card:nth-child(5):hover .feat-popup,
.feat-card:nth-child(6):hover .feat-popup {
    transform: translateX(0) translateY(-15%) scale(1);
    transition: opacity 0.08s linear, transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Popup image: neutral white bg — no distracting color behind product */
.feat-popup-img {
    height: 270px;
    background: #f5f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.feat-popup-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Popup body typography — room to breathe at 310px */
.feat-popup-body { padding: 14px 16px 16px; }
.feat-popup-model {
    font-size: 10.5px; color: var(--blue); font-weight: 700;
    letter-spacing: 0.6px; text-transform: uppercase; margin: 0 0 5px;
}
.feat-popup-name {
    font-size: 15px; font-weight: 700; color: var(--blue-deep);
    margin: 0 0 10px; line-height: 1.3;
}
.feat-popup-desc {
    font-size: 12.5px; color: var(--tx-2); line-height: 1.6; margin: 0 0 11px;
}
.feat-popup-specs {
    list-style: none; padding: 10px 0 0; margin: 0 0 14px;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 5px;
}
.feat-popup-specs li {
    font-size: 12px; color: var(--tx-2); padding-left: 13px;
    position: relative; line-height: 1.5;
}
.feat-popup-specs li::before {
    content: '▸'; position: absolute; left: 0;
    font-size: 9px; top: 3px; color: var(--blue);
}
.feat-popup-cta {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 13px; font-weight: 700; color: #fff;
    background: var(--blue); border-radius: 6px;
    padding: 10px 0; text-decoration: none;
    transition: background 0.18s;
}
.feat-popup-cta:hover { background: var(--blue-deep); color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
    .feat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .feat-card:nth-child(3) .feat-popup {
        left: auto; right: 0;
        transform: translateX(0) translateY(calc(-15% + 10px)) scale(0.88);
        transform-origin: top right;
    }
    .feat-card:nth-child(3):hover .feat-popup {
        transform: translateX(0) translateY(-15%) scale(1);
        transition: opacity 0.08s linear, transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
}
@media (max-width: 640px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .feat-popup { display: none; }
    .feat-card-foot { padding: 8px 10px 10px; }
    .feat-card-name { font-size: 12px; }
}

/* ── MOQ row in product specs table ────────────────────────── */
.pd-moq-row td:first-child { font-weight: 600; color: var(--blue-deep); }
.pd-moq-link {
    margin-left: 8px; font-size: 12px;
    color: var(--blue); text-decoration: none;
}
.pd-moq-link:hover { text-decoration: underline; }

/* ── Product spec-sheet download button ────────────────────── */
.pd-download-row {
    display: flex; padding-top: 4px;
}
.pd-print-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px;
}

/* ── Print styles — spec sheet layout ──────────────────────── */
@media print {
    .top-bar, .site-header, .page-banner, .floating-actions,
    .wechat-popup, .cookie-banner, .site-footer, .section-cta,
    .pd-related, .pd-download-row, .pd-inquiry, .breadcrumb,
    .pd-img-cutaway { display: none !important; }

    body { font-size: 11pt; color: #000; background: #fff; }
    .section-pd { padding: 0 !important; }
    .container { max-width: 100% !important; padding: 0 !important; }

    .pd-wrap { display: grid; grid-template-columns: 200pt 1fr; gap: 24pt; }
    .pd-img-main img { width: 100%; height: auto; border-radius: 0; }

    .pd-specs-table { width: 100%; border-collapse: collapse; }
    .pd-specs-table td {
        padding: 5pt 8pt;
        border-bottom: 0.5pt solid #ddd;
        font-size: 10pt;
    }
    .pd-specs-table td:first-child { color: #555; width: 100pt; }

    .pd-cert-badge {
        display: inline-block;
        border: 0.5pt solid #999;
        padding: 2pt 5pt;
        border-radius: 3pt;
        font-size: 8pt;
        margin: 2pt;
    }

    .pd-section-title { font-size: 11pt; margin: 12pt 0 4pt; }
    .pd-desc { font-size: 10pt; line-height: 1.5; }
    .pd-sub-badge { font-size: 9pt; }
    .pd-sku { font-size: 18pt; margin: 4pt 0 12pt; }

    /* Company header strip at top of print */
    .pd-info::before {
        content: "Guangdong Nantong Technology Co., Ltd.  |  nantong-plastic.com  |  admin@nantong-plastic.com  |  WhatsApp: +1 585 210 5964";
        display: block;
        font-size: 8pt; color: #666;
        padding-bottom: 8pt;
        border-bottom: 1pt solid #ccc;
        margin-bottom: 14pt;
    }
}
