/* ============================================
   KABELTRONIK — Industrial Bold Theme
   Designed by CodLab
   Inspired by yellow-construction aesthetic
   ============================================ */

/* === Variables === */
:root {
    --black: #1A1A1F;
    --gray-950: #111116;
    --gray-900: #1A1A20;
    --gray-800: #2A2A32;
    --gray-700: #3A3A44;
    --gray-600: #555560;
    --gray-500: #72727E;
    --gray-400: #95959F;
    --gray-300: #B5B5BD;
    --gray-200: #D6D6DC;
    --gray-100: #EBEBEF;
    --gray-50: #F6F6F8;
    --white: #FFFFFF;

    --accent: #FFED00;
    --accent-hover: #FFD600;
    --accent-on-light: #C5A800;
    --accent-dark: #BFA200;
    --accent-soft: rgba(255, 237, 0, 0.07);
    --accent-glow: rgba(255, 237, 0, 0.15);
    --accent-text: #1A1A1F;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --container: 1280px;
    --radius: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 44px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.14);

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.7; color: var(--gray-600); background: var(--white); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; color: var(--black); letter-spacing: -0.03em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
a { color: var(--black); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-on-light); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; font: 600 0.875rem/1.5 var(--font-heading);
    border: 2px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: all 0.3s var(--ease); text-decoration: none; white-space: nowrap;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.btn-lg { padding: 16px 36px; font-size: 0.9375rem; }
.btn-sm { padding: 8px 20px; font-size: 0.75rem; }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,237,0,0.3); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--gray-800); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-on-light); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.2); }
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); background: rgba(255,237,0,0.08); }
.btn-glass { background: rgba(255,255,255,0.06); color: var(--white); border-color: rgba(255,255,255,0.1); }
.btn-glass:hover { background: rgba(255,255,255,0.12); border-color: var(--accent); color: var(--white); }

/* === Header === */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 2px 0 var(--accent), 0 4px 24px rgba(0,0,0,0.06); }

.header-topbar { background: var(--black); color: #78788A; font-size: 0.6875rem; padding: 6px 0; letter-spacing: 0.02em; }
.header-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }

.copper-price { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-family: var(--font-heading); }
.copper-price svg { opacity: 0.7; }

