/* 1. ALAPOK ÉS VÁLTOZÓK */
:root { 
    --bg: #0a1120; 
    --card: #161e31; 
    --accent: #38bdf8; 
    --border: rgba(255,255,255,0.08); 
    --text-muted: #94a3b8;
}

html, body {
    margin: 0; padding: 0; width: 100%; height: 100%;
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: white; 
    overflow: hidden; /* Garantálja, hogy ne legyen görgetés */
}

/* 2. FEJLÉC (HEADER) */
.main-header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(10, 17, 32, 0.95);
    border-bottom: 1px solid var(--border);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.logo-group { display: flex; align-items: center; cursor: pointer; }

.logo-box {
    width: 45px;
    height: 45px;
    padding: 0; /* Kivesszük a fix paddingot, mert a Flexbox fogja középre tenni */
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border);
    box-sizing: border-box;
    
    /* ÚJ: Középre igazítás */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Biztosítja, hogy ne lógjon ki semmi */
}

.logo-box img {
    width: 75%;  /* Itt tudod növelni az NX ikon méretét (próbáld ki: 70-80% között) */
    height: auto;
    display: block;
}



.logo-text {
    font-size: 1.6rem; /* 2rem-ről 1.6-ra */
    font-weight: 800;
    margin-left: 12px;
    color: white;
}

.logo-text span { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 25px; margin-left: auto; }

/* ÜZENET GOMB - A KÉK KERETES KAPCSOLÓ */
#messageBtn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 50px; height: 40px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.3rem; transition: all 0.2s ease;
}

#contactBtn { background: transparent; border: none; color: var(--text-muted); font-weight: 600; cursor: pointer; }
#contactBtn:hover { color: var(--accent); }

.styled-select {
    background: var(--card); color: white; border: 1px solid var(--border);
    padding: 8px 12px; border-radius: 10px; font-weight: 700; cursor: pointer;
}

/* 3. HERO SZEKCIÓ - A RÉGI STABIL ALAP */
#app {
    width: 100%;
    height: 100%;
}

.hero {
    height: 100vh; /* Ez kényszeríti ki a teljes kitöltést */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(10, 17, 32, 0.6), rgba(10, 17, 32, 0.7)), 
                url('../images/b2b-hero.jpg') no-repeat center center;
    background-size: cover;
    box-sizing: border-box;
    padding-top: 120px; /* Helyet hagy a fejlécnek */
}

.hero-title {
    font-size: 5.5rem; /* 6.5-ről 5.5-re (kicsit kisebb, de elegánsabb) */
    font-weight: 800;
    margin: 0 0 5px 0;
    letter-spacing: 10px; /* Szellős betűköz */
    line-height: 1;
    color: #ffffff;
    text-transform: uppercase
   
}

.hero-title span {
    color: var(--accent) !important; /* Ez a #38bdf8 kék */
    display: inline-block;
}

.hero-sub {
    font-size: 1.2rem; /* 1.4-ről 1.6-ra */
    color: white;
    margin-bottom: 45px;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-btns {
    display: flex;
    gap: 30px;
    justify-content: center; /* EZ HIÁNYZOTT: Középre teszi a gombokat */
    width: 100%;
}

.cta-btn {
    padding: 0 30px;
    height: 48px; /* Kicsit kisebb és elegánsabb gombok */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    min-width: 180px; /* 220-ról 180-ra */
    text-transform: uppercase;
}

.primary-btn { background: var(--accent); color: black; }
.secondary-btn { background: transparent; border: 2px solid var(--accent); color: var(--accent); }

/* 4. MODALOK */
.modal-overlay { 
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); 
    z-index: 5000; align-items: center; justify-content: center; backdrop-filter: blur(10px); 
}
.modal-card {
    background: var(--card);
    padding: 40px 50px; /* Megemelt oldalsó belső távolság */
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    box-sizing: border-box; /* Ez fontos, hogy ne lógjon ki */
}

.x-close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; opacity: 0.6; }
.finalbuybtn { background: var(--accent); color: black; border: none; padding: 15px; border-radius: 10px; font-weight: 800; cursor: pointer; }

/* 5. LÁBLÉC - FIXEN AZ ALJAN (AHOGY RÉGEN JÓ VOLT) */
.main-footer {
    position: fixed; bottom: 0; width: 100%; height: 60px;
    display: grid; /* Flex helyett Grid-et használunk a tökéletes harmadoláshoz */
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    padding: 0 5%; 
    background: rgba(10, 17, 32, 0.95); 
    border-top: 1px solid var(--border);
    font-size: 0.75rem; color: var(--text-muted); 
    box-sizing: border-box;
    z-index: 1000;
}

/* A jobb oldali szöveget jobbra zárjuk */
.footer-right {text-align: right;}

.footer-center { display: flex; align-items: center; }
.footer-center span { cursor: pointer; padding: 0 5px; transition: 0.2s; }
.footer-center span:hover { color: var(--accent); }

/* BELSŐ FORM STÍLUSOK */
.auth-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
input, textarea { width: 100%; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: white; box-sizing: border-box; }

