:root {
    --alapszin: #2b5c6b;
    --kiemelt: #5da67b;
    --feher: #ffffff;
    --hatter: #f4f8f7;
    --szoveg: #222222;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #f4f8f7 0%, #e8f2ef 100%);
    color: var(--szoveg);
}

.nav {
    font-family: 'Times New Roman', Times, serif;
    background: #1f3b4d;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 1.3rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links .active {
    color: #a2ffb5;
}

.active:hover {
    cursor: default;
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.8rem;
    transition: transform 0.2s ease;
}

.cart-btn:hover {
    transform: scale(1.1);
}

.termek-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    background: var(--feher);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.termek-container h1 {
    text-align: center;
    margin: 30px 0 10px;
    font-size: 2rem;
    color: var(--alapszin);
}

#termekKategoriaDiv {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.slider-container {
    width: 100%;
    height: 450px;
    position: relative;
    background: #ddd;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    transition: opacity 0.5s ease;
}

.slider-container img.active {
    display: block;
    opacity: 1;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    box-sizing: border-box;
}

.slider-controls button {
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-controls button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin: 14px 0 20px;
    gap: 10px;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots span.active {
    background: var(--alapszin);
}

#termekLeiras {
    padding: 0 20px 30px;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

#termekArDiv {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--kiemelt);
    text-align: center;
    margin-bottom: 20px;
}

#termekTermekKod {
    font-size: 1em;
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

#termekTermekStatusz .p1 {
    z-index: 99;
    position: absolute;
    top: 15px;
    right: 15px;
    border-radius: 50%;
    background-color: forestgreen;
    padding: 5px 10px;
    color: white;
    font-weight: 600;
}

#termekTermekStatusz .p {
    z-index: 99;
    position: absolute;
    top: 15px;
    right: 15px;
    border-radius: 50%;
    background-color: rgb(158, 35, 39);
    padding: 5px 10px;
    color: white;
    font-weight: 600;
}

.termekar {
    flex-direction: column;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    align-items: center;
}

.kosarba {
    border-radius: 10px;
    background-color: var(--kiemelt);
    padding: 7px;
    cursor: pointer;
    font-weight: 700;
}

.kosarba:hover {
    background-color: #4cae63;
}

.eredetiar {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

.akci {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--kiemelt);
}

#termekVideo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#termekVideo iframe {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@keyframes felbukkan {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .termek-container {
        margin: 30px 10px;
        padding: 10px;
    }

    .slider-container {
        height: 300px;
    }

    .nav-links {
        gap: 1rem;
        font-size: 1rem;
    }

    #termekLeiras {
        padding: 0 10px 20px;
        font-size: 0.95rem;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-tartalom {
    background: var(--feher);
    margin: 8% auto;
    padding: 20px 30px;
    border-radius: 16px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: felbukkan 0.4s ease;
}