/* ============================================================ */
/* theme-common.css - Unified Design System for Feitu Solar     */
/* ============================================================ */

/* ========== Fix: Hide mobile logo on desktop ========== */
#menu-mobile,
.mob_logo {
    display: none !important;
}
@media (max-width: 991px) {
    #menu-mobile {
        display: flex !important;
    }
}

/* ========== CSS Variables ========== */
:root {
    --color-primary: #0066cc;
    --color-primary-dark: #004d99;
    --color-primary-light: #3388d6;
    --color-accent: #0d599d;
    --color-dark: #0a1628;
    --color-dark-2: #1a1a2e;
    --color-white: #ffffff;
    --color-bg: #f8fafc;
    --color-bg-alt: #f0f4f8;
    --color-text: #333333;
    --color-text-light: #777777;
    --color-text-muted: #999999;
    --color-border: #eef1f5;
    --color-border-light: #e2e8f0;
    --color-success: #10b981;
    --color-gradient-hero: linear-gradient(135deg, #0a1628 0%, #0d1f3c 30%, #0f2b55 60%, #0d599d 100%);
    --color-gradient-cta: linear-gradient(135deg, #0d599d, #0066cc);
    --color-gradient-blue: linear-gradient(135deg, #0066cc, #0d599d);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    --shadow-sm: 0 2px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-blue: 0 8px 35px rgba(0,102,204,0.12);
    --transition-fast: 0.25s ease;
    --transition-normal: 0.35s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== Keyframes ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
    50% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
}
@keyframes floatUp {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(80px); opacity: 0; }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ========== Hero Banner (All Pages) ========== */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-gradient-hero);
    overflow: hidden;
}
.hero-section.hero-full { min-height: 460px; }
.hero-section.hero-inner { min-height: 220px; }

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 70% 30%, rgba(13,89,157,0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(0,102,204,0.3) 0%, transparent 50%);
}
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    animation: floatUp linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 15px 80px;
    margin: 0 auto;
    text-align: center;
}
.hero-full .hero-content { max-width: 900px; padding: 25px 15px 40px; }
.hero-inner .hero-content { max-width: 800px; padding: 20px 15px 30px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-title-large {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-highlight {
    display: block;
    color: #ffffff !important;
}
.hero-desc {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-full .hero-desc { max-width: 650px; margin-left: auto; margin-right: auto; }

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-full .hero-actions { margin-bottom: 60px; }

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}
.hero-stat-item { 
    text-align: center; 
    min-width: 120px; 
    flex-shrink: 0; 
}
.hero-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}
.hero-stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Hero Scroll (home only) - hidden on homepage with stats */
.hero-scroll {
    display: none;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    padding: 14px 36px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0,102,204,0.4);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0,102,204,0.5);
    color: var(--color-white);
}

.btn-outline {
    padding: 14px 32px;
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    font-size: 16px;
}
.btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.08);
    color: var(--color-white);
}