.lang-switcher { display: flex; align-items: center; gap: 4px; }
.lang-switcher a { color: var(--gray-500); font-weight: 700; font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lang-switcher a:hover, .lang-switcher a.lang-active { color: var(--accent); }
.lang-sep { color: #35353F; font-size: 0.625rem; }
.topbar-link { display: flex; align-items: center; gap: 4px; color: #6B6B78; }
.topbar-link:hover { color: var(--accent); }

.header-main { padding: 14px 0; border-bottom: 3px solid var(--accent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

/* Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo img, .custom-logo-link, .custom-logo-link img { max-height: 36px !important; width: auto !important; height: auto !important; }
.logo-text { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.logo-kabel { color: var(--black); }
.logo-tronik { color: var(--accent-on-light); }
.logo-tagline { display: none; }

/* Nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { list-style: none; display: flex; gap: 0; }
.nav-menu > li > a { display: flex; align-items: center; padding: 10px 18px; color: var(--gray-600); font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 600; position: relative; transition: color 0.2s; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-menu > li > a::after { content: ''; position: absolute; bottom: -3px; left: 18px; right: 18px; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s var(--ease); transform-origin: left; }
.nav-menu > li:hover > a { color: var(--black); }
.nav-menu > li:hover > a::after { transform: scaleX(1); }

/* Mega Menu */
.nav-menu > li.has-mega-menu { position: static; }
.mega-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 3px solid var(--accent); box-shadow: var(--shadow-xl); padding: 36px 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all 0.3s var(--ease); z-index: 100; }
.nav-menu > li.has-mega-menu:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-inner { max-width: var(--container); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.mega-menu-col h4 { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--black); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 3px solid var(--accent); display: inline-block; }
.mega-menu-col ul { list-style: none; }
.mega-menu-col li { margin-bottom: 3px; }
.mega-menu-col a { color: var(--gray-500); font-size: 0.8125rem; padding: 4px 0; display: block; transition: all 0.15s; border-left: 2px solid transparent; padding-left: 0; }
.mega-menu-col a:hover { color: var(--black); border-left-color: var(--accent); padding-left: 10px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; }
.search-toggle, .ai-toggle, .theme-toggle, .mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: none; background: none;
    cursor: pointer; border-radius: var(--radius); color: var(--gray-500); transition: all 0.2s;
}
.search-toggle:hover, .theme-toggle:hover { color: var(--black); background: var(--gray-50); }
.ai-toggle { color: var(--accent-text); background: var(--accent); border-radius: var(--radius); font-weight: 700; }
.ai-toggle:hover { background: var(--accent-hover); transform: scale(1.05); }
.mobile-toggle { display: none; }
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.hamburger span { display: block; height: 2px; background: var(--gray-700); border-radius: 1px; transition: all 0.3s; }

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Search Overlay */
.search-overlay { position: fixed; top: 0; left: 0; right: 0; background: var(--black); padding: 80px 0; z-index: 2000; transform: translateY(-100%); transition: transform 0.4s var(--ease); }
.search-overlay.active { transform: translateY(0); }
.search-overlay form { display: flex; align-items: center; gap: 16px; }
.search-overlay input[type="search"] { flex: 1; background: transparent; border: none; border-bottom: 3px solid var(--gray-800); color: var(--white); font-family: var(--font-heading); font-size: clamp(1.5rem, 4vw, 2.5rem); padding: 12px 0; outline: none; font-weight: 500; }
.search-overlay input[type="search"]::placeholder { color: var(--gray-700); }
.search-overlay input[type="search"]:focus { border-bottom-color: var(--accent); }
.search-close { background: none; border: none; color: var(--gray-600); cursor: pointer; padding: 8px; }
.search-close:hover { color: var(--white); }

/* === HERO === */
.hero {
    position: relative; padding: 120px 0 100px; min-height: 92vh;
    display: flex; align-items: center; overflow: hidden;
    background: #1A1A1F; color: #fff;
}
.hero-bg { position: absolute; inset: 0; }
.hero-gradient {
    position: absolute; inset: 0;
    background:
        linear-gradient(135deg, rgba(26,26,31,0.95) 0%, rgba(26,26,31,0.7) 50%, rgba(26,26,31,0.85) 100%),
        radial-gradient(ellipse at 80% 20%, rgba(255,237,0,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(184,115,51,0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255,237,0,0.06) 0%, transparent 40%);
}
/* Industrial diagonal stripes */
.hero-pattern {
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(255,237,0,0.03) 60px,
            rgba(255,237,0,0.03) 61px
        );
}
/* Large yellow accent shape — geometric depth */
.hero::before {
    content: ''; position: absolute;
    top: -20%; right: -5%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,237,0,0.07) 0%, transparent 70%);
    border-radius: 50%; filter: blur(80px); pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 6px;
    background: var(--accent);
}
@keyframes heroGlow { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 1; transform: scale(1.15); } }

