.site-header {
	background: rgba(107, 78, 255, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	text-align: center;

	height: 105px;
	padding: 0 30px;

	align-items: center;
	justify-content: space-between;
	
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header nav {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.site-header nav a {
	color: #fff;
	font-weight: 500;
	padding: 6px 16px;
	border-radius: 999px;
	transition: background .25s;
}

.site-header nav a:hover {
	background: rgba(255,255,255,.25);
}

/* Kosár gomb */
.cart-wrapper {
	display: flex;
	justify-content: flex-end;
	position: relative;
	margin-bottom: 5px;
}

#cart-toggle {
	background: #fff;
	color: var(--purple);
	border: none;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--shadow);
}
.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0px;
}
.nav {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 2000;
}

.nav-item {
    position: relative;
    cursor: pointer;
}

.dropbtn {
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    color: #333;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    padding: 8px 0;
    z-index: 9999;
}

.dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #ede9ff;
}

.nav-item:hover .dropdown-content {
    display: block;
}

.nav-item > span {
    color: #fff;
    font-weight: 600;
}

.nav .dropdown-content a {
    color: #333;
}


/* JOBB OLDAL */
.user-nav {
	display: flex;
	gap: 15px;
}

.user-nav a {
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}

.user-nav a:hover {
	text-decoration: underline;
}

.user-nav .dropdown-content a {
    color: #333;
}

.user-nav .dropdown-content {
    left: auto;
    right: 0;
}

.user-nav .nav-item {
    position: relative;
}


.logo {
    position: absolute;
    bottom: 12px;        /* az alsó vonal fix a headerhez képest */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.logo a {
    display: block;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;

    line-height: 1;
    transform-origin: bottom; /* EZ a LÉNYEG */
}

.modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.6);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.modal.active {
	display: flex;
}

.modal-box {
	background: #fff;
	padding: 30px;
	border-radius: 18px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 15px 40px rgba(0,0,0,.3);
	position: relative;
	
    color: #2d2d2d;
}

.modal-box h2 {
	text-align: center;
	color: #6b4eff;
	margin-bottom: 20px;
}

.modal-close {
	position: absolute;
	top: 12px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.modal-error {
	color: #d6002f;
	margin-top: 10px;
	text-align: center;
	font-weight: 600;
}

.user-btn {
    background: none;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
}

/*
* {
    outline: 1px solid rgba(255,0,0,.15);
}
*/


.env-warning {
    background: repeating-linear-gradient(
        45deg,
        #d6002f,
        #d6002f 10px,
        #ff4d6d 10px,
        #ff4d6d 20px
    );
    color: #fff;
    text-align: center;
    padding: 2px;
    font-weight: 800;
    font-size: 24px;
    text-transform: uppercase;

    position: sticky;
    top: 0;
    z-index: 9999;
}


/*
login
*/


.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

/* Belépés gomb */
.btn-primary {
    background: #6b4eff;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex-grow: 1;           /* szélesebb lesz */
    max-width: 65%;         /* ne nyomja ki a linket */
}

/* hover */
.btn-primary:hover {
    background: #593de0;
}

/* Regisztráció link */
.link-right {
    margin-left: 15px;
    font-size: 14px;
    color: #6b4eff;
    text-decoration: none;
    white-space: nowrap;
}

.link-right:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        max-width: 100%;
    }

    .link-right {
        margin-left: 0;
        margin-top: 10px;
        text-align: right;
    }
}
