/* ==========================================================================
   ELS Mühendislik — Architectural Lighting Engineering Design System
   Fast, Mobile-First, Zero-Framework Bloat
   ========================================================================== */

:root {
    --bg-dark: #0b1220;
    --bg-dark-2: #111c30;
    --bg-dark-3: #18253d;
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-muted: #f1f5f9;

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-on-dark: #f8fafc;
    --text-on-dark-muted: #94a3b8;

    --accent: #e89b12;
    --accent-hover: #cf8709;
    --accent-soft: rgba(232, 155, 18, 0.12);
    --accent-border: rgba(232, 155, 18, 0.35);

    --philips: #0b5ed7;
    --philips-soft: rgba(11, 94, 215, 0.1);
    --ledvance: #ea580c;
    --ledvance-soft: rgba(234, 88, 12, 0.1);

    --border: #e2e8f0;
    --border-dark: rgba(255, 255, 255, 0.1);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 45px -12px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 0 40px rgba(232, 155, 18, 0.2);

    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --container: 1280px;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: clip;
    max-width: 100%;
}

/* Prevent CSS Grid / Flex children from blowing out mobile viewport width */
.hero-inner > *,
.catalog-layout > *,
.pdp-hero > *,
.specs-table-grid > *,
.contact-grid > *,
.brand-cards-grid > *,
.service-grid > *,
.project-grid > *,
.pdp-gallery,
.pdp-info,
.pdp-card {
    min-width: 0;
    max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

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

/* ---------- Top Utility Bar ---------- */
.topbar {
    background: var(--bg-dark);
    color: var(--text-on-dark-muted);
    font-size: 13px;
    border-bottom: 1px solid var(--border-dark);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    flex-wrap: wrap;
}

.topbar-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    transition: color 0.15s;
}
.topbar-link:hover { color: var(--accent); }
.topbar-link svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* Social Media Icon Buttons */
.social-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-btn {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    transition: all 0.18s ease;
}

.social-links--topbar .social-btn {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
.social-links--topbar .social-btn svg { width: 13px; height: 13px; }
.social-links--topbar .social-btn:hover { background: var(--accent); color: #0b1220; }

.social-links--footer .social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}
.social-links--footer .social-btn svg { width: 17px; height: 17px; }
.social-links--footer .social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b1220;
    transform: translateY(-2px);
}

.social-links--light .social-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    color: var(--text-main);
}
.social-links--light .social-btn svg { width: 17px; height: 17px; }
.social-links--light .social-btn:hover {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- Sticky Architectural Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.site-header.scrolled {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--header-h);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    background: var(--bg-muted);
    color: var(--accent-hover);
}

.nav-link--highlight {
    background: var(--accent-soft);
    color: #b46d04;
}
.nav-link--highlight:hover {
    background: var(--accent);
    color: #fff;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -120px;
    width: 780px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 120;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.mega-col-title a { color: var(--accent-hover); font-size: 12px; text-transform: none; letter-spacing: 0; }

.mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.mega-list--two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.mega-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: background 0.12s, color 0.12s;
}
.mega-list a:hover { background: var(--bg-muted); color: var(--text-main); }
.mega-count { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* Header Search */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    width: 240px;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 38px 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 50%;
}
.search-submit:hover { color: var(--accent-hover); }

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: 92vw;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 150;
    display: none;
}

.search-dropdown.open { display: block; }