.hero .container { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.hero-content { max-width: 620px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; background: rgba(255,237,0,0.1); border: 2px solid rgba(255,237,0,0.2);
    border-radius: var(--radius); font-family: var(--font-heading);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 32px;
    animation: fadeInUp 0.7s var(--ease) both;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 2s ease infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title { color: #fff; margin-bottom: 24px; letter-spacing: -0.04em; font-weight: 700; animation: fadeInUp 0.7s var(--ease) 0.1s both; line-height: 1.05; }
.hero-accent { display: block; color: var(--accent); -webkit-text-fill-color: var(--accent); text-shadow: 0 0 60px rgba(255,237,0,0.15); }

.hero-subtitle { font-size: 1.0625rem; color: rgba(255,255,255,0.5); max-width: 500px; margin-bottom: 40px; line-height: 1.8; font-weight: 400; animation: fadeInUp 0.7s var(--ease) 0.2s both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeInUp 0.7s var(--ease) 0.3s both; }
.hero-stats { display: flex; align-items: center; gap: 40px; margin-top: 64px; padding-top: 40px; border-top: 2px solid rgba(255,237,0,0.1); animation: fadeInUp 0.7s var(--ease) 0.4s both; }
.stat-divider { width: 2px; height: 48px; background: rgba(255,237,0,0.12); }
.stat-number { font-family: var(--font-heading); font-size: 2.75rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-suffix { font-size: 2.75rem; font-weight: 700; color: var(--accent); }
.stat-label { display: block; font-size: 0.6875rem; color: rgba(255,255,255,0.35); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; font-family: var(--font-heading); }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; animation: fadeIn 1s var(--ease) 0.4s both; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.hero-visual-card {
    position: relative; width: 100%; max-width: 440px; aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255,237,0,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 2px solid rgba(255,237,0,0.1); border-radius: var(--radius-xl);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,237,0,0.08);
}
.hero-visual-glow {
    position: absolute; top: 50%; left: 50%; width: 70%; height: 70%;
    transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(255,237,0,0.12) 0%, transparent 70%);
    filter: blur(60px); animation: heroGlow 6s ease-in-out infinite alternate;
}
.hero-product-img { width: 72%; height: auto; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 16px 40px rgba(0,0,0,0.5)); }
.hero-cable-illustration svg { width: 75%; height: auto; opacity: 0.3; }
.hero-cable-svg { width: 85%; height: auto; position: relative; z-index: 1; }

/* Hero SVG Animations */
.hero-rotate-slow { animation: heroRotate 40s linear infinite; transform-origin: 200px 200px; }
.hero-rotate-rev { animation: heroRotate 60s linear infinite reverse; transform-origin: 200px 200px; }
@keyframes heroRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-pulse { animation: heroPulse 3s ease-in-out infinite; transform-origin: 200px 200px; }
@keyframes heroPulse { 0%,100% { opacity: 0.5; r: 18; } 50% { opacity: 1; r: 22; } }

.hero-pulse-bright { animation: heroPulseBright 2s ease-in-out infinite; transform-origin: 200px 200px; }
@keyframes heroPulseBright { 0%,100% { opacity: 0.7; filter: drop-shadow(0 0 4px rgba(255,237,0,0.3)); } 50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255,237,0,0.6)); } }

.hero-spark { animation: heroSpark 4s ease-in-out infinite; }
@keyframes heroSpark { 0%,100% { opacity: 0.2; } 25% { opacity: 0.6; } 50% { opacity: 0.1; } 75% { opacity: 0.8; } }

.hero-ring-pulse { animation: heroRingPulse 4s ease-in-out infinite; transform-origin: 200px 200px; }
@keyframes heroRingPulse { 0%,100% { opacity: 0.08; r: 185; } 50% { opacity: 0.2; r: 190; } }
.hero-visual-labels { position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; gap: 8px; z-index: 2; }
.hvl-tag { padding: 6px 14px; background: rgba(255,237,0,0.08); border: 1px solid rgba(255,237,0,0.15); border-radius: var(--radius); font-family: var(--font-heading); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }

