@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;1,600&family=Nunito:wght@400;700&display=swap');

:root {
    --alapszin: #276567;
    --kiemelt: #1b4e5a;
    --hatter: #f5f7f8;
    --szoveg: #343A40;
    --feher: #fff;
    --arany: #d4af37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--hatter);
    font-family: 'Nunito', sans-serif;
    color: var(--szoveg);
}

.szurok {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    flex-wrap: wrap;
}

.szurok input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s;
}

.szurok input:focus {
    border-color: var(--alapszin);
    outline: none;
    box-shadow: 0 0 5px var(--alapszin);
}

.szurok button {
    background-color: var(--alapszin);
    color: var(--feher);
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.szurok button:hover {
    background-color: var(--kiemelt);
    transform: scale(1.05);
}

.termek-katalogus {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 20px;
    justify-content: center;
}

.termek {
    background-color: var(--feher);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.termek:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.termek img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: 220px;
    transition: transform 0.5s ease;
}

.termek:hover img {
    transform: scale(1.05);
}

.termek-informacio {
    text-align: center;
    margin-top: 10px;
}

.termek h2 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 5px;
}

.termek>.p {
    z-index: 99;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    background-color: rgb(158, 35, 39);
    padding: 5px 10px;
    color: white;
    font-weight: 600;
}

.termek>.p1 {
    z-index: 99;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    background-color: forestgreen;
    padding: 5px 10px;
    color: white;
    font-weight: 600;
}

.termek p {
    font-weight: 600;
    color: var(--arany);
}

.kosarba {
    position: absolute;
    bottom: -50px;
    right: 15px;
    background-color: var(--alapszin);
    color: var(--feher);
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    opacity: 0;
    transition: all 0.4s ease;
}

.termek:hover .kosarba {
    bottom: 15px;
    opacity: 1;
}

.kosarba:hover {
    background-color: var(--kiemelt);
    transform: scale(1.05);
}

.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;
}

@keyframes felbukkan {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal .bezaro {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: var(--szoveg);
    transition: color 0.2s;
}

.modal .bezaro:hover {
    color: var(--alapszin);
}

.eredeti-ar {
    text-decoration: line-through;
    color: #888;
    margin-right: 8px;
}

.akcios-ar {
    color: var(--arany);
    font-weight: 700;
}