.search-sugg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bg-muted);
    transition: background 0.12s;
}
.search-sugg-item:hover { background: var(--bg-page); }
.search-sugg-thumb {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    object-fit: contain;
    padding: 3px;
    flex-shrink: 0;
}
.search-sugg-body { min-width: 0; flex: 1; }
.search-sugg-title { font-size: 13.5px; font-weight: 600; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-sugg-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-sugg-badge {
    font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
    background: var(--bg-muted); color: var(--text-secondary); flex-shrink: 0;
}
.search-sugg-footer {
    display: block; text-align: center; padding: 10px; font-size: 13px; font-weight: 600;
    color: var(--accent-hover); background: var(--bg-page);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
    background: var(--accent);
    color: #0b1220;
    box-shadow: 0 4px 14px rgba(232, 155, 18, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn-dark {
    background: var(--bg-dark);
    color: #fff;
}
.btn-dark:hover { background: var(--bg-dark-3); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-main);
}
.btn-outline:hover { border-color: var(--text-main); background: var(--bg-muted); }

.btn-outline-light {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.14); border-color: #fff; }

.btn-whatsapp {
    background: #16a34a;
    color: #fff;
}
.btn-whatsapp:hover { background: #15803d; transform: translateY(-1px); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 10px; }

.mobile-menu-btn {
    display: none;
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
    place-items: center;
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
    position: fixed; inset: 0; background: rgba(11, 18, 32, 0.65);
    backdrop-filter: blur(4px); z-index: 200; opacity: 0; visibility: hidden; transition: 0.25s;
}
.mobile-drawer-backdrop.open { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 88vw;
    background: #fff; z-index: 210; transform: translateX(100%); transition: transform 0.28s cubic-bezier(.16,1,.3,1);
    display: flex; flex-direction: column; overflow-y: auto; padding: 20px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.mobile-drawer-links { display: grid; gap: 6px; }
.mobile-drawer-links a { padding: 11px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text-main); }
.mobile-drawer-links a:hover { background: var(--bg-muted); color: var(--accent-hover); }

/* ---------- Hero Section (Alternatif 2: Architectural Cove & Linear LED Facade) ---------- */
.hero {
    position: relative;
    background: linear-gradient(125deg, #050811 0%, #09101f 52%, #0c172b 100%);
    color: #fff;
    padding: 78px 0 86px;
    overflow-x: clip;
    overflow-y: visible;
    --mx: 74%;
    --my: 38%;
}

.hero-lighting-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

/* Recessed ceiling cove light grazing downward from the top rim */
.hero-cove-light {
    position: absolute;
    top: -1px;
    left: 6%;
    right: 6%;
    height: 110px;
    background: radial-gradient(ellipse 68% 100% at 50% 0%, rgba(251, 191, 36, 0.2) 0%, rgba(232, 155, 18, 0.06) 45%, transparent 100%);
    filter: blur(12px);
}

/* Wall-washer ambient lighting concentrated behind the right showcase, leaving left typography ultra-clean */
.hero-wallwash {
    position: absolute;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.hero-wallwash--right {
    top: -12%;
    right: -4%;
    width: 58%;
    height: 120%;
    background: radial-gradient(ellipse 62% 70% at 62% 36%, rgba(245, 158, 11, 0.22) 0%, rgba(232, 155, 18, 0.06) 46%, transparent 74%);
    filter: blur(28px);
    animation: heroWashPulse 10s ease-in-out infinite alternate;
}

.hero-wallwash--cool {
    bottom: -18%;
    right: 12%;
    width: 48%;
    height: 85%;
    background: radial-gradient(ellipse 60% 60% at 50% 65%, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0.05) 48%, transparent 74%);
    filter: blur(36px);
    animation: heroWashPulse 13s ease-in-out infinite alternate-reverse;
}

.hero-arch-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* Interactive cursor luminaire spotlight on desktop */
.hero-cursor-light {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        480px circle at var(--mx) var(--my),
        rgba(251, 191, 36, 0.11) 0%,
        rgba(232, 155, 18, 0.03) 40%,
        transparent 72%
    );
    transition: opacity 0.3s ease;
}

/* Fine architectural matte aluminum / stone micro-grain to eliminate gradient banding */
.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

@keyframes heroWashPulse {
    0% { opacity: 0.78; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-wallwash--right, .hero-wallwash--cool { animation: none; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(232, 155, 18, 0.14);
    border: 1px solid rgba(232, 155, 18, 0.35);
    color: #fbbf24;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
}

.hero-title span {
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fde68a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: #cbd5e1;
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 0 28px;
}

/* Hero Instant Search */
.hero-search {
    position: relative;
    z-index: 40;
    max-width: 590px;
    margin-bottom: 24px;
}

.hero-search .search-dropdown {
    color: var(--text-main);
    text-align: left;
}

.hero-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 6px;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(232, 155, 18, 0.18);
    background: rgba(255, 255, 255, 0.12);
}

.hero-search-form input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    padding: 12px 14px;
    outline: none;
    min-width: 0;
}
.hero-search-form input::placeholder { color: #94a3b8; }

.hero-quick-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #94a3b8;
    margin-bottom: 28px;
}

.hero-quick-tags a {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e2e8f0;
    transition: 0.15s;
}
.hero-quick-tags a:hover { border-color: var(--accent); color: #fbbf24; }

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Visual Collage */
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
}

.hero-photo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    aspect-ratio: 4/5;
    background: var(--bg-dark-2);
    box-shadow: var(--shadow-lg);
}

.hero-photo-card:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 360px; }
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-photo-card:hover img { transform: scale(1.04); }

.hero-photo-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(9, 15, 28, 0.92));
    font-size: 13px; font-weight: 700; color: #fff;
}

