/* ==========================================================================
   MULTIBRAND MASTER STYLESHEET (Speglar CoolCharge)
   Denna fil hanterar alla fristående butiker. 
   Färgen (--primary) styrs dynamiskt från huvudsystemets Admin-panel.
   ========================================================================== */

:root { 
    /* Fallback-färg om admin-variabeln dröjer (CoolCharge-blå) */
    --primary: #00d2ff; 
    
    /* Mörkt Tema - Grundfärger */
    --bg-dark: #090a0f; 
    --bg-panel: #12141d; 
    --text-main: #f4f4f4; 
    --text-muted: #888888; 
    
    /* Designvariabler för enhetlighet */
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
}

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    overflow-x: hidden; 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER & MENY --- */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 5%; 
    background: rgba(14, 16, 25, 0.75); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 900; 
    text-decoration: none; 
    color: #fff; 
    display: flex; 
    align-items: center; 
}

/* Tvingande fix för uppladdade logotyper via admin */
.logo img, #main-logo {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block;
}

nav ul { list-style: none; display: flex; gap: 25px; }
nav a { 
    color: var(--text-main); 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    font-weight: 700; 
    letter-spacing: 0.5px;
    transition: color var(--transition); 
}
nav a:hover { color: var(--primary); }

.header-utils { display: flex; gap: 15px; align-items: center; }

select { 
    background: rgba(255, 255, 255, 0.05); 
    color: white; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 8px 12px; 
    border-radius: var(--radius-sm); 
    font-size: 0.9rem; 
    cursor: pointer; 
    outline: none;
    transition: all var(--transition);
}
select:hover, select:focus { border-color: var(--primary); }

