/* =====================================================
   Hyper Source — Modern Site CSS  v2.0
   Bootstrap 5 extension · single file
   ===================================================== */

:root {
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-deeper: #1e3a8a;
    --accent:         #f97316;
    --accent-dark:    #ea580c;
    --dark:           #0f1729;
    --dark-2:         #1e2d45;
    --text:           #111827;
    --text-muted:     #64748b;
    --bg:             #ffffff;
    --bg-light:       #f8fafc;
    --bg-slate:       #f1f5f9;
    --border:         #e2e8f0;
    --radius:         10px;
    --radius-lg:      16px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
    --shadow:         0 2px 10px rgba(0,0,0,.08), 0 6px 24px rgba(0,0,0,.06);
    --shadow-lg:      0 8px 28px rgba(0,0,0,.12), 0 20px 48px rgba(0,0,0,.08);
    --transition:     .18s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: .9375rem;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.topbar {
    background: linear-gradient(90deg, #0a1020 0%, #0f1729 50%, #0d1934 100%);
    color: rgba(255,255,255,.72);
    font-size: .8125rem;
    padding: .42rem 0;
    border-bottom: 1px solid rgba(37,99,235,.25);
    position: relative;
    z-index: 1105;
}
.topbar i { opacity: .75; }
.topbar a { color: rgba(255,255,255,.82); text-decoration: none; transition: color var(--transition); }
.topbar a:hover { color: #fff; }
.topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
}
.topbar-language-dropdown {
    position: relative;
    z-index: 1110;
}
.topbar-language-toggle {
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    font-size: .76rem;
    line-height: 1.2;
    padding: .14rem .65rem;
    min-width: 92px;
    text-align: left;
}
.topbar-language-toggle:hover,
.topbar-language-toggle:focus,
.topbar-language-toggle.show {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.42);
    color: #fff;
    box-shadow: none;
}
.topbar-language-menu {
    z-index: 1115;
    min-width: 118px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,41,.08);
    box-shadow: 0 10px 24px rgba(15,23,41,.18);
    padding: .35rem;
}
.topbar-language-menu .dropdown-item {
    border-radius: 8px;
    font-size: .82rem;
    color: var(--text);
    padding: .42rem .65rem;
}
.topbar-language-menu .dropdown-item:hover,
.topbar-language-menu .dropdown-item:focus {
    background: #eff6ff;
    color: var(--primary-dark);
}
.topbar-language-menu .dropdown-item.active,
.topbar-language-menu .dropdown-item:active {
    background: rgba(37,99,235,.12);
    color: var(--primary-deeper);
}
.topbar .btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-size: .78rem;
    padding: .22rem .75rem;
    border-radius: 20px;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}
.topbar .btn-warning:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

.site-header {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: .55rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.05);
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,.10);
}

.site-logo { height: 46px; max-width: 200px; object-fit: contain; }

.header-search { width: 440px; }
.search-input {
    border: 1.5px solid var(--border);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: .875rem;
    background: var(--bg-light);
    transition: border-color var(--transition), background var(--transition);
    height: 40px;
}
.search-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: none;
    outline: none;
}
.search-btn {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    height: 40px;
    transition: background var(--transition);
}
.search-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.mobile-search { background: var(--bg-slate); border-bottom: 1px solid var(--border); }

.navbar-nav .nav-link {
    font-weight: 500;
    padding: .38rem .8rem;
    color: var(--text) !important;
    font-size: .875rem;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: .8rem;
    right: .8rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition);
}
.navbar-nav .nav-link:hover { color: var(--primary) !important; }
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

.hero-carousel { background: var(--dark); }
.hero-img { max-height: 500px; object-fit: cover; width: 100%; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { width: 5%; }
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon { width: 1.4rem; height: 1.4rem; }

.hero-placeholder {
    background: linear-gradient(135deg, #0a1020 0%, #0f1729 40%, #1e3a8a 80%, #2563eb 100%);
    min-height: 420px;
    position: relative;
    overflow: hidden;
}
.hero-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.12) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.hero-placeholder .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(249,115,22,.15);
    border: 1px solid rgba(249,115,22,.4);
    color: #fdba74;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}
.hero-placeholder h1 {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
}
.hero-placeholder .hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.72);
    max-width: 500px;
    margin: 0 auto;
}
.hero-cta-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: .7rem 2rem;
    border-radius: 30px;
    font-size: .95rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(249,115,22,.4);
}
.hero-cta-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(249,115,22,.5);
}
.hero-cta-secondary {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.4);
    color: rgba(255,255,255,.9);
    font-weight: 600;
    padding: .7rem 2rem;
    border-radius: 30px;
    font-size: .95rem;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.hero-cta-secondary:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.7);
    color: #fff;
    transform: translateY(-2px);
}

.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 0;
}
.trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.trust-icon i { color: var(--primary); font-size: 1rem; }
.trust-label { font-weight: 600; font-size: .875rem; line-height: 1.2; }
.trust-desc { font-size: .775rem; color: var(--text-muted); }

.section-title {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--text);
}
.section-header { margin-bottom: 1.75rem; }

.search-section {
    background: var(--bg-slate);
    border-bottom: 1px solid var(--border);
}
.search-section h2 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -.3px;
}
.search-section .form-control {
    height: 52px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: .95rem;
    background: #fff;
    transition: border-color var(--transition);
}
.search-section .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}
.search-section .btn-primary {
    height: 52px;
    padding: 0 2rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 600;
    font-size: .95rem;
}