/* Stats Strip */
.stats-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 26px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.stat-val { font-size: 24px; font-weight: 800; color: var(--text-main); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-white { background: #fff; }
.section-dark { background: var(--bg-dark); color: #fff; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent-hover);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: clamp(1.55rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 10px 0 0;
    font-size: 15.5px;
}

.section-dark .section-subtitle { color: #94a3b8; }

/* ---------- Brand Showcase Cards ---------- */
.brand-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.brand-showcase-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.brand-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.brand-showcase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-showcase-logo {
    height: 44px;
    max-width: 170px;
    object-fit: contain;
}

.brand-pill {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.brand-pill--philips { background: var(--philips-soft); color: var(--philips); }
.brand-pill--ledvance { background: var(--ledvance-soft); color: var(--ledvance); }

.brand-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-cat-chip {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.15s;
}
.brand-cat-chip:hover { background: var(--bg-dark); color: #fff; }

/* ---------- Category Grid ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.cat-card-img {
    height: 150px;
    background: #fff;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--bg-muted);
}

.cat-card-img img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.3s; }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }

.cat-card-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-card-brand { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-hover); }
.cat-card-title { font-size: 15px; font-weight: 700; color: var(--text-main); margin: 0; }
.cat-card-count { font-size: 12.5px; color: var(--text-muted); margin-top: auto; padding-top: 6px; }

/* ---------- Product Card Grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 155, 18, 0.55);
}

.product-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #fff;
    padding: 38px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--bg-muted);
    overflow: hidden;
}

.product-card-media img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.06); }

.product-brand-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.product-brand-badge--philips { background: #e7f0fe; color: var(--philips); }
.product-brand-badge--ledvance { background: #ffedd5; color: var(--ledvance); }

.product-variant-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.product-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-cat {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-spec-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.spec-pill {
    font-size: 11.5px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-muted);
    color: var(--text-secondary);
}

.product-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price-tag {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.product-quote-hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.product-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-hover);
}
.product-card:hover .product-detail-link { color: var(--text-main); }

/* ---------- Catalog Page Layout (Sidebar + Grid) ---------- */
.page-banner {
    background: linear-gradient(135deg, #0b1220 0%, #152238 100%);
    color: #fff;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-dark);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.45; }

.page-banner h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.page-banner p { margin: 0; color: #cbd5e1; max-width: 760px; font-size: 15px; }

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    padding: 36px 0 72px;
    align-items: start;
}

.catalog-sidebar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
}

.filter-group {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.filter-title {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.15s;
}
.filter-link:hover { background: var(--bg-muted); color: var(--text-main); }
.filter-link.active { background: var(--accent-soft); color: #9a5d00; font-weight: 700; }

.filter-sublist {
    list-style: none;
    margin: 4px 0 8px 12px;
    padding-left: 10px;
    border-left: 2px solid var(--border);
    display: grid;
    gap: 2px;
}

.filter-sublist .filter-link { font-size: 13px; padding: 5px 8px; }

.ip-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-chip {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: #fff;
}
.ip-chip:hover, .ip-chip.active { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); }

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
}

.catalog-search-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 220px;
    max-width: 440px;
}

.catalog-search-inline input {
    flex: 1;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}
.catalog-search-inline input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.catalog-sort select {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13.5px;
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-dark);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}

.mobile-filter-toggle { display: none; }
.mobile-filter-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.page-btn.active { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }

/* ---------- Product Detail Page (Architectural Datasheet) ---------- */
.pdp-shell { padding: 32px 0 80px; }

.pdp-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.pdp-gallery { display: flex; flex-direction: column; gap: 14px; }

.pdp-main-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at center, #ffffff 45%, #f1f5f9 100%);
    border: 1px solid var(--border);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    overflow: hidden;
}

.pdp-main-stage img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.pdp-main-stage:hover img { transform: scale(1.03); }

.pdp-zoom-hint {
    position: absolute; bottom: 12px; right: 12px; z-index: 3;
    padding: 6px 10px; border-radius: 8px;
    background: rgba(15, 23, 42, 0.72); color: #fff;
    font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
}

.pdp-thumbs {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.pdp-thumb {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 2px solid var(--border);
    background: #fff;
    padding: 6px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color 0.15s;
}
.pdp-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--accent); }

.pdp-info { display: flex; flex-direction: column; }

.pdp-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pdp-sku {
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-weight: 600;
}

.pdp-title {
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.pdp-short-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 22px;
    overflow-wrap: break-word;
}

.pdp-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.pdp-spec-box {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}

.pdp-spec-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.pdp-spec-value { font-size: 15px; font-weight: 700; color: var(--text-main); font-family: var(--font-mono); margin-top: 2px; }

.pdp-price-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid var(--accent-border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.pdp-price-val { font-size: 26px; font-weight: 800; color: var(--text-main); font-variant-numeric: tabular-nums; }
.pdp-price-note { font-size: 12.5px; color: #92400e; }

.pdp-cta-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.pdp-cta-stack .btn-full { grid-column: 1 / -1; }

.pdp-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-secondary);
}
.pdp-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.pdp-trust-item svg { width: 15px; height: 15px; color: var(--accent-hover); }

/* PDP Sections (Variants, Overview, Specs) */
.pdp-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    overflow: hidden;
}

.pdp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.pdp-card-head h2 { margin: 0; font-size: 19px; font-weight: 800; }

.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.variant-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.variant-table th {
    text-align: left;
    padding: 11px 14px;
    background: var(--bg-page);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.variant-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--bg-muted);
    vertical-align: middle;
}