.btn-white {
    padding: 14px 32px;
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-white:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.3);
    color: var(--color-primary-dark);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-outline-dark {
    padding: 14px 32px;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 16px;
}
.btn-outline-dark:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-ghost {
    padding: 8px 14px;
    background: #f0f7ff;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.btn-ghost:hover { background: var(--color-primary); color: var(--color-white); }

/* ========== Section Header ========== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-tag {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(0,102,204,0.07);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: var(--color-dark-2);
    margin-bottom: 10px;
}
.section-desc {
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 550px;
    margin: 0 auto;
}

/* ========== Cards ========== */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}
.card:hover {
    border-color: rgba(0,102,204,0.12);
    box-shadow: var(--shadow-blue);
    transform: translateY(-4px);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,102,204,0.06), rgba(0,102,204,0.12));
    border-radius: 14px;
    color: var(--color-primary);
    transition: all var(--transition-normal);
}
.card:hover .card-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ========== CTA Section ========== */
.cta-section {
    padding: 80px 0;
    background: var(--color-gradient-cta);
}
.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
}
.cta-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 35px;
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-section-alt {
    padding: 70px 0;
    background: var(--color-gradient-cta);
}
.cta-alt-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-alt-text { flex: 1; min-width: 280px; }
.cta-alt-text h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}
.cta-alt-text p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    max-width: 500px;
}
.cta-alt-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========== Breadcrumb ========== */
.breadcrumb-bar {
    background: var(--color-white);
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}
.breadcrumb-bar .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-muted);
}
.breadcrumb-bar .breadcrumb a {
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color var(--transition-fast);
}
.breadcrumb-bar .breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-bar .breadcrumb span { color: var(--color-primary); font-weight: 500; }
.breadcrumb-bar .breadcrumb i { color: #ddd; }

/* ========== Editable Content ========== */
.editable-section {
    padding: 40px 0;
    background: var(--color-white);
}
.editable-content {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}
.editable-content h2, .editable-content h3 { color: var(--color-dark-2); }
.editable-content img { border-radius: var(--radius-sm); }

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-muted);
}
.empty-state svg { margin-bottom: 20px; color: #ccc; }
.empty-state h3 { font-size: 22px; color: #666; margin-bottom: 10px; }
.empty-state p { font-size: 15px; margin-bottom: 25px; }

/* ========== Section Backgrounds ========== */
.section-white { padding: 80px 0; background: var(--color-white); }
.section-light { padding: 80px 0; background: var(--color-bg); }

/* ========== Grid Layouts ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cta-alt-content { flex-direction: column; text-align: center; }
    .cta-alt-text p { max-width: 100%; }
    .cta-alt-actions { justify-content: center; }
}
@media (max-width: 768px) {
    .hero-section.hero-inner { min-height: 340px; }
    .hero-content { padding: 80px 15px 50px; }
    .hero-stats { gap: 20px; }
    .hero-stat-number { font-size: 22px; }
    .hero-full .hero-content { padding: 100px 15px 60px; }
    .hero-full .hero-stats { gap: 20px; }
    .hero-full .hero-stat-number { font-size: 24px; }
    .hero-scroll { display: none; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
}

/* ========== Mobile Fixes (Third Round) ========== */

/* Download Popup Mobile */
@media (max-width: 768px) {
    #downloadPopup .download-popup-content {
        width: 95vw;
        max-width: 420px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px 16px;
        border-radius: 12px;
    }
    #downloadPopup .download-popup-content input,
    #downloadPopup .download-popup-content textarea {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 10px 12px;
    }
    #downloadPopup .download-popup-content button {
        width: 100%;
        min-height: 44px;
        font-size: 15px;
    }
}

@media (max-width: 430px) {
    #downloadPopup .download-popup-content {
        width: 100vw;
        max-height: 85vh;
        margin: 0;
        border-radius: 12px 12px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
    }
}

/* Floating inquiry & bottom nav conflict */
@media (max-width: 768px) {
    #online_qq_layer {
        bottom: 70px; /* Above mobile bottom nav */
        z-index: 999;
    }
    #online_qq_tab {
        bottom: 70px;
    }
    .fixed-contact {
        bottom: 75px; /* Above mobile bottom nav */
    }
}

