/* ============================================================
   Headux Industrial - Main Stylesheet
   UNIMIG-inspired: pure black & white, product-driven layout
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px; line-height: 1.6; color: #333; background: #fff;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; width: 100%; max-width: 100vw; position: relative;
    overscroll-behavior-x: none;
}
html { overflow-x: hidden; width: 100%; overscroll-behavior-x: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4 { line-height: 1.15; color: #0D1117; }
h1 { font-size: 40px; font-weight: 700; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

@media (max-width: 768px) {
    h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 20px; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 28px; height: 50px; font-size: 15px; font-weight: 600;
    border: none; border-radius: 12px; transition: opacity .2s, transform .2s; text-decoration: none;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn-black { background: #0D1117; color: #fff; }
.btn-white { background: #fff; color: #0D1117; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; opacity: 1; }

/* ===== HEADER ===== */
.site-header {
    position: sticky; top: 0; z-index: 100; background: #fff;
    border-bottom: 1px solid #F2F2F7; transition: box-shadow .2s;
}
.header-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }

.header-inner {
    max-width: 1680px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.header-left { flex-shrink: 0; }
.site-logo { display: flex; align-items: center; }
.logo-text { font-size: 22px; font-weight: 700; letter-spacing: 2px; color: #0D1117; }

.header-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-list > li > a {
    font-size: 16px; font-weight: 600; color: #0D1117;
    transition: opacity .2s; white-space: nowrap;
    display: inline-flex; align-items: center; height: 64px;
}
.nav-list > li > a:hover, .nav-list .current-menu-item > a { opacity: .5; }

.menu-item-has-children { position: relative; }
.menu-item-has-children > a::after {
    content: ''; display: inline-block; width: 12px; height: 12px; vertical-align: -2px; margin-left: 4px;
    background: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D1117' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sub-menu {
    display: none; position: absolute; top: 100%; left: 0; background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.1); border-radius: 8px; padding: 10px 0; min-width: 200px; z-index: 101;
}
.sub-menu::before {
    content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.menu-item-has-children:hover .sub-menu { display: block; }
.sub-menu li a { display: block; padding: 10px 28px; font-size: 14px; transition: background .15s; }
.sub-menu li a:hover { background: #F5F5F5; }

.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-switch { font-size: 14px; color: #888; font-weight: 500; white-space: nowrap; }
.lang-current { color: #0D1117; font-weight: 700; }
.lang-sep { margin: 0 5px; color: #ddd; }
.lang-link { transition: opacity .2s; }
.lang-link:hover { opacity: .6; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger-line { display: block; width: 22px; height: 2px; background: #0D1117; border-radius: 1px; }



/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section-inner { max-width: 1680px; margin: 0 auto; padding: 0 32px; }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading h2 { font-size: 30px; margin-bottom: 10px; }
.section-heading .subtitle { font-size: 16px; color: #818898; max-width: 560px; margin: 0 auto; }

.hero-carousel { position: relative; width: 100%; }
.hero-slides { position: relative; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-dots .dot { width: 44px; height: 44px; border-radius: 50%; background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: none; }
.hero-dots .dot::after { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background .2s; }
.hero-dots .dot.active::after { background: #fff; }

/* ===== HERO (static) ===== */
.hero { background: #000; min-height: 600px; display: flex; align-items: center; }
.hero .section-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 5px; padding: 0px 0px;
}
.hero-left { flex: 1; max-width: 680px; }
.hero-tag {
    font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,.45); margin-bottom: 14px;
}
.hero-left h1 { font-size: 30px; color: #fff; margin: 38px 0; line-height: 1.12; }
.hero-desc {
    font-size: 17px; color: rgba(255,255,255,.6); margin-bottom: 28px;
    line-height: 1.6; max-width: 480px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-right { flex-shrink: 0; max-width: 600px; width: 100%; }
.hero-placeholder {
    width: 100%; aspect-ratio: 4/3; background: rgba(255,255,255,.04);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.12); font-size: 13px;
}

@media (max-width: 860px) {
    .hero .section-inner { gap: 10px; justify-content: space-between; }
    .hero-right { flex-shrink: 1; max-width: 350px; min-width: 280px; }
    .hero-left { flex: 1; min-width: 240px; }
    .hero-left h1 { font-size: 24px; margin: 24px 0; }
    .hero-desc { max-width: 100%; }
    .hero-cta { justify-content: flex-start; }
}

/* ===== TRUST BAR ===== */
.trust-bar { padding: 28px 0; border-bottom: 1px solid #F0F0F0; }
.trust-bar .section-inner {
    display: flex; justify-content: center; align-items: center;
    gap: 10px 40px; flex-wrap: wrap;
}
.trust-label {
    font-size: 13px; color: #999; text-transform: uppercase;
    letter-spacing: 1.5px; white-space: nowrap; font-weight: 600;
}
.trust-badges { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #333; }
.trust-badge svg { opacity: .55; }

/* ===== CTA STRIP ===== */
.cta-strip { background: #F5F5F5; padding: 44px 0; text-align: center; }
.cta-strip .section-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; flex-wrap: wrap;
}
.cta-strip p { font-size: 20px; font-weight: 600; color: #0D1117; }
@media (max-width: 600px) { .cta-strip p { font-size: 17px; } }

/* ===== CATEGORY BANNER CARD ===== */
.cat-banner {
    display: block; position: relative; z-index: 0; border-radius: 16px; overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.cat-banner:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.cat-banner-bg {
    width: 100%; aspect-ratio: 21/7; background: #F0F0F0;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 16px; transition: filter .3s;
}
.cat-banner:hover .cat-banner-bg { filter: brightness(.95); }
.cat-banner-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 64px 48px;
    background: linear-gradient(180deg,rgba(13,17,23,.8) 0%,transparent 60%);
}
.cat-banner-text { text-align: center; }
.cat-banner-text h3 { font-size: 44px; color: #fff; margin-bottom: 6px; }
.cat-banner-text p { font-size: 17px; color: rgba(255,255,255,.6); }
.cat-banner-arrow { display: none; }
.cat-banner:hover .cat-banner-arrow { display: none; }




/* ===== VIDEO CAROUSEL ===== */
.video-carousel { position: relative; }
.video-track {
    display: flex; gap: 20px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0;
}
.video-track::-webkit-scrollbar { display: none; }

.video-card {
    flex: 0 0 calc(33.333% - 14px); min-width: 280px; scroll-snap-align: start;
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid #F0F0F0; transition: transform .3s; position: relative;
}
.video-card:hover { transform: translateY(-3px); }
.video-thumb {
    aspect-ratio: 16/10; background: #F5F5F5;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 13px; position: relative; overflow: hidden;
}
.video-thumb picture, .video-thumb-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.video-play {
    position: absolute; width: 52px; height: 52px; border-radius: 50%;
    background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.video-play::after {
    content: ''; display: block; width: 0; height: 0;
    border-left: 16px solid #fff; border-top: 10px solid transparent;
    border-bottom: 10px solid transparent; margin-left: 3px;
}
.video-card:hover .video-play { background: rgba(0,0,0,.8); }
.video-info { padding: 16px 18px; }
.video-info h4 { font-size: 15px; font-weight: 600; color: #0D1117; margin-bottom: 4px; }
.video-info span { font-size: 13px; color: #999; }

.video-nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.video-prev, .video-next {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid #E0E0E0;
    background: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: all .2s;
}
.video-prev:hover, .video-next:hover { background: #0D1117; color: #fff; border-color: #0D1117; }

@media (max-width: 860px) { .video-card { flex: 0 0 calc(33.333% - 14px); } }
@media (max-width: 700px) { .video-card { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 480px) { .video-card { flex: 0 0 85%; } }

/* ===== FEATURED PRODUCT HERO ===== */
.feat-hero {
    position: relative; min-height: 550px; display: flex; align-items: center;
    border-radius: 16px; overflow: hidden; transition: transform .3s;
    background: #000;
}
.feat-hero:hover { transform: translateY(-3px); }
.feat-hero-bg {
    position: absolute; inset: 0; background: #000;
    display: flex; align-items: center; justify-content: flex-end;
    color: rgba(255,255,255,.06); font-size: 20px; padding-right: 48px;
}

.feat-hero-tag {
    font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,.5); margin-bottom: 12px;
}
.feat-hero-overlay h2 { font-size: 40px; color: #fff; margin-bottom: 14px; line-height: 1.15; }
.feat-hero-overlay p {
    font-size: 17px; color: rgba(255,255,255,.6);
    margin-bottom: 28px; line-height: 1.6;
}


/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 16px 0; background: #fff; border-bottom: 1px solid #F2F2F7; }
.breadcrumb .section-inner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #999; }
.breadcrumb a { transition: opacity .2s; color: #666; }
.breadcrumb a:hover { opacity: .6; }
.breadcrumb-sep { color: #ccc; }
.breadcrumb-current { color: #0D1117; font-weight: 600; }

/* ===== SIDEBAR LAYOUT ===== */
.sidebar-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .sidebar-layout { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 80px; }
.sidebar-toggle {
    display: none; width: 100%; padding: 12px 16px; font-size: 14px; font-weight: 600;
    background: #fff; border: 1px solid #E0E0E0; border-radius: 8px; text-align: left;
    justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.sidebar-toggle::after { content: '+'; font-size: 18px; font-weight: 400; }
.sidebar.open .sidebar-toggle::after { content: '\2212'; }
@media (max-width: 900px) {
    .sidebar-toggle { display: flex; }
    .sidebar-inner { display: none; }
    .sidebar.open .sidebar-inner { display: block; }
    .sidebar { position: static; margin-bottom: 24px; }
}
.sidebar-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: #0D1117; margin-bottom: 14px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.sidebar-nav a {
    display: block; padding: 9px 12px; font-size: 14px; color: #666;
    border-radius: 6px; transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: #F5F5F5; color: #0D1117; }
.sidebar-nav a.active { background: #F0F0F0; color: #0D1117; font-weight: 600; }
.sidebar-nav-static {
    display: block; padding: 9px 12px; font-size: 14px; color: #666;
    border-radius: 6px;
}
.sidebar-main { min-width: 0; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-img { aspect-ratio: 4/3; background: #F0F0F0; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 14px; }
.about-text h2 { margin-bottom: 20px; text-align: left; }
.about-text p { color: #666; font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }

/* ===== FOOTER ===== */
.site-footer { background: #0D1117; color: rgba(255,255,255,.65); padding: 64px 0 32px; }
.footer-inner { max-width: 1680px; margin: 0 auto; padding: 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-heading {
    font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 1.5px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14px; transition: opacity .2s; color: rgba(255,255,255,.65); }
.footer-links a:hover { opacity: .6; }
.footer-sub-text { font-size: 14px; margin-bottom: 12px; }
.footer-sub-form { display: flex; gap: 8px; margin-bottom: 24px; }
.footer-sub-form input {
    flex: 1; padding: 11px 14px; border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px; background: rgba(255,255,255,.04);
    color: #fff; font-size: 14px; font-family: inherit;
}
.footer-sub-form input:focus { outline: none; border-color: rgba(255,255,255,.3); }
.footer-sub-form input::placeholder { color: rgba(255,255,255,.35); }
.footer-sub-form button {
    width: 42px; height: 42px; border: none; border-radius: 8px;
    background: #fff; color: #0D1117; font-size: 18px; font-weight: 700;
}
.footer-social { display: flex; gap: 14px; }
.social-icon {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); transition: all .2s;
}
.social-icon:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
}
.footer-copy { font-size: 13px; }
.footer-lang-link { font-size: 13px; transition: opacity .2s; color: rgba(255,255,255,.65); }
.footer-lang-link:hover { opacity: .6; }
.footer-lang-sep { color: rgba(255,255,255,.15); margin: 0 8px; }
.footer-lang a { font-size: 13px; transition: opacity .2s; color: rgba(255,255,255,.65); }
.footer-lang a:hover { opacity: .6; }
.footer-lang span { color: rgba(255,255,255,.15); margin: 0 8px; }

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


/* ===== PRODUCT PAGE ===== */
.page-hero { background: #000; min-height: 500px; display: flex; align-items: center; text-align: center; position: relative; }
.page-hero::before {
    content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 0;
}
.page-hero .section-inner { padding: 15px 32px; position: relative; z-index: 1; }
.page-hero-tag {
    font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,.45); margin-bottom: 12px;
}
.page-hero h1 { font-size: 36px; color: #fff; margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,.5); max-width: 600px; margin: 0 auto; }

/* ===== PRODUCT GRID ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }

.prod-card {
    display: block; background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid #F0F0F0; transition: transform .3s, box-shadow .3s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.prod-card-img {
    background: #F5F5F5;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 13px; overflow: hidden;
}
.prod-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.prod-card-body { padding: 24px; }
.prod-card-tag {
    font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
    color: #999; margin-bottom: 6px;
}
.prod-card-body h3 { font-size: 20px; margin-bottom: 8px; }
.prod-card-body p { font-size: 14px; color: #666; margin-bottom: 14px; line-height: 1.5; }
.prod-card-link {
    font-size: 14px; font-weight: 600; display: inline-flex; align-items: center;
    gap: 6px; transition: gap .2s; color: #0D1117;
}
.prod-card-link:hover { gap: 10px; }
.prod-card-link::after { content: '\2192'; font-size: 15px; }

/* ===== MEGA MENU ===== */
.mega-parent { position: static !important; }
.mega-menu {
    display: none; position: absolute; top: calc(100% - 8px); left: 0; right: 0;
    background: transparent; z-index: 200; max-width: 1680px; margin: 0 auto;
}
.mega-parent:hover .mega-menu,
.mega-menu:hover,
.mega-menu.open { display: block; }

.mega-menu-inner {
    padding-top: 8px; display: flex;
    background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.1);
    border-radius: 0 0 16px 16px; border-top: 1px solid #F0F0F0;
}

.mega-left {
    flex: 0 0 240px; padding: 20px 0; border-right: 1px solid #F2F2F7;
    background: #FAFAFA; border-radius: 0 0 0 16px;
}
.mega-left a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 24px; font-size: 14px; color: #333; transition: background .12s, color .12s;
}
.mega-left a:hover, .mega-left a.active { background: #fff; color: #0D1117; font-weight: 600; }
.mega-left a::after { content: none; }
.mega-left a[data-panel]:hover::after,
.mega-left a[data-panel].active::after { content: '\25B6'; font-size: 10px; color: #0D1117; line-height:1; }
.mega-left a:last-child::after { content: none; }

.mega-right {
    flex: 1; padding: 24px 32px; min-height: 200px; border-radius: 0 0 16px 0;
}
.mega-panel { display: none; }
.mega-panel.active { display: block; }
.mega-panel-title {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: #0D1117; margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid #F0F0F0;
}
.mega-panel-title a { font-size: inherit; font-weight: inherit; color: inherit; }
.mega-panel-title a:hover { opacity: .6; }
.mega-panel-title span { font-size: inherit; font-weight: inherit; color: inherit; }

.mega-grid { display: flex; flex-direction: column; gap: 2px; }
.mega-grid a {
    display: block; padding: 4px 0; font-size: 14px; color: #666;
    transition: color .12s, background .12s; border-radius: 4px;
}
.mega-grid a:hover { color: #0D1117; background: #F5F5F5; }
.mega-link-static {
    display: block; padding: 4px 0; font-size: 14px; color: #666;
}
.mega-grid.mega-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 24px; }
.mega-grid.mega-grid-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px 12px; }

@media (max-width: 768px) {
    .mega-grid.mega-grid-4col { grid-template-columns: repeat(2, 1fr); }
    .mega-grid.mega-grid-2col { grid-template-columns: 1fr; }
}
.mega-grid-group { margin-bottom: 10px; }
.mega-sub-heading {
    display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #999; margin-bottom: 4px; padding-bottom: 2px;
    border-bottom: 1px solid #F5F5F5;
}

/* ===== MEGA MENU MOBILE (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    .header-nav {
        position: fixed; top: 64px; left: 0; right: 0; background: #fff;
        flex-direction: column; padding: 0;
        box-shadow: 0 2px 20px rgba(0,0,0,.1);
        transform: translateY(-120%); transition: transform .3s; z-index: 99;
        overflow-y: auto; max-height: calc(100vh - 64px);
        visibility: hidden; pointer-events: none;
    }
    .header-nav.nav-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
    .nav-list { flex-direction: column; gap: 0; width: 100%; align-items: stretch; }

    .nav-list > li > a {
        display: flex; align-items: center; justify-content: space-between; text-align: left;
        padding: 14px 12px; font-size: 17px; border-bottom: 1px solid #F0F0F0;
    }
    .nav-list > li.menu-item-has-children > a { justify-content: space-between; }
    .nav-list > li.menu-item-has-children > a::after,
    .nav-list > li.mega-parent > a::after {
        content: '\25BC'; font-size: 10px; color: #999; margin-left: 8px;
    }
    .nav-list > li.menu-item-has-children.open > a::after,
    .nav-list > li.mega-parent.open > a::after {
        content: '\25B2'; color: #0D1117;
    }

    .mega-parent:hover .mega-menu,
    .mega-menu:hover,
    .menu-item-has-children:hover > .sub-menu { display: none !important; }
    .menu-item-has-children.open > .sub-menu { display: block !important; }

    .sub-menu { position: static; box-shadow: none; padding: 0 0 0 12px; }
    .sub-menu .sub-menu { padding: 0 0 0 12px; }
    .sub-menu li a { padding: 10px 0; font-size: 14px; border-bottom: 1px solid #F5F5F5; }

    .mega-parent { position: relative !important; }
    .mega-parent .mega-menu { display: none !important; }
    .mega-parent.open .mega-menu { display: block !important; }
    .mega-menu { position: static; background: transparent; max-width: none; padding: 0; z-index: auto; }
    .mega-menu-inner { padding: 0; flex-direction: column; box-shadow: none; border-radius: 0; border-top: none; display: block; }

    .mega-left { flex: none; border-right: none; border-bottom: none; background: transparent; padding: 0; margin: 0; }
    .mega-left a { display: flex; align-items: center; text-align: left; padding: 10px 12px; font-size: 13px; font-weight: 500; color: #333; }
    .mega-left a:hover, .mega-left a.active { background: #F5F5F5; color: #0D1117; font-weight: 600; }
    .mega-left a::after { content: none; }
    .mega-left a:hover::after, .mega-left a.active::after { content: none; }
    .mega-left a[data-panel] { justify-content: space-between; }
    .mega-left a[data-panel]::after { content: '\25BC'; font-size: 9px; color: #ccc; flex-shrink: 0; margin-left: 8px; }
    .mega-left a[data-panel].expanded::after { content: '\25B2'; color: #0D1117; }
    .mega-left a:last-child::after { content: none; }

    .mega-right { flex: none; padding: 0; min-height: auto; }
    .mega-panel { display: none; }
    .mega-panel.active { display: block; }
    .mega-panel.expanded { display: block; }
    .mega-panel.inline-panel { padding: 8px 0 8px 0; border-top: 1px solid #F5F5F5; }
    .mega-panel.inline-panel .mega-grid a { background: #F5F5F5; border-radius: 6px; }
    .inline-panel .mega-panel-title { display: none; }
    .mega-panel-title { font-size: 13px; margin-bottom: 8px; padding-bottom: 4px; }

    .mega-sub-heading { display: flex; justify-content: space-between; cursor: pointer; padding: 8px 12px; border-radius: 6px; background: #0D1117; color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
    .mega-sub-heading::after { content: '\25BC'; flex-shrink: 0; margin-left: 8px; color: #aaa; }
    .mega-grid-group.expanded .mega-sub-heading::after { content: '\25B2'; color: #fff; }
    .mega-grid-group { margin-bottom: 12px; }
    .mega-grid-group .mega-grid { display: none; }
    .mega-grid-group.expanded .mega-grid { display: grid; }

    .mega-right .mega-grid a {
        display: block; padding: 8px 10px; font-size: 13px; color: #333;
        background: #F5F5F5; border-radius: 6px; text-align: center;
    }
    .mega-right .mega-grid a:hover { background: #EBEBEB; color: #0D1117; }
    .mega-grid.mega-grid-4col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
    .mega-grid.mega-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }

    .mobile-menu-toggle { display: flex; }
}

/* ===== SIDEBAR GROUP COLLAPSE ===== */
.sidebar-group { margin-bottom: 16px; }
.sidebar-group-title {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: #0D1117; cursor: pointer;
    padding: 4px 0; user-select: none; margin-bottom: 4px;
}
.sidebar-group-toggle {
    width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 400; color: #999; transition: transform .2s;
    flex-shrink: 0; line-height: 1;
}
.sidebar-group-toggle::after { content: '\25B2'; }
.sidebar-group-toggle.collapsed::after { content: '\25BC'; }
@media (max-width: 900px) {
    .sidebar-nav-list { max-height: 2000px; }
    .sidebar-nav-list.collapsed { max-height: 0; }
}
.sidebar-nav-list {
    overflow: hidden; max-height: 2000px;
    transition: max-height .35s ease;
}
.sidebar-nav-list.collapsed { max-height: 0; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.sidebar-nav a {
    display: block; padding: 9px 12px; font-size: 14px; color: #666;
    border-radius: 6px; transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: #F5F5F5; color: #0D1117; }
.sidebar-nav a.active { background: #F0F0F0; color: #0D1117; font-weight: 600; }
.sidebar-main { min-width: 0; }

/* View toggle buttons (mobile) */
.view-toggle {
    display: none; gap: 6px; margin-bottom: 16px;
}
@media (max-width: 900px) { .view-toggle { display: flex; } }
.view-btn {
    padding: 8px 12px; border: 1px solid #E0E0E0; background: #fff;
    border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1;
    transition: all .15s; min-height: 44px; min-width: 44px;
}
.view-btn.active { background: #0D1117; color: #fff; border-color: #0D1117; }

/* Compact 2-col product cards */
.prod-grid-compact {
    display: none; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (max-width: 600px) {
    .prod-grid-compact { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .prod-grid { grid-template-columns: 1fr; }
    .prod-grid-compact.active {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .prod-grid.compact-hidden { display: none; }
}
.prod-card-compact {
    display: block; background: #fff; border-radius: 10px; overflow: hidden;
    border: 1px solid #F0F0F0; transition: transform .2s;
}
.prod-card-compact:hover { transform: translateY(-2px); }
.prod-card-static { cursor: default; }
.prod-card-static:hover { transform: none; box-shadow: none; }
.prod-card-compact-img {
    height: 200px; background: #F5F5F5;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 12px; overflow: hidden;
}
.prod-card-compact-img img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
}
.prod-card-compact-name {
    padding: 8px 10px; font-size: 13px; font-weight: 600; color: #0D1117;
    text-align: center; background: #F5F5F5;
}

/* ===== PRODUCT DETAIL LAYOUT ===== */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 768px) {
    .product-detail-layout { grid-template-columns: 1fr; gap: 32px; }
    .product-detail-layout > div:last-child { text-align: center; }
    .product-detail-layout > div:last-child > div[style*="flex-wrap"] { justify-content: center; }
    .product-detail-layout h2 { font-size: 24px; margin-top: 0; }
}

/* ===== IMAGE REPLACEMENTS ===== */
.hero-img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    border-radius: 16px;
}
@media (max-width: 860px) {
    .hero-slides { aspect-ratio: 1/1; }
    .hero-left h1 { font-size: 24px; }
    .hero-desc { max-width: 100%; }
    .hero-cta { justify-content: flex-start; }
}
@media (max-width: 530px) {
    .hero .section-inner { flex-direction: column; gap: 2px; align-items: stretch; }
    .hero-right { max-width: 100vw; width: 100vw; }
    .hero-left { min-width: 0; }
    .hero-left h1 { font-size: 22px; margin: 20px 0; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-slides { width: 100vw; max-width: 100vw; height: auto; aspect-ratio: 1/1; }
}

.cat-banner-img {
    width: 100%; height: auto; min-height: 360px; object-fit: cover;
    display: block; transition: filter .3s;
}
.cat-banner:hover .cat-banner-img { filter: brightness(.95); }

.feat-hero-img {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: auto; height: 100%; max-width: none;
    object-fit: cover; object-position: left center;
}
.feat-hero-overlay { 
    position: relative; z-index: 2; padding: 64px; max-width: 600px; 
    margin-left: auto;
    background: linear-gradient(90deg,transparent 0%,rgba(13,17,23,.4) 30%,rgba(13,17,23,.85) 100%); 
    display: flex; flex-direction: column; justify-content: flex-start; text-align: right; 
}
.feat-hero-overlay .btn { margin-top: auto; align-self: flex-end; }



@media (max-width: 560px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 640px) {
    .section-inner { padding: 0 8px; }
    .section { padding: 5px 0; }
    .section-heading { margin-bottom: 10px; }
    .prod-grid { gap: 3px; }
    .prod-card-body { padding: 15px; }
    .cta-strip { padding: 24px 0; }
    .feat-hero { min-height: 420px; }
    .feat-hero-overlay { padding: 40px 15px 20px 15px; }
    .feat-hero-overlay h2 { font-size: 26px; }
    .feat-hero-overlay .btn { height: 52px; font-size: 16px; }
    .cat-banner-overlay { padding: 40px 15px; }
    .cat-banner-text h3 { font-size: 26px; color: #fff; }
    .cat-banner-text p { font-size: 13px; color: rgba(255,255,255,.6); }
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {
    /* OEM form single column on mobile */
    .oem-grid { grid-template-columns: 1fr !important; }
    /* Product detail hero height */
    .page-hero { min-height: 340px; }
}
@media (max-width: 480px) {
    /* Product grid 1-column on small phones */
    .prod-grid { grid-template-columns: 1fr; }
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 40px; padding-top: 24px;
    border-top: 1px solid #F0F0F0;
}
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    font-size: 14px; font-weight: 600; color: #666;
    border: 1px solid #E0E0E0; transition: all .2s;
}
.page-link:hover { background: #F5F5F5; color: #0D1117; }
.page-link.active { background: #0D1117; color: #fff; border-color: #0D1117; }