.variant-table tbody tr:hover { background: #fffcf5; }
.variant-code { font-family: var(--font-mono); font-weight: 700; color: var(--text-main); font-size: 13px; }

.specs-table-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.spec-group-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.spec-dl { margin: 0; display: grid; gap: 8px; }
.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-page);
    font-size: 13.5px;
}
.spec-row dt { color: var(--text-muted); font-weight: 600; }
.spec-row dd { margin: 0; color: var(--text-main); font-weight: 600; text-align: right; }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✓";
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-weight: 800;
    font-size: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- Projects, Services, Partners, References ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.22s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.service-card-img { height: 210px; overflow: hidden; background: var(--bg-dark); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.service-card p { margin: 0 0 18px; color: var(--text-secondary); font-size: 14.5px; flex: 1; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-dark-2);
    border: 1px solid var(--border-dark);
    display: block;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.project-card:hover img { transform: scale(1.06); }
.project-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,18,32,0.05) 30%, rgba(11,18,32,0.92) 100%);
    padding: 22px;
    display: flex; flex-direction: column; justify-content: flex-end;
    color: #fff;
}
.project-tag {
    display: inline-block; width: fit-content;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(232, 155, 18, 0.9); color: #0b1220;
    font-size: 11.5px; font-weight: 800; margin-bottom: 8px;
}
.project-card h3 { margin: 0; font-size: 19px; font-weight: 800; }

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
}

.logo-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    transition: all 0.2s;
    min-height: 118px;
}
.logo-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.logo-tile img { max-height: 52px; max-width: 130px; object-fit: contain; }
.logo-tile span { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }

/* CTA Banner */
.cta-banner {
    background: radial-gradient(circle at 90% 20%, rgba(232, 155, 18, 0.28), transparent 45%),
                linear-gradient(135deg, #0b1220 0%, #152238 100%);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
.cta-banner p { margin: 0; color: #cbd5e1; max-width: 580px; }

/* ---------- Contact & Forms ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 700; color: var(--text-main); }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14.5px;
    background: #fff;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.form-control { min-height: 115px; resize: vertical; }

.alert-success {
    padding: 14px 18px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-weight: 600;
    margin-bottom: 20px;
}

.field-validation-error { color: #dc2626; font-size: 12.5px; font-weight: 600; }

/* ---------- Modal (Quote & Lightbox) ---------- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(9, 15, 28, 0.72);
    backdrop-filter: blur(5px); z-index: 300;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal-dialog {
    width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
    background: #fff; border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow-lg); position: relative;
}

.modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); background: #fff; cursor: pointer;
    display: grid; place-items: center; font-size: 18px; color: var(--text-main);
}
.modal-close:hover { background: var(--bg-muted); }

/* Fancybox Gallery Theme Customization */
.fancybox__container {
    --fancybox-bg: rgba(11, 18, 32, 0.94);
    --fancybox-accent-color: #e89b12;
    --f-thumb-outline-color: #e89b12;
    --f-thumb-border-radius: 8px;
}

.fancybox__content img,
.fancybox__slide.has-image .fancybox__content {
    border-radius: 12px;
}

.fancybox__container.is-product-gallery .fancybox__slide .fancybox__content {
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.fancybox__thumbs .f-thumbs__slide__button {
    background: #ffffff;
    padding: 3px;
}

.fancybox__thumbs .f-thumbs__slide__img {
    object-fit: contain;
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: var(--bg-dark);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(11, 18, 32, 0.34);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.92);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: #16233b;
    color: var(--accent);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 32px rgba(232, 155, 18, 0.28);
}

.back-to-top-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.back-to-top-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 2.5;
}

.back-to-top-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 131.95;
    stroke-dashoffset: 131.95;
    transition: stroke-dashoffset 0.08s linear;
}

.back-to-top-arrow {
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .back-to-top {
        right: 16px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-on-dark-muted);
    padding: 64px 0 28px;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 42px;
    border-bottom: 1px solid var(--border-dark);
}

.footer-title { color: #fff; font-size: 15px; font-weight: 800; margin: 0 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 13px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1320px) {
    .nav-link { padding: 8px 10px; font-size: 13.5px; }
    .search-box { width: 200px; }
}

@media (max-width: 1180px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: grid; }
    .search-box { width: 220px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { max-width: 560px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-cards-grid { grid-template-columns: 1fr; }
    .service-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-sidebar {
        display: none;
        position: fixed; top: 0; left: 0; bottom: 0; width: 310px; max-width: 88vw;
        z-index: 220; border-radius: 0; max-height: 100vh;
    }
    .catalog-sidebar.mobile-open { display: block; }
    .mobile-filter-toggle { display: inline-flex; }
    .mobile-filter-header { display: flex; }
    .product-grid, .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .pdp-hero { grid-template-columns: 1fr; padding: 22px; gap: 26px; }
    .specs-table-grid, .feature-list, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .container { padding-inline: 14px; }
    .topbar { display: none; }
    .search-box { display: none; }
    .btn { white-space: normal; text-align: center; }
    .hero { padding: 48px 0 56px; }
    .hero-search-form { flex-direction: column; align-items: stretch; gap: 6px; }
    .hero-visual { grid-template-columns: 1fr; }
    .hero-photo-card:first-child { min-height: 240px; }
    .hero-photo-card:not(:first-child) { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .product-grid, .product-grid--3, .cat-grid, .service-grid, .project-grid { grid-template-columns: 1fr; }
    .pdp-shell { padding: 20px 0 56px; }
    .pdp-hero { padding: 16px; border-radius: var(--radius-md); gap: 20px; }
    .pdp-main-stage { padding: 16px; border-radius: var(--radius-md); }
    .pdp-thumb { width: 62px; height: 62px; }
    .pdp-card { padding: 18px 16px; border-radius: var(--radius-md); }
    .pdp-spec-grid, .pdp-cta-stack, .form-grid { grid-template-columns: 1fr; }
    .spec-row { flex-direction: column; gap: 3px; }
    .spec-row dd { text-align: left; overflow-wrap: anywhere; }
    .cta-banner { padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