/* Trust Bar */
.section-trust { background: var(--accent); padding: 14px 0; }
.trust-inner { display: flex; align-items: center; gap: 32px; }
.trust-label { font-family: var(--font-heading); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-text); white-space: nowrap; font-weight: 700; opacity: 0.6; }
.trust-items { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-item { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; color: var(--accent-text); letter-spacing: 0.06em; padding: 4px 14px; border: 2px solid rgba(26,26,31,0.15); border-radius: var(--radius); transition: all 0.2s; }
.trust-item:hover { border-color: var(--accent-text); background: rgba(26,26,31,0.08); }

/* === Sections === */
.section { padding: 100px 0; }
.section-categories { background: var(--white); }
.section-products { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-overline { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent-on-light); margin-bottom: 12px; }
.section-overline::before { content: ''; display: inline-block; width: 30px; height: 3px; background: var(--accent); }
.section-title { letter-spacing: -0.03em; }
.section-desc { font-size: 1rem; color: var(--gray-500); max-width: 560px; margin: 12px auto 0; line-height: 1.75; }
.section-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-header-row .section-overline, .section-header-row .section-title { text-align: left; }
.section-footer { text-align: center; margin-top: 48px; }

/* === Category Cards === */
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.category-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--white); border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg); text-decoration: none; color: inherit;
    transition: all 0.4s var(--ease); overflow: hidden;
}
.category-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent); transform: scaleY(0); transition: transform 0.4s var(--ease); transform-origin: top; z-index: 1; }
.category-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.category-card:hover::before { transform: scaleY(1); }
.category-card-img { position: relative; height: 200px; overflow: hidden; background: var(--gray-50); display: flex; align-items: center; justify-content: center; padding: 28px; }
.category-card-img img { max-width: 80%; max-height: 80%; width: auto; height: auto; object-fit: contain; transition: transform 0.6s var(--ease); }
.category-card:hover .category-card-img img { transform: scale(1.08); }
.category-card-overlay { display: none; }
.category-card-placeholder { width: 100%; height: 100%; background: var(--gray-50); }
.category-card-body { padding: 24px 28px 22px; flex: 1; display: flex; flex-direction: column; }
.category-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.category-number { font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700; color: var(--accent-on-light); }
.category-count { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; color: var(--gray-400); background: var(--gray-50); padding: 3px 10px; border-radius: var(--radius); }
.category-title { font-size: 1.25rem; margin-bottom: 8px; }
.category-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.category-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700; color: var(--black); text-transform: uppercase; letter-spacing: 0.06em; transition: gap 0.3s var(--ease); }
.category-card:hover .category-link { gap: 14px; color: var(--accent-on-light); }

/* === AI Section === */
.section-ai { background: var(--black); color: #fff; position: relative; }
.section-ai::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.ai-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-teaser-content .section-overline { color: var(--accent); }
.ai-teaser-content .section-overline::before { background: var(--accent); }
.ai-teaser-content h2 { color: #fff; margin-bottom: 16px; }
.ai-teaser-content p { color: rgba(255,255,255,0.45); margin-bottom: 28px; font-size: 1rem; line-height: 1.75; }
.ai-features { list-style: none; margin-bottom: 32px; }
.ai-features li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: rgba(255,255,255,0.6); font-size: 0.9375rem; }
.ai-features svg { color: var(--accent); flex-shrink: 0; }

.ai-chat-preview { background: rgba(255,255,255,0.03); border: 2px solid rgba(255,255,255,0.06); border-radius: var(--radius-xl); overflow: hidden; }
.ai-chat-header { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700; color: var(--accent); }
.ai-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; animation: blink 2s ease infinite; }
.ai-chat-msg { padding: 12px 18px; margin: 10px 20px; border-radius: var(--radius-lg); font-size: 0.8125rem; line-height: 1.65; }
.ai-chat-user { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); margin-left: 40px; border-bottom-right-radius: 2px; }
.ai-chat-bot { background: rgba(255,237,0,0.05); border: 1px solid rgba(255,237,0,0.1); color: rgba(255,255,255,0.6); margin-right: 40px; border-bottom-left-radius: 2px; }
.ai-chat-bot strong { color: var(--accent); }
.ai-chat-bot ul { list-style: none; margin-top: 6px; }
.ai-chat-bot li { padding: 2px 0 2px 16px; position: relative; }
.ai-chat-bot li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 2px; background: var(--accent); }

/* === Product Grid === */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.product-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg); overflow: hidden;
    text-decoration: none; color: inherit; position: relative;
    transition: all 0.35s var(--ease);
}
.product-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-200); color: inherit; }
.product-card:hover::after { transform: scaleX(1); }
.product-card-image { height: 140px; background: var(--gray-50); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 18px 22px; }
.product-card-image img { max-width: 90%; max-height: 90%; width: auto; height: auto; object-fit: contain; transition: transform 0.5s var(--ease); }
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-placeholder { width: 48px; height: 48px; color: var(--gray-200); }
.product-placeholder svg { width: 100%; height: 100%; }
.product-card-body { padding: 16px 18px 14px; flex: 1; }
.product-article { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-on-light); margin-bottom: 3px; display: block; }
.product-card-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 3px; line-height: 1.3; }
.product-subtitle { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 4px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-specs { font-size: 0.75rem; color: var(--gray-400); font-family: var(--font-mono); }
.product-card-arrow { position: absolute; bottom: 14px; right: 14px; color: var(--gray-300); transition: all 0.3s; }
.product-card:hover .product-card-arrow { color: var(--accent-on-light); transform: translateX(4px); }

/* === USP Section === */
.section-usp { background: var(--gray-50); border-top: 4px solid var(--accent); }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.usp-card { text-align: center; padding: 36px; }
.usp-icon { width: 44px; height: 44px; margin: 0 auto 18px; color: var(--accent-on-light); }
.usp-icon svg { width: 100%; height: 100%; }
.usp-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.usp-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; }