/* Form buttons: minimum touch target */
@media (max-width: 768px) {
    .contact-submit-btn,
    .btn,
    button[type="submit"],
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
    .cf-input-wrap input,
    .cf-input-wrap textarea {
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
}

/* Header height fix for mobile anchor scroll */
@media (max-width: 991px) {
    .height {
        height: 60px; /* Match mobile header */
    }
}

/* Fixed contact sidebar: hide on small mobile to prevent content overlap */
@media (max-width: 480px) {
    .fixed-contact {
        display: none;
    }
}

/* ========== Category Layout (Sidebar + Grid) ========== */
.cat-layout { display: flex; gap: 30px; }
.cat-sidebar { width: 240px; flex-shrink: 0; }
.cat-sidebar h4 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #1a1a2e; }
.cat-sidebar ul { list-style: none; padding: 0; margin: 0; }
.cat-sidebar ul li { margin-bottom: 4px; }
.cat-sidebar ul li a {
    display: block; padding: 8px 14px; border-radius: 8px;
    font-size: 13px; color: #555; text-decoration: none;
    transition: all 0.2s;
}
.cat-sidebar ul li a:hover { background: rgba(0,102,204,0.06); color: #0066cc; }
.cat-sidebar ul li.current-cat a { background: rgba(0,102,204,0.08); color: #0066cc; font-weight: 600; }
.cat-main { flex: 1; min-width: 0; }

/* ========== Category Page Grid (Product Category) ========== */
.cat-page-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}
.cat-sidebar-widget {
    margin-bottom: 25px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eef1f5;
}
.cat-sidebar-widget h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}
.cat-sidebar-widget ul li { margin-bottom: 5px; }
.cat-sidebar-widget ul li a {
    display: block;
    padding: 8px 15px;
    color: #555;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.25s;
    text-decoration: none;
}
.cat-sidebar-widget ul li a:hover,
.cat-sidebar-widget ul li.current-cat a {
    background: #f0f7ff;
    color: #0066cc;
}
.cat-cta-widget {
    background: linear-gradient(135deg, #0066cc, #0d599d);
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}
.cat-cta-widget h4 { font-size: 18px; margin-bottom: 10px; }
.cat-cta-widget p { font-size: 13px; opacity: 0.9; margin-bottom: 15px; line-height: 1.6; }

/* ========== Case Card Grid ========== */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.case-card { overflow: hidden; }
.case-card-image { display: block; height: 200px; overflow: hidden; background: #f8fafc; }
.case-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.case-card:hover .case-card-image img { transform: scale(1.05); }
.case-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.case-card-body { padding: 20px; }
.case-card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.case-card-title a { color: #1a1a2e; text-decoration: none; }
.case-card-title a:hover { color: #0066cc; }
.case-card-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ccm-item { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #888; }
.case-card-desc { font-size: 13px; color: #777; line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ========== Download Card Grid ========== */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.dl-card { padding: 28px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dl-card-icon { color: #0066cc; margin-bottom: 16px; }
.dl-card-body { width: 100%; }
.dl-card-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.dl-card-title a { color: #1a1a2e; text-decoration: none; }
.dl-card-title a:hover { color: #0066cc; }
.dl-card-desc { font-size: 13px; color: #777; line-height: 1.6; margin-bottom: 12px; }
.dl-card-meta { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.dl-meta-item { display: inline-block; padding: 3px 10px; background: #f0f7ff; color: #0066cc; border-radius: 12px; font-size: 11px; font-weight: 500; }

/* ========== Product Grid (Shared) ========== */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}
.prod-card {
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}
.prod-card:hover {
    border-color: rgba(0,102,204,0.12);
    box-shadow: 0 12px 40px rgba(0,102,204,0.08);
    transform: translateY(-4px);
}
.prod-card-img-link { display: block; }
.prod-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc, #eef2f6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.prod-card-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.prod-card:hover .prod-card-image img { transform: scale(1.06); }
.prod-card-placeholder { color: #cbd5e0; }
.prod-card-cat {
    position: absolute;
    top: 12px; left: 12px;
    padding: 3px 10px;
    background: rgba(0,0,0,0.06);
    color: #666;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}
.prod-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.prod-card-title-link { text-decoration: none; }
.prod-card-title {
    font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 6px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color 0.2s;
}
.prod-card-title-link:hover .prod-card-title { color: #0066cc; }
.prod-card-model { display: block; font-size: 12px; color: #0066cc; font-weight: 600; margin-bottom: 3px; }
.prod-card-voltage { display: block; font-size: 12px; color: #999; margin-bottom: 14px; }
.prod-card-desc { font-size: 13px; color: #777; line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card-actions { display: flex; gap: 10px; margin-top: auto; }

/* ========== Category Card Grid (Shared for Cases/Blogs/News) ========== */
.prod-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}
.prod-cat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.35s ease;
}
.prod-cat-card:hover {
    border-color: rgba(0,102,204,0.12);
    box-shadow: 0 12px 40px rgba(0,102,204,0.08);
    transform: translateY(-4px);
}
.prod-cat-shimmer {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity .3s;
}
.prod-cat-card:hover .prod-cat-shimmer { opacity: 1; }
.prod-cat-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f8fafc, #eef2f6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.prod-cat-icon {
    color: #cbd5e0;
    transition: color .3s;
}
.prod-cat-card:hover .prod-cat-icon { color: var(--card-accent, #0066cc); }
.prod-cat-tag {
    position: absolute;
    top: 14px; right: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.prod-cat-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.prod-cat-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.3;
}
.prod-cat-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prod-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
}

/* ========== Pagination ========== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    font-size: 13px; color: #555; text-decoration: none;
    border: 1px solid #e2e8f0; transition: all 0.2s;
}
.pagination .page-numbers.current { background: #0066cc; color: #fff; border-color: #0066cc; }
.pagination .page-numbers:hover:not(.current) { border-color: #0066cc; color: #0066cc; }

.pagination-premium { text-align: center; margin-top: 20px; }
.pagination-premium ul { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination-premium ul li { list-style: none; }
.pagination-premium ul li a,
.pagination-premium ul li span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 9px 16px; border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: 14px; color: #555; text-decoration: none; transition: all 0.25s; background: #fff;
}
.pagination-premium ul li a:hover { background: #f0f7ff; border-color: #0066cc; color: #0066cc; }
.pagination-premium ul li .current {
    background: #0066cc; border-color: #0066cc; color: #fff; font-weight: 600;
}
.pagination-premium ul li .dots { border: none; padding: 9px 6px; }

/* ========== Product Detail Page (Shared) ========== */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.pd-gallery {}
.pd-main-image {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px solid #eef1f5;
    margin-bottom: 16px;
}
.pd-main-image img {
    max-height: 400px;
    max-width: 100%;
    object-fit: contain;
}
.pd-no-image {
    text-align: center;
    color: #ccc;
    padding: 60px 20px;
}
.pd-no-image p { margin-top: 10px; }
.pd-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.pd-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.pd-thumbnails img:hover,
.pd-thumbnails img.active { border-color: #0066cc; }
.pd-info {}
.pd-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
}
.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #eef1f5;
}
.pd-meta-item { flex: 1; min-width: 120px; }
.pd-meta-label { font-size: 12px; color: #999; margin-bottom: 3px; }
.pd-meta-value { font-size: 15px; color: #333; font-weight: 500; }
.pd-description {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #555;
}
.pd-description h3 {
    font-size: 20px;
    color: #0066cc;
    margin-bottom: 15px;
}
.pd-features {
    margin-bottom: 25px;
}
.pd-features h3 {
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 12px;
}
.pd-features ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pd-features ul li {
    padding: 8px 16px;
    background: #f0f7ff;
    color: #0066cc;
    border-radius: 20px;
    font-size: 13px;
}
.pd-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* ========== Product Detail Specs ========== */
.pd-specs {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #eef1f5;
}
.pd-specs-table-wrap { max-width: 800px; margin: 0 auto; }
.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef1f5;
}
.pd-specs-table tr:nth-child(odd) { background: #f8fafc; }
.pd-specs-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eef1f5;
    font-size: 14px;
}
.pd-specs-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

/* ========== Product Detail Inquiry Form ========== */
.pd-inquiry-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #eef1f5;
}
.pd-inquiry-form {
    max-width: 700px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #eef1f5;
}
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #0066cc, #0d599d);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}
.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,102,204,0.35);
}

/* ========== Download Message Styles ========== */
.download-msg-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.download-msg-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========== Category Layout Responsive ========== */
@media (max-width: 991px) {
    .cat-page-grid { grid-template-columns: 1fr; }
    .cat-sidebar { position: static; }
}
@media (max-width: 768px) {
    .cat-layout { flex-direction: column; }
    .cat-sidebar { width: 100%; }
    .case-grid { grid-template-columns: 1fr; }
    .prod-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .pd-inquiry-form { padding: 24px; }
}
@media (max-width: 480px) {
    .prod-grid { grid-template-columns: 1fr; }
    .dl-grid { grid-template-columns: 1fr; }
    .prod-card-actions { flex-direction: column; }
}

/* ============================================================ */
/* Fourth Round: New Components & Optimizations                */
/* ============================================================ */

/* ========== Product Card - Industrial Feel ========== */
.prod-card {
    border: 1px solid #e2e8f0;
}
.prod-card-image {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}
.prod-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066cc, #0d599d);
    opacity: 0;
    transition: opacity 0.3s;
}
.prod-card:hover .prod-card-image::after { opacity: 1; }

/* ========== Hot/Fire Badge ========== */
.prod-card-hot {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}

/* ========== Hero Split Layout (Left Text + Right Image) ========== */
.hero-split-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.hero-split-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-split-image {
    display: none;
}
.hero-split-image img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}
.hero-split .hero-badge,
.hero-split .hero-actions,
.hero-split .hero-stats {
    justify-content: center;
}
.hero-split .hero-title-large { text-align: center; }
.hero-split .hero-desc { margin-left: auto; margin-right: auto; }
.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    margin-top: -12px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.15s both;
}

@media (max-width: 991px) {
    .hero-split-layout {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .hero-split .hero-badge,
    .hero-split .hero-actions,
    .hero-split .hero-stats {
        justify-content: center;
    }
    .hero-split .hero-title-large { text-align: center; }
    .hero-split .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-split-image { max-width: 300px; margin: 0 auto; }
    .hero-split-image img { max-height: 250px; }
}
@media (max-width: 480px) {
    .hero-split-image { max-width: 220px; }
    .hero-split-image img { max-height: 180px; }
}

/* ========== Product Detail: Applications Section ========== */
.pd-applications { margin-top: 50px; padding-top: 50px; border-top: 1px solid #eef1f5; }
.pd-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.pd-app-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}
.pd-app-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 20px rgba(0,102,204,0.08);
    transform: translateY(-2px);
}
.pd-app-card h4 { font-size: 16px; color: #1a1a2e; margin-bottom: 8px; }
.pd-app-card p { font-size: 13px; color: #777; line-height: 1.6; }

/* ========== Product Detail: PDF/Video Section ========== */
.pd-resources { margin-top: 50px; padding-top: 50px; border-top: 1px solid #eef1f5; }
.pd-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.pd-resource-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}
.pd-resource-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 20px rgba(0,102,204,0.08);
}
.pd-resource-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0066cc, #0d599d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pd-resource-info h4 { font-size: 15px; color: #1a1a2e; margin: 0 0 4px; }
.pd-resource-info span { font-size: 12px; color: #888; }

/* ========== Product Detail: FAQ Section ========== */
.pd-faq { margin-top: 50px; padding-top: 50px; border-top: 1px solid #eef1f5; }
.pd-faq-list { max-width: 800px; margin: 30px auto 0; }
.pd-faq-item {
    border: 1px solid #eef1f5;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}
.pd-faq-q {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background 0.2s;
}
.pd-faq-q:hover { background: #f8fafc; }
.pd-faq-q .faq-icon { transition: transform 0.3s; color: #0066cc; }
.pd-faq-item.open .pd-faq-q .faq-icon { transform: rotate(180deg); }
.pd-faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}
.pd-faq-item.open .pd-faq-a {
    padding: 0 20px 16px;
    max-height: 300px;
}

/* ========== Sticky Inquiry Bar (Mobile Product Detail) ========== */
.sticky-inquiry-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    gap: 10px;
}
.sticky-inquiry-bar .btn { flex: 1; justify-content: center; }
@media (max-width: 768px) {
    .sticky-inquiry-bar { display: flex; }
    body { padding-bottom: 70px; }
}

/* ========== Product Sorting/Filtering Bar ========== */
.prod-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 12px;
}
.prod-sort-bar .sort-label { font-size: 13px; color: #888; }
.prod-sort-bar .sort-options { display: flex; gap: 8px; flex-wrap: wrap; }
.prod-sort-bar .sort-option {
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    text-decoration: none;
}
.prod-sort-bar .sort-option:hover,
.prod-sort-bar .sort-option.active {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}
.prod-sort-bar .sort-count { font-size: 12px; color: #999; }

/* ========== Footer Simplification ========== */
.site-footer .footer-widgets {
    padding: 60px 0 30px;
}
.footer-about-text {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 280px;
}

/* ========== Newsletter Section (Simplified) ========== */
.newsletter-section {
    padding: 50px 0;
    background: #f8fafc;
    text-align: center;
}
.newsletter-section h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.newsletter-section p {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
}

/* ========== Product Detail: Packaging & Shipping ========== */
.pd-logistics {
    margin-top: 40px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.pd-logistics-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}
.pd-logistics-item svg { color: #0066cc; flex-shrink: 0; margin-top: 2px; }
.pd-logistics-item .li-text h4 { font-size: 14px; color: #1a1a2e; margin: 0 0 4px; }
.pd-logistics-item .li-text p { font-size: 13px; color: #666; margin: 0; }

/* ========== Industry Standard Badge ========== */
.pd-cert-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.pd-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}
.pd-cert-badge svg { color: #22c55e; }