.product-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: #c7d7f5;
}
.product-card-link { text-decoration: none; color: inherit; flex: 1; display: flex; flex-direction: column; }
.product-card-img {
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: .6rem;
    border-bottom: 1px solid var(--border);
}
.product-card-img img { max-height: 96px; max-width: 100%; object-fit: contain; }
.product-card-body { padding: .6rem .8rem; flex: 1; }
.product-card-footer {
    padding: .5rem .8rem;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}
.product-part {
    font-weight: 700;
    font-size: .875rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-mfr { font-size: .74rem; color: var(--text-muted); margin-top: .1rem; }
.product-pkg {
    font-size: .7rem;
    background: #eff6ff !important;
    color: var(--primary) !important;
    border: 1px solid #bfdbfe;
    font-weight: 500;
}

.product-title { color: var(--text); font-weight: 700; letter-spacing: -.2px; }
.product-specs th { width: 145px; font-weight: 500; color: var(--text-muted); font-size: .875rem; }
.product-specs td { font-size: .875rem; }
.product-main-img {
    max-height: 280px;
    object-fit: contain;
    width: 100%;
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
}
.rfq-sidebar .card-header {
    font-weight: 600;
    background: linear-gradient(135deg, #1e3a8a, var(--primary));
    color: #fff;
    border-bottom: none;
}

.mfr-logo-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    text-decoration: none;
    color: inherit;
}
.mfr-logo-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: #c7d7f5;
}
.mfr-logo { max-height: 48px; object-fit: contain; }
.mfr-item { transition: box-shadow var(--transition), transform var(--transition); text-decoration: none; }
.mfr-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.category-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.category-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: #c7d7f5;
    color: var(--primary);
}
.category-card .cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.category-card .cat-icon i { color: var(--primary); font-size: 1.15rem; }
.category-card .cat-icon img { width: 26px; height: 26px; object-fit: contain; }

.rfq-cta {
    background: linear-gradient(135deg, #0a1020 0%, #0f1729 45%, #1e3a8a 80%, #2563eb 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.rfq-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.1) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}
.rfq-cta h2 { color: #fff; font-weight: 700; }
.rfq-cta .lead { color: rgba(255,255,255,.8); }
.rfq-cta .btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: .75rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 24px rgba(249,115,22,.45);
    position: relative;
}
.rfq-cta .btn-warning:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(249,115,22,.55);
}

.news-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    height: 100%;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card .card-img-top { height: 160px; object-fit: cover; }
.news-card .card-body { padding: 1rem 1.1rem; }
.news-card .card-footer { background: transparent; border-top: 1px solid var(--border); padding: .65rem 1.1rem; }
.news-card .card-title a { color: var(--text); font-weight: 600; font-size: .9rem; }
.news-card .card-title a:hover { color: var(--primary); text-decoration: none; }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}
.btn-warning:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.site-footer {
    background: linear-gradient(180deg, #0a1020 0%, #0d1429 100%);
    color: rgba(255,255,255,.68);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(37,99,235,.2);
}
.footer-logo {
    height: 38px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .9;
}
.footer-logo-svg {
    height: 38px;
    filter: brightness(0) invert(1);
    opacity: .85;
}
.footer-heading {
    color: rgba(255,255,255,.9);
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a {
    color: rgba(255,255,255,.58);
    text-decoration: none;
    font-size: .875rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { font-size: .875rem; margin-bottom: .55rem; display: flex; align-items: flex-start; gap: .5rem; }
.footer-contact i { color: var(--primary); margin-top: .15rem; flex-shrink: 0; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2.25rem 0 1.25rem; }
.site-footer .text-muted { color: rgba(255,255,255,.38) !important; }
.site-footer a.text-muted { color: rgba(255,255,255,.38) !important; }
.site-footer a.text-muted:hover { color: rgba(255,255,255,.7) !important; }
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 1.25rem;
}

.article-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-content h2, .article-content h3 { margin-top: 2.25rem; font-weight: 700; }
.article-content pre {
    background: var(--bg-slate);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.letter-nav { gap: .25rem; flex-wrap: wrap; }
.letter-nav .btn {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.letter-nav a.disabled { opacity: .3; pointer-events: none; }

.pagination .page-link {
    color: var(--primary);
    border-color: var(--border);
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.pagination .page-link:hover { background: #eff6ff; color: var(--primary-dark); }
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.badge-primary-soft {
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
    font-weight: 500;
}

@media (max-width: 991px) {
    .header-search { display: none !important; }
    .hero-img { max-height: 300px; }
    .hero-placeholder { min-height: 300px; }
    .hero-placeholder h1 { font-size: 1.75rem; }
}

@media (max-width: 767px) {
    .trust-item { flex-direction: column; text-align: center; }
}

@media (max-width: 575px) {
    .product-card-img { height: 90px; }
    .product-part { font-size: .8rem; }
    .topbar-left { display: none; }
    .topbar-right {
        width: 100%;
        justify-content: space-between;
        gap: .5rem;
    }
    .topbar-language-toggle {
        font-size: .72rem;
        min-width: 84px;
        padding: .12rem .5rem;
    }
    .site-logo { height: 38px; }
    .hero-placeholder { min-height: 260px; }
}