/* === CTA === */
.section-cta { padding: 100px 0; }
.cta-box { background: var(--black); border-radius: var(--radius-xl); padding: 72px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.cta-box::after { content: ''; position: absolute; bottom: -50%; right: -10%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,237,0,0.04); filter: blur(80px); pointer-events: none; }
.cta-box h2 { color: #fff; margin-bottom: 16px; position: relative; z-index: 1; }
.cta-box p { color: rgba(255,255,255,0.4); max-width: 560px; margin: 0 auto 32px; position: relative; z-index: 1; font-size: 1rem; line-height: 1.75; }
.cta-actions { display: flex; justify-content: center; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }

/* === Footer === */
.site-footer { background: #111116; color: #6B6B78; }
.footer-main { padding: 72px 0 36px; border-top: 4px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; display: block; margin-bottom: 14px; }
.footer-logo .logo-kabel { color: #fff; }
.footer-logo .logo-tronik { color: var(--accent); }
.footer-desc { font-size: 0.875rem; line-height: 1.75; margin-bottom: 20px; }
.footer-certifications { display: flex; gap: 8px; }
.cert-badge { display: inline-flex; padding: 4px 10px; background: rgba(255,237,0,0.06); border: 1px solid rgba(255,237,0,0.1); border-radius: var(--radius); font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.footer-col h4 { font-family: var(--font-heading); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: var(--accent); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #6B6B78; font-size: 0.875rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contact { font-style: normal; font-size: 0.875rem; margin-bottom: 18px; }
.footer-contact p { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.footer-contact a { color: #78788A; }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.75rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: #555560; font-size: 0.75rem; }
.footer-legal a:hover { color: var(--accent); }

/* CodLab Badge */
.footer-codlab { background: #0A0A0F; padding: 18px 0; text-align: center; }
.codlab-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: var(--radius); text-decoration: none; transition: all 0.25s; }
.codlab-badge:hover { background: rgba(255,237,0,0.04); border-color: rgba(255,237,0,0.15); }
.codlab-created { font-size: 0.625rem; color: #555560; font-weight: 600; }
.codlab-logo { height: 16px; width: auto; }

/* === WooCommerce === */
.wc-content { padding-bottom: 56px; }
.wc-content .products, .wc-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.wc-content ul.products li.product {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}
.woocommerce-products-header { padding: 56px 0 28px; text-align: center; }
.woocommerce-result-count,
.woocommerce-ordering { display: none; }
.woocommerce-ordering select { padding: 10px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius); font: 0.8125rem var(--font-body); background: var(--white); }

.shop-filters { background: var(--white); border: 2px solid var(--gray-100); border-radius: var(--radius-lg); padding: 18px 24px; margin-bottom: 24px; }
.filter-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-list li a { display: inline-block; padding: 7px 18px; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; color: var(--gray-500); background: var(--gray-50); border-radius: var(--radius); transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.04em; }
.filter-list li a:hover, .filter-list li.active a { background: var(--accent); color: var(--accent-text); }
.filter-list li a span { font-size: 0.625rem; color: var(--gray-400); margin-left: 3px; }

/* WooCommerce Pagination */
.woocommerce-pagination { margin-top: 48px; text-align: center; }
.woocommerce-pagination ul { list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.woocommerce-pagination ul li { margin: 0; }
.woocommerce-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 12px;
    font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700;
    color: var(--gray-500); background: var(--white);
    border: 2px solid var(--gray-100); border-radius: var(--radius);
    transition: all 0.2s; text-decoration: none;
}
.woocommerce-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent-on-light); }
.woocommerce-pagination .page-numbers.current { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.woocommerce-pagination .page-numbers.dots { border: none; background: none; color: var(--gray-400); min-width: 24px; padding: 0; }
.woocommerce-pagination .page-numbers.next,
.woocommerce-pagination .page-numbers.prev { font-size: 1.125rem; color: var(--gray-400); }
.woocommerce-pagination .page-numbers.next:hover,
.woocommerce-pagination .page-numbers.prev:hover { color: var(--accent-on-light); border-color: var(--accent); }

/* Single Product */
.single-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
.product-gallery { position: sticky; top: 100px; align-self: start; }
.product-gallery img { width: 100%; border-radius: var(--radius-lg); background: var(--gray-50); padding: 28px; object-fit: contain; }
.product-info { padding: 12px 0; }
.product-breadcrumb { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 20px; }
.product-breadcrumb a { color: var(--gray-400); }
.product-breadcrumb a:hover { color: var(--accent-on-light); }
.product-title { font-size: 2rem; margin-bottom: 8px; }
.product-article-number { font-family: var(--font-heading); font-size: 0.875rem; color: var(--accent-on-light); font-weight: 700; margin-bottom: 24px; letter-spacing: 0.02em; }
.product-short-desc { font-size: 1rem; color: var(--gray-500); line-height: 1.75; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 2px solid var(--gray-100); }
.tech-specs { margin-bottom: 28px; }
.tech-specs h3 { font-size: 1rem; margin-bottom: 14px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--gray-100); }
.specs-table td { padding: 10px 0; font-size: 0.875rem; }
.specs-table td:first-child { color: var(--gray-500); width: 40%; font-weight: 600; }
.specs-table td:last-child { color: var(--black); font-family: var(--font-mono); font-size: 0.8125rem; }
.product-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.product-actions .btn { justify-content: center; }
.tender-text-section { background: var(--gray-50); border: 2px solid var(--gray-100); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }
.tender-text-section h3 { font-size: 0.875rem; margin-bottom: 12px; }
.tender-text-content { font-size: 0.8125rem; color: var(--gray-500); line-height: 1.7; font-family: var(--font-mono); white-space: pre-wrap; }
.copy-tender-btn { margin-top: 12px; }

/* Page */
.page-header { padding: 72px 0 36px; background: var(--gray-50); text-align: center; position: relative; }
.page-header::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--accent); }
.page-header h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.page-content { padding: 56px 0; }
.page-content .container { max-width: 740px; }
.entry-content p { margin-bottom: 18px; line-height: 1.85; }
.entry-content h2 { margin: 2rem 0 1rem; }
.entry-content h3 { margin: 1.5rem 0 0.75rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.5rem 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; }

/* === Animations === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.section-header, .category-card, .product-card, .usp-card,
.ai-teaser-content, .ai-teaser-visual, .cta-box {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.section-header.visible, .category-card.visible, .product-card.visible,
.usp-card.visible, .ai-teaser-content.visible,
.ai-teaser-visual.visible, .cta-box.visible { opacity: 1; transform: translateY(0); }

.category-card:nth-child(2) { transition-delay: 0.1s; }
.category-card:nth-child(3) { transition-delay: 0.2s; }
.category-card:nth-child(4) { transition-delay: 0.3s; }
.product-card:nth-child(2) { transition-delay: 0.05s; }
.product-card:nth-child(3) { transition-delay: 0.1s; }
.product-card:nth-child(4) { transition-delay: 0.15s; }
.product-card:nth-child(5) { transition-delay: 0.2s; }
.product-card:nth-child(6) { transition-delay: 0.25s; }
.product-card:nth-child(7) { transition-delay: 0.3s; }
.product-card:nth-child(8) { transition-delay: 0.35s; }

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .ai-teaser { grid-template-columns: 1fr; gap: 32px; }
    .single-product-layout { grid-template-columns: 1fr; }
    .section-header-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .mega-menu-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 768px) {
    .header-topbar .topbar-left { display: none; }
    .primary-nav { display: none; }
    .mobile-toggle { display: flex; }
    .hero { min-height: auto; padding: 56px 0; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-divider { display: none; }
    .stat-number { font-size: 2rem; }
    .stat-suffix { font-size: 2rem; }
    .trust-inner { flex-direction: column; gap: 10px; text-align: center; }
    .categories-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .cta-box { padding: 48px 28px; }
    .section { padding: 64px 0; }
    .header-main { border-bottom-width: 2px; }
}

/* Mobile Nav */
.mobile-nav { position: fixed; top: 0; right: -100%; width: 320px; height: 100vh; background: var(--white); z-index: 3000; padding: 48px 28px; transition: right 0.35s var(--ease); overflow-y: auto; box-shadow: var(--shadow-xl); }
.mobile-nav.active { right: 0; }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

/* ========================================
   DARK MODE
   ======================================== */

[data-theme="dark"] {
    --white: #111116;
    --gray-50: #16161C;
    --gray-100: #1E1E26;
    --gray-200: #282832;
    --gray-300: #3A3A46;
    --gray-400: #58586A;
    --gray-500: #78788A;
    --gray-600: #9898A8;
    --gray-700: #B8B8C4;
    --gray-800: #D0D0DA;
    --gray-900: #E4E4EC;
    --gray-950: #F0F0F5;
    --black: #F2F2F7;
    --accent-on-light: var(--accent);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 44px rgba(0,0,0,0.35);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.45);
}

[data-theme="dark"] body { background: #111116; color: #9898A8; }
[data-theme="dark"] a { color: #D0D0DA; }
[data-theme="dark"] a:hover { color: var(--accent); }
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4 { color: #E4E4EC; }

[data-theme="dark"] .site-logo img,
[data-theme="dark"] .custom-logo-link img,
[data-theme="dark"] .custom-logo { filter: invert(1) hue-rotate(180deg); }

[data-theme="dark"] .site-header { background: #111116; border-bottom: 1px solid #1E1E26; }
[data-theme="dark"] .header-main { border-bottom-color: var(--accent); }
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 2px 0 var(--accent), 0 4px 20px rgba(0,0,0,0.3); }
[data-theme="dark"] .header-topbar { background: #0A0A10; }
[data-theme="dark"] .nav-menu > li > a { color: #78788A; }
[data-theme="dark"] .nav-menu > li:hover > a { color: #E4E4EC; }
[data-theme="dark"] .mega-menu { background: #14141A; border-color: var(--accent); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
[data-theme="dark"] .mega-menu-col h4 { color: #E4E4EC; }
[data-theme="dark"] .mega-menu-col a { color: #58586A; }
[data-theme="dark"] .mega-menu-col a:hover { color: var(--accent); border-left-color: var(--accent); }

[data-theme="dark"] .search-toggle,
[data-theme="dark"] .theme-toggle { color: #58586A; }
[data-theme="dark"] .search-toggle:hover,
[data-theme="dark"] .theme-toggle:hover { color: var(--accent); background: #1E1E26; }
[data-theme="dark"] .ai-toggle { background: var(--accent); color: #0B0B0F; }
[data-theme="dark"] .search-overlay { background: #0A0A10; }

[data-theme="dark"] .section-categories,
[data-theme="dark"] .section-products { background: #111116; }
[data-theme="dark"] .section-usp { background: #0E0E14; }
[data-theme="dark"] .page-header { background: #0E0E14; }
[data-theme="dark"] .section-overline { color: var(--accent); }
[data-theme="dark"] .section-desc { color: #68687A; }

[data-theme="dark"] .category-card { background: #16161C; border-color: #1E1E26; }
[data-theme="dark"] .category-card:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
[data-theme="dark"] .category-card-img { background: #12121A; }
[data-theme="dark"] .category-number { color: var(--accent); }
[data-theme="dark"] .category-count { background: #1E1E26; color: #68687A; }
[data-theme="dark"] .category-title { color: #D0D0DA; }
[data-theme="dark"] .category-desc { color: #68687A; }
[data-theme="dark"] .category-link { color: #9898A8; }
[data-theme="dark"] .category-card:hover .category-link { color: var(--accent); }

[data-theme="dark"] .product-card { background: #16161C; border-color: #1E1E26; }
[data-theme="dark"] .product-card:hover { border-color: #282832; box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
[data-theme="dark"] .product-card-image { background: #12121A; }
[data-theme="dark"] .product-card-title { color: #D0D0DA; }
[data-theme="dark"] .product-article { color: var(--accent); }
[data-theme="dark"] .product-specs { color: #58586A; }
[data-theme="dark"] .product-card-arrow { color: #3A3A46; }
[data-theme="dark"] .product-card:hover .product-card-arrow { color: var(--accent); }

[data-theme="dark"] .btn-primary { background: var(--accent); color: #0B0B0F; border-color: var(--accent); }
[data-theme="dark"] .btn-primary:hover { background: var(--accent-hover); }
[data-theme="dark"] .btn-dark { background: #E4E4EC; color: #0B0B0F; border-color: #E4E4EC; }
[data-theme="dark"] .btn-outline { border-color: #282832; color: #9898A8; }
[data-theme="dark"] .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .btn-outline-light { border-color: #282832; color: #9898A8; }
[data-theme="dark"] .btn-outline-light:hover { border-color: var(--accent); color: var(--accent); }

[data-theme="dark"] .product-gallery img { background: #14141A; }
[data-theme="dark"] .product-title { color: #E4E4EC; }
[data-theme="dark"] .product-article-number { color: var(--accent); }
[data-theme="dark"] .product-short-desc { color: #78788A; border-bottom-color: #1E1E26; }
[data-theme="dark"] .tech-specs h3 { color: #D0D0DA; }
[data-theme="dark"] .specs-table tr { border-bottom-color: #1E1E26; }
[data-theme="dark"] .specs-table td:first-child { color: #68687A; }
[data-theme="dark"] .specs-table td:last-child { color: #B8B8C4; }
[data-theme="dark"] .tender-text-section { background: #16161C; border-color: #1E1E26; }
[data-theme="dark"] .product-breadcrumb,
[data-theme="dark"] .product-breadcrumb a { color: #58586A; }
[data-theme="dark"] .product-breadcrumb a:hover { color: var(--accent); }
[data-theme="dark"] .cert-badge { background: rgba(255,237,0,0.06); border-color: rgba(255,237,0,0.12); color: var(--accent); }

[data-theme="dark"] .shop-filters { background: #16161C; border-color: #1E1E26; }
[data-theme="dark"] .filter-list li a { background: #1E1E26; color: #78788A; }
[data-theme="dark"] .filter-list li a:hover,
[data-theme="dark"] .filter-list li.active a { background: var(--accent); color: #0B0B0F; }
[data-theme="dark"] .woocommerce-ordering select { background: #16161C; border-color: #1E1E26; color: #9898A8; }
[data-theme="dark"] .woocommerce-products-header h1 { color: #E4E4EC; }
[data-theme="dark"] .woocommerce-pagination .page-numbers { background: #16161C; border-color: #22222A; color: #78788A; }
[data-theme="dark"] .woocommerce-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .woocommerce-pagination .page-numbers.current { background: var(--accent); color: #0B0B0F; border-color: var(--accent); }

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] textarea,
[data-theme="dark"] select { background: #14141A; border-color: #28283A; color: #D0D0DA; }

[data-theme="dark"] .mobile-nav { background: #14141A; box-shadow: -4px 0 24px rgba(0,0,0,0.5); }
[data-theme="dark"] .mobile-nav-overlay { background: rgba(0,0,0,0.6); }
[data-theme="dark"] .product-placeholder svg { color: #28283A; }
[data-theme="dark"] .bc-sep { color: #3A3A46; }
[data-theme="dark"] .entry-content p { color: #9898A8; }
[data-theme="dark"] .page-header::after { background: var(--accent); }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Print */
@media print {
    .site-header, .site-footer, .ai-toggle, .search-toggle, .theme-toggle, .section-ai, .section-cta { display: none !important; }
    .single-product-layout { grid-template-columns: 1fr; }
    body { color: #000; background: #fff; }
}
