:root {
    --bg: #0b0e14;
    --header: #252525;
    --accent: #00eaff;
    --text: #ffffff;
}

body {
	display: flex;
    flex-direction: column; 
	min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

main {
    flex: 1; /* Detta tvingar footern att tryckas ner till botten */
}

a {
	color: #FFF;
	text-decoration: none;
}

.container { min-width: 1200px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Menyer */
.utility-nav { background: #000; padding: 10px 0; font-size: 13px; }
.utility-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Förhindrar radbrytning */
    overflow-x: auto;  /* Tillåter scroll om skärmen är extremt liten */
}
.top-links a { color: #FFF; text-decoration: none; margin-right: 25px; }

.support-btn {
    background: #d32f2f; color: #fff; padding: 6px 15px; 
    border-radius: 20px; text-decoration: none; font-weight: bold; display: flex; align-items: center; gap: 8px;
}

.pulse { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: p 1.5s infinite; }
@keyframes p { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.main-header { background: var(--header); padding: 20px 0; border-bottom: 1px solid #333; }
.main-header .container { display: flex; align-items: center; gap: 30px; }

.search-box { flex: 1; display: flex; }
.search-box input { flex: 1; padding: 12px; border: none; border-radius: 4px 0 0 4px; background: #0d1117; color: #fff; border: 1px solid #333; }
.search-box button { background: var(--accent); border: none; padding: 0 20px; font-weight: bold; border-radius: 0 4px 4px 0; cursor: pointer; }

.cart-trigger { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cart-icon-wrapper { font-size: 1.5rem; position: relative; }
#cart-count { position: absolute; top: -10px; right: -10px; background: var(--accent); color: #000; font-size: 12px; padding: 2px 6px; border-radius: 50%; font-weight: bold; }
.cart-info { display: flex; flex-direction: column; }
.cart-info .label { font-size: 11px; color: #888; }
#header-total { color: var(--accent); font-weight: bold; }

.category-nav { background: var(--header); border-bottom: 2px solid var(--accent); }
.category-nav ul { list-style: none; display: flex; padding: 0; margin: 0; }
.category-nav a { color: #fff; text-decoration: none; padding: 15px 20px; display: block; font-weight: 500; }
.category-nav a:hover { color: var(--accent); background: rgba(0,234,255,0.05); }

/* Produktkort */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 40px; }
.product-card { background: #1a202c; border-radius: 8px; border: 1px solid #333; transition: 0.3s; overflow: hidden; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 0 15px var(--accent); border-color: var(--accent); }
.product-card img { width: 100%; height: 160px; object-fit: cover; }
.p-info { padding: 15px; text-align: center; }
.p-info h3 { font-size: 0.9rem; margin: 0 0 10px; }
.price { color: var(--accent); font-weight: bold; font-size: 1.1rem; }
.buy-btn { width: 100%; padding: 10px; background: transparent; border: 1px solid var(--accent); color: var(--accent); cursor: pointer; border-radius: 4px; font-weight: bold; }
.buy-btn:hover { background: var(--accent); color: #000; }

/* Cart Drawer */
.cart-drawer { position: fixed; top: 0; right: -400px; width: 350px; height: 100%; background: #161b22; z-index: 2000; transition: 0.3s; box-shadow: -5px 0 20px rgba(0,0,0,0.5); display: flex; flex-direction: column; }
.cart-drawer.open { right: 0; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: none; z-index: 1500; }
.overlay.active { display: block; }

.cart-header { padding: 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-footer { padding: 20px; border-top: 1px solid #333; }
.total-line { font-size: 1.2rem; margin-bottom: 15px; display: flex; justify-content: space-between; }
.checkout-btn { width: 100%; padding: 15px; background: var(--accent); border: none; font-weight: bold; cursor: pointer; border-radius: 4px; }

/* Item i vagn */
.c-item { display: flex; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #222; padding-bottom: 10px; }
.c-item img { width: 40px; height: 40px; border-radius: 4px; }
.c-item-info h4 { margin: 0; font-size: 0.8rem; }
.remove-btn { color: #ff4d4d; font-size: 0.7rem; cursor: pointer; }


.main-logo { 
    height: 80px; /* Ännu större logga */
    width: auto; 
    display: block;
}

/* Animering för flygande produkt */
.flying-item {
    position: fixed;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 8px;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px var(--accent);
    background-size: cover;
    background-position: center;
}

/* Justering av kundvagnens rader */
.qty-btn {
    background: #30363d;
    border: none;
    color: white;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-weight: bold;
}
.qty-btn:hover { background: var(--accent); color: #000; }

.item-qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

/* ... Behåll tidigare bas-stilar ... */

.utility-right {
    display: flex;
    align-items: center;
    gap: 12px; /* Minskat gap för att spara plats */
    flex-shrink: 0; /* Hindrar boxen från att tryckas ihop */
}

.login-btn {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}
.login-btn:hover { border-color: var(--accent); color: var(--accent); }

.section-title { margin-top: 40px; border-left: 4px solid var(--accent); padding-left: 15px; }

/* Footer */
footer {
    background: var(--header);
    border-top: 1px solid #1a202c;
    margin-top: 50px;
    padding-top: 50px;
	width: 100%;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-section h4 { color: var(--accent); margin-bottom: 20px; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: 10px; }
.footer-section a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-section a:hover { color: white; }
.footer-bottom {
    background: var(--header);
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #FFF;
}

/* Sök-highlight */
.no-results { grid-column: 1 / -1; text-align: center; padding: 50px; color: #888; }

/* ... Behåll dina tidigare :root variabler ... */

/* HJÄLPKLASSER */
.desktop-only { display: flex; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}

/* HEADER JUSTERINGAR */
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-logo { height: 50px !important; } /* Mindre logga på mobil */
    .main-header { padding: 10px 0; }
}

/* MOBIL SÖK */
.mobile-search { display: none; padding-bottom: 15px; }
@media (max-width: 768px) {
    .mobile-search { display: block; }
    .mobile-search input {
        width: 100%;
        padding: 12px;
        background: #0d1117;
        border: 1px solid #333;
        border-radius: 6px;
        color: #fff;
        box-sizing: border-box;
    }
}

/* NAVIGATION */
@media (max-width: 768px) {
	.container { min-width: 0px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .category-nav {
        display: none; /* Göm som standard på mobil */
        position: absolute;
        width: 100%;
        left: 0;
        z-index: 1000;
        border-top: 1px solid #333;
    }
    .category-nav.active { display: block; }
    .category-nav ul { flex-direction: column; }
    .category-nav a { border-bottom: 1px solid #1a202c; padding: 15px 20px; }
}

/* PRODUKT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Två produkter per rad på små mobiler */
        gap: 10px;
    }
    .product-card img { height: 120px; }
    .p-info h3 { font-size: 0.8rem; height: 30px; overflow: hidden; }
    .price { font-size: 0.9rem; }
}

/* CART DRAWER MOBIL */
@media (max-width: 480px) {
    .cart-drawer { width: 100%; right: -100%; }
}

/* FOOTER MOBIL */
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .footer-section h4 { margin-bottom: 10px; }
}


/* Gör att plus/minus-tecknet får fast bredd så texten inte hoppar */
[id^="toggle_"] {
    display: inline-block;
    width: 15px;
    font-family: monospace;
    font-weight: bold;
}

/* Valfritt: ändra färg när man hovrar över kategorin */
strong:hover {
    color: var(--bg);
}

/* Behållaren för varje huvudkategori */
.kategori-wrapper {
    position: relative; /* Detta är viktigt för att undermenyn ska veta var den ska "sväva" */
    margin-bottom: 10px;
}

/* Själva undermenyn */
.undermeny-box {
    position: absolute; /* Gör att den svävar ovanpå */
    top: 100%;          /* Placerar den precis under huvudtexten */
    left: 0;
    z-index: 999;       /* Gör att den hamnar framför allt annat innehåll */
    background: var(--header);   /* Ge den en bakgrund så man inte ser igenom den */
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ger en snygg skugga så den "lyfter" */
    padding: 10px;
    min-width: 150px;   /* Sätt en bredd så den ser ut som en box */
}


/* Container för korten */
.employee_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Själva kortet */
.employee-card {
    background: var(--bg);
    border-radius: 15px;
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
	border: 2px solid var(--accent);
}

.employee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Bilden */
.image-wrapper {
    background: var(--header); /* Ljusblå bakgrund ifall bilden är genomskinlig */
    padding-top: 30px;
    padding-bottom: 10px;
}

.employee-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

/* Textinnehåll */
.info {
    padding: 20px 25px 30px;
}

.info h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--accent);
}

.role {
    display: block;
    font-weight: 600;
    color: #FFFs;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

/* Knapp */
.contact-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent);
    color: #000;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.contact-btn:hover {
    background-color: #3498db;
}

/* Responsivitet för mobiler */
@media (max-width: 600px) {
    .employee-card {
        width: 100%;
    }
}

/* Sidomeny */
.menu-container {
        display: flex;
        flex-direction: column; /* Lägger dem på höjden */
        gap: 5px;
        max-width: 250px; /* Anpassa bredden efter behov */
        font-family: sans-serif;
    }

    .menu-item {
        cursor: pointer;
        display: block;
		width: 210px;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        background-color: var(--bg);
        border-radius: 8px;
        color: #FFF;
        transition: all 0.2s ease; /* Gör animationen mjuk */
        border: 1px solid var(--accent);
        font-weight: 600;
    }
	
	.menu-header {
		cursor: pointer;
		display: flex;
		align-items: center;
		gap: 8px;
		width: 100%;
	}
	
	/* Denna färg gäller bara när musen är över OCH menyn är stängd */
	.menu-item:not(.is-open):hover {
		background-color: var(--accent); /* Eller den färg du brukar byta till */
		color: #000;
	}

	/* Om du vill att den ska se likadan ut som default när den är öppen */
	.menu-item.is-open {
		background-color: var(--bg); /* Behåll originalfärgen */
		cursor: default; /* Valfritt: ändra muspekaren så man fattar att den är låst */
	}

    /* Grundstil för länkarna i undermenyn */
	.underKat_div a {
		color: #FFF; /* Vit text som standard */
		text-decoration: none;
		display: block;
		padding: 5px 0;
		transition: color 0.2s ease;
	}

	/* Hover-effekt för länkarna när menyn är öppen */
	.menu-item.is-open .underKat_div a:hover {
		color: var(--accent); /* Texten blir accentfärgad vid hover */
	}

	/* Valfritt: Lägg till en liten indikation (t.ex. understrykning) vid hover */
	.menu-item.is-open .underKat_div a:hover {
		text-decoration: underline;
	}

    /* Ikonen (valfritt) */
    .menu-item i {
        font-size: 1.1em;
    }
	
	.huvudkat_strong {
		flex-grow: 1;
		color: #FFF;
	}
	
	.underKat_div {
		border-left: 2px solid var(--bg);
		padding: 5px 0 5px 12px;
		margin-bottom: 5px;
		display: block;
	}
	
	.underKat_div:hover {
		color: var(--bg);
	}
	
	.menu-icon {
		margin-right: 12px;
	}
	

    /* Behållaren som lägger innehållet i kolumner */
    .services-wrapper {
        display: flex;
        gap: 40px;      /* Mellanrum mellan meny och text */
        align-items: flex-start; /* Ser till att menyn inte töjs ut på höjden */
        margin-top: 20px;
    }

    /* Inställningar för själva menyn (vänster sida) */
    .services-sidebar {
        flex: 0 0 280px; /* Menyn får en fast bredd på 280px */
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Inställningar för texten (höger sida) */
    .services-content {
        flex: 1; /* Tar upp resten av det tillgängliga utrymmet */
        line-height: 1.6;
        color: #FFF;
    }

    /* Responsivitet: På mobilen hamnar texten under menyn */
    @media (max-width: 768px) {
        .services-wrapper {
            flex-direction: column;
        }
        .services-sidebar {
            flex: 1 1 auto;
            width: 100%;
        }
    }
	
	/* Produktkorts sida */
	.product-page {
            max-width: 1100px;
            margin: 20px auto;
            padding: 20px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #FFF;
        }

        /* Övre delen: Bild till vänster, snabbinfo till höger */
        .product-top-section {
            display: flex;
            gap: 50px;
            margin-bottom: 40px;
            align-items: flex-start;
        }

        .product-media {
            flex: 1;
            max-width: 500px;
        }

        .product-media img {
			max-width: 380px;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }

        .product-buy-box {
            flex: 1;
            padding: 20px;
            background: var(--bg);
            border-radius: 10px;
            border: 1px solid #eee;
        }

        .art-number { color: #888; font-size: 0.9em; }
        .product-title { margin: 10px 0; font-size: 2em; }
        .price-large { 
            font-size: 1.8em; 
            color: #27ae60; 
            font-weight: bold; 
            margin: 20px 0; 
        }

        .info-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 25px;
        }

        .info-table td {
            padding: 8px 0;
            border-bottom: 1px solid #eee;
            font-size: 0.95em;
        }

        .info-label { font-weight: bold; color: #555; width: 40%; }

        .buy-btn-large {
            width: 100%;
            padding: 15px;
            background: #27ae60;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 1.2em;
            cursor: pointer;
            transition: background 0.3s;
        }

        .buy-btn-large:hover { background: #219150; }

        /* Nedre delen: Beskrivning under allt */
        .product-description-section {
			color: #FFF;
            border-top: 2px solid #eee;
            padding-top: 30px;
            line-height: 1.8;
        }

        .product-description-section h2 {
            margin-bottom: 20px;
            border-left: 5px solid #27ae60;
            padding-left: 15px;
        }

        /* Mobilanpassning */
        @media (max-width: 768px) {
            .product-top-section { flex-direction: column; }
            .product-media { max-width: 100%; }
        }