.cart-btn-nav { 
    background: rgba(255, 255, 255, 0.03); 
    color: white; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 8px 18px; 
    cursor: pointer; 
    font-weight: bold; 
    border-radius: var(--radius-sm); 
    transition: all var(--transition); 
}
.cart-btn-nav:hover { 
    background: var(--primary); 
    color: #000; 
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* --- HERO (Startsidan) --- */
.hero { 
    position: relative; 
    text-align: center; 
    padding: 160px 20px; 
    /* Subtil gradient för det mörka temat */
    background: linear-gradient(-45deg, #090a0f, #0a192f, #001220); 
    background-size: 400% 400%; 
    animation: coldBreeze 12s ease infinite; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    overflow: hidden; 
}
@keyframes coldBreeze { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero::before { 
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; 
    /* Denna glow anpassar sig INTE efter primary, för att hålla bakgrunden subtil */
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 40%); 
    animation: pulseIce 5s ease-in-out infinite alternate; pointer-events: none; z-index: 1; 
}
@keyframes pulseIce { 0% { transform: scale(0.9); opacity: 0.5; } 100% { transform: scale(1.3); opacity: 1; } }

.hero h1 { 
    position: relative; z-index: 2; font-size: 4.5rem; font-weight: 900; 
    text-transform: uppercase; margin-bottom: 20px; color: #ffffff; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.5); 
    letter-spacing: 2px; 
}
.hero p { 
    position: relative; z-index: 2; font-size: 1.2rem; color: #b0c4de; 
    margin-bottom: 35px; max-width: 600px; margin-inline: auto; 
    line-height: 1.8;
}

/* --- PRODUKTKORT & GRID --- */
.products { padding: 80px 5%; text-align: center; }
.products h2 { 
    text-transform: uppercase; font-size: 2.2rem; margin-bottom: 60px; 
    position: relative; display: inline-block; font-weight: 900;
}
.products h2::after { 
    content: ''; position: absolute; width: 40%; height: 4px; 
    background: var(--primary); bottom: -12px; left: 30%; border-radius: 2px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }

.pricing-card { 
    background: var(--bg-panel); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: var(--radius-md); 
    padding: 40px 30px 30px; 
    position: relative; text-align: left; 
    transition: all var(--transition); 
    display: flex; flex-direction: column; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.pricing-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); 
}
.pricing-card.highlight { border-color: var(--primary); border-width: 2px; }

.badge { 
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%); 
    background: var(--primary); color: #000; padding: 6px 24px; 
    border-radius: 30px; font-size: 0.85rem; font-weight: 900; 
    text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.card-title { font-size: 1.4rem; color: #fff; margin-bottom: 4px; font-weight: 800;}
.card-subtitle { font-size: 0.9rem; color: var(--text-muted); }

.price-section { margin-bottom: 25px; }
.price-huge { font-size: 3.5rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -1px;}
.price-suffix { font-size: 1rem; color: var(--text-muted); font-weight: normal; margin-left: 5px;}
.price-strikethrough { display: block; font-size: 1rem; color: #666; text-decoration: line-through; margin-top: 10px; }

.savings-box { 
    background: rgba(255, 255, 255, 0.03); 
    border-radius: var(--radius-sm); padding: 15px; 
    display: flex; align-items: center; gap: 12px; margin-bottom: 25px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
}
.savings-text { font-size: 0.95rem; color: var(--primary); font-weight: bold; display: block; margin-bottom: 2px;}
.savings-sub { font-size: 0.8rem; color: #aaa; }

.specs-row { 
    display: flex; gap: 20px; border-top: 1px solid rgba(255,255,255,0.05); 
    border-bottom: 1px solid rgba(255,255,255,0.05); padding: 15px 0; 
    margin-bottom: 25px; font-size: 0.85rem; color: #ccc; 
}
.specs-row div { display: flex; align-items: center; gap: 8px; }

.bullets { list-style: none; padding: 0; margin-bottom: 30px; flex-grow: 1; }
.bullets li { position: relative; padding-left: 28px; margin-bottom: 14px; font-size: 0.95rem; color: #ddd; }
.bullets li::before { 
    content: '✓'; color: var(--primary); position: absolute; 
    left: 0; top: 0; font-size: 1.1rem; font-weight: bold;
}

.add-to-cart-btn { 
    width: 100%; background: var(--primary); color: #000; 
    border: none; padding: 16px; font-size: 1.1rem; font-weight: 900; 
    text-transform: uppercase; cursor: pointer; 
    border-radius: var(--radius-sm); transition: all var(--transition); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.add-to-cart-btn:hover { 
    background: #fff; transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(255,255,255,0.2); 
}

/* --- ENSKILD PRODUKTSIDA --- */
.product-container { max-width: 1200px; margin: 80px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; min-height: 50vh;}
.product-image { 
    background: rgba(255, 255, 255, 0.02); border-radius: var(--radius-md); 
    padding: 30px; display: flex; justify-content: center; align-items: center; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
}
.product-image img { max-width: 100%; max-height: 500px; border-radius: 8px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));}
.product-info h1 { font-size: 2.8rem; color: #fff; margin-bottom: 10px; text-transform: uppercase; font-weight: 900; letter-spacing: -1px;}
.product-price { font-size: 2.2rem; font-weight: 900; color: var(--primary); margin-bottom: 25px; }
.product-desc { font-size: 1.1rem; color: #ccc; margin-bottom: 35px; line-height: 1.8; }
.trust-badges { 
    display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; 
    justify-content: flex-start; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 30px;
}
.badge-item { 
    display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #ddd; 
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); 
    padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; 
}

/* --- SUPPORTSIDA --- */
.container { max-width: 900px; margin: 60px auto; padding: 0 20px; min-height: 60vh;}
.container h1 { text-align: center; margin-bottom: 50px; font-size: 2.5rem; text-transform: uppercase; color: #fff; font-weight: 900;}
.container h2 { font-size: 1.8rem; margin: 50px 0 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; color: #fff; }
.step { 
    background: var(--bg-panel); padding: 25px; border-radius: var(--radius-md); 
    margin-bottom: 25px; border-left: 4px solid var(--primary); 
    border-top: 1px solid rgba(255,255,255,0.02); border-right: 1px solid rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.02);
}
.step h3 { color: #fff; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.step-number { 
    background: var(--primary); color: #000; width: 30px; height: 30px; 
    display: flex; justify-content: center; align-items: center; 
    border-radius: 50%; font-weight: 900; font-size: 1rem; 
}
table { width: 100%; border-collapse: collapse; margin-bottom: 40px; background: var(--bg-panel); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2);}
th, td { padding: 18px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
th { background: rgba(0,0,0,0.4); color: var(--primary); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;}
tr:last-child td { border-bottom: none; }
.warning-box { background: rgba(255, 77, 77, 0.1); border-left: 4px solid #ff4d4d; padding: 20px; border-radius: var(--radius-sm); margin-bottom: 25px; font-size: 0.95rem; line-height: 1.6;}
.faq-item { margin-bottom: 20px; background: var(--bg-panel); padding: 25px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.02); }
.faq-item h3 { color: #fff; margin-bottom: 12px; font-size: 1.15rem; }
.faq-item p { color: var(--text-muted); font-size: 1rem; }

/* --- VARUKORG & FORMULÄR --- */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 999; display: none; opacity: 0; transition: opacity var(--transition);}
.cart-overlay.active { display: block; opacity: 1; }
.cart-drawer { 
    position: fixed; top: 0; right: -450px; width: 450px; max-width: 100%; height: 100dvh; 
    background: var(--bg-panel); z-index: 1000; padding: 30px; display: flex; flex-direction: column; 
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-left: 1px solid rgba(255,255,255,0.1); overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.cart-drawer.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 20px; }
.close-cart { background: none; border: none; color: var(--text-muted); font-size: 2rem; cursor: pointer; transition: color 0.2s; line-height: 1;}
.close-cart:hover { color: #fff; }
.cart-items { flex: 1; overflow-y: auto; margin-bottom: 20px; padding-right: 5px;}
.cart-item { 
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; 
    background: rgba(255,255,255,0.03); padding: 15px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05);
}
.item-remove { color: #ff4d4d; cursor: pointer; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; margin-top: 5px; }
.cart-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; padding-bottom: 40px; }

.co-input { 
    width: 100%; padding: 14px 16px; margin-bottom: 12px; border-radius: var(--radius-sm); 
    border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0,0,0,0.3); color: #fff; 
    outline: none; font-size: 1rem; transition: all 0.2s; 
}
.co-input::placeholder { color: #666; }
.co-input:focus { border-color: var(--primary); background: rgba(0,0,0,0.5); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05); }

.co-btn { 
    width: 100%; background: var(--primary); color: #000; font-weight: 900; font-size: 1.1rem;
    padding: 16px; border: none; border-radius: var(--radius-sm); cursor: pointer; 
    margin-top: 15px; text-transform: uppercase; transition: all var(--transition);
}
.co-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255,255,255,0.2); }

/* --- FOOTER & MODAL --- */
footer { background: #050505; padding: 60px 5% 30px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 80px;}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px;}
.footer-col h4 { text-transform: uppercase; margin-bottom: 20px; color: white; font-weight: 800; letter-spacing: 1px;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--primary); }
.modal { display: none; position: fixed; top:0; left:0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); z-index: 2000; align-items: center; justify-content: center;}
.modal-content { background: var(--bg-panel); padding: 40px; width: 90%; max-width: 600px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.1); max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.8);}

/* --- MOBIL-ANPASSNING --- */
@media (max-width: 768px) { 
    header { flex-wrap: wrap; gap: 15px; justify-content: space-between; padding: 15px; } 
    nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 10px; } 
    nav ul { justify-content: flex-start; gap: 20px; width: max-content; } 
    .hero { padding: 100px 20px; }
    .hero h1 { font-size: 2.8rem; } 
    .product-container { grid-template-columns: 1fr; margin: 40px auto; gap: 40px;} 
    .logo img, #main-logo { height: 52px !important; max-height: 52px !important; }
}