/* SHOP STÍLUSOK */
.shop-card {
    background: #1e293b; /* Sötétkék háttér */
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #334155;
    color: white;
}
.buy-btn {
    background: #38bdf8; /* A képen látható világoskék */
    color: #0f172a;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
}
.blue-text { color: #38bdf8; }

/* Alapbeállítások a sötét módhoz */
body {
    background-color: #0f172a;
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Oldalsáv (Sidebar) */
.sidebar {
    width: 280px;
    background: #1e293b;
    padding: 30px;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
}

/* Fő tartalom rész */
.main-content {
    flex: 1;
    padding: 40px;
    background: #0f172a;
}

/* Termék rács - ez teszi egymás mellé a kártyákat */
#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Felhasználói kártya (Bejelentkezve...) */
.user-card-mini {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #334155;
    margin-top: auto; /* Alulra tolja a sidebarban */
}

/* Navigációs linkek */
nav ul { list-style: none; padding: 0; }
nav li {
    padding: 12px 0;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.3s;
}
nav li:hover { color: #38bdf8; }

.sidebar-btn {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-weight: bold;
    transition: 0.3s;
}
.sidebar-btn:hover { background: #334155; }

/* Fejléc elrendezése sorba */
.shop-header {
    background: #0f172a;
    border-bottom: 1px solid #334155;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Balról jobbra sorolja */
    gap: 20px;
}

/* Különálló szeparált kártyák a sidebarban */
.sidebar-card {
    background: #1e293b;
    border-radius: 16px; /* Szép lekerekítés */
    padding: 20px;
    margin-bottom: 20px; /* Szeparáció a két blokk között */
    border: 1px solid #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Kategória lista címe */
.category-title {
    color: #38bdf8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
}

/* Formázott választók a fejlécben */
.styled-select {
    background: #1e293b;
    color: white;
    border: 1px solid #334155;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
}

.buy-btn {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: 0.3s;
}
.buy-btn:hover { opacity: 0.8; }


.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: #1e293b;
    z-index: 1001;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active { right: 0; }
.cart-overlay.active { display: block; }

/* KOSÁR OLDALSÁV STÍLUSA */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 380px;
    height: 100vh;
    background: #0f172a; /* Mélyfekete/sötétkék háttér */
    z-index: 2000;
    transition: 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #1e293b;
    color: white;
}

.cart-sidebar.active { right: 0; }

/* FEJLÉC ÉS LÁBLÉC A PANELBEN */
.cart-header {
    padding: 25px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 25px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
}

/* ÖSSZESEN SOR */
.total-display {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* RENDELÉS LEADÁSA GOMB */
#submit-order-btn {
    background: #38bdf8;
    color: #0f172a;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}
.header-content {
    display: flex;
    justify-content: space-between; /* Széttolja az elemeket: Logó | Kereső | Ikonok */
    align-items: center;
    width: 100%;
    max-width: 1400px; /* Vagy amennyit a designod enged */
    margin: 0 auto;
}

.sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto; /* Ez engedélyezi a függőleges görgetést a sidebaron belül */
    scrollbar-width: thin; /* Modern böngészőkben vékonyabb görgetősáv */
    scrollbar-color: #334155 transparent;
}

/* Hogy ne érjenek össze a blokkok görgetéskor */
.sidebar-card:last-child {
    margin-bottom: 50px; 
}

/* Sidebar görgethetővé tétele */
.sidebar {
    height: 100vh;
    overflow-y: auto; /* Itt engedélyezzük a görgetést */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Távolság a User kártya és a Kategória kártya között */
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

/* Kategória lista elemei */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 10px 15px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.category-list li:hover {
    background: #0f172a;
    color: #38bdf8;
}

.category-list li.active {
    background: #0f172a;
    color: #38bdf8;
    font-weight: bold;
    border-left: 3px solid #38bdf8;
}

/* A sidebar hátterének eltüntetése */
.sidebar {
    width: 300px;
    background: transparent; /* Eltüntetjük a nagy kocka hátterét */
    padding: 20px;
    border: none; /* Levesszük a szélső keretet */
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Ez adja a távolságot a két kártya között */
}

/* A kártyák (blokkok) stílusa */
.sidebar-card {
    background: #1e293b; /* Csak a kis kártyáknak van háttere */
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

/* A fő tartalom (ahol a termékek vannak) háttere marad sötét */
.app-container {
    background-color: #0f172a;
    display: flex;
}



/* =============================================== ARCHIVEBÓLPRÓBA============================================= */

.side-btn { width: 100%; border: none; padding: 12px; border-radius: 10px; font-weight: 800; cursor: pointer; margin-bottom: 10px; }
.action-btn { background: var(--accent); color: black; }
.logout-btn-framed { width: 100%; background: none; border: 1px solid #ef4444; color: #ef4444; padding: 10px; border-radius: 10px; font-weight: 700; cursor: pointer; }




/* CART */
.cart-panel { 
    position: fixed; right: -420px; top: 0; width: 400px; height: 100%; 
    background: #0c1425; border-left: 1px solid var(--border); z-index: 2000; transition: 0.4s; display: flex; flex-direction: column; 
}
.cart-panel.active { right: 0; }
.cart-header { padding: 25px; border-bottom: 1px solid var(--border); }
.cart-body { flex: 1; overflow-y: auto; padding: 25px; }
.cart-footer { padding: 30px; border-top: 1px solid var(--border); background: #080e1a; }
.total-line { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.4rem; margin-bottom: 20px; }

.final-buy-btn { width: 100%; background: var(--accent); color: black; border: none; padding: 16px; border-radius: 12px; font-weight: 800; cursor: pointer; }
.cart-btn { background: var(--card); border: 1px solid var(--accent); color: white; padding: 10px 15px; border-radius: 8px; cursor: pointer; }

footer { padding: 40px; text-align: center; color: var(--text-muted); font-size: 0.8rem; border-top: 1px solid var(--border); margin-top: 50px; }

/* SHOP ÜZENET GOMB PRÓBA */
#shop-msg-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    width: 50px; height: 40px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.3rem; transition: all 0.2s ease;
}




