@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background-color: #f2f0f7;
    color: #2e2840;
}

/* HLAVIČKA */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10%;
    background: #2e2840;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    flex-wrap: wrap;
    gap: 12px;
}

.NEX-back {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    padding-right: 60px;
    text-decoration: none;
}

.logo h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    padding-right: 60px;
}

/* NAVIGACE */
nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0;
}

nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

nav ul li { display: inline-block; }

nav ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-weight: 700;
    font-size: 14px;
    padding: 7px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
}

nav ul li a:hover {
    color: #fff;
    background: rgba(167,139,250,0.2);
}

/* SIGN UP */
nav ul li.signup {
    margin-left: 20px;
}

nav ul li.signup a {
    background-color: #a78bfa;
    color: #1a1035;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease, transform 0.2s ease;
}

nav ul li.signup a:hover {
    background-color: #7c3aed;
    color: #fff;
    transform: translateY(-2px);
}

/* MAIN */
main {
    padding: 0 10% 60px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2e2840;
    font-weight: 800;
}

/* GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
    max-width: 100%;
    margin: auto;
}

/* PRODUKTOVÉ KARTY */
.product {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #e0dbf0;
    box-shadow: 0 3px 14px rgba(100,60,200,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
    display: block;
}

.batch-badge {
    display: block;
    margin: 8px auto 0;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.batch-TOP { background: #7c3aed; color: #fff; }
.batch-11 { background: #7c3aed; color: #fff; }
.batch-MID { background: #6d7280; color: #fff; }
.batch-AGRADE { background: #059669; color: #fff; }
.batch-LOW { background: #d97706; color: #fff; }
.batch-BUDGET { background: #dc2626; color: #fff; }

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(124,58,237,0.18);
    border-color: #a78bfa;
}

.product img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    background: #f8f6ff;
    display: block;
}

.product:hover img {
    transform: scale(1.05);
}

.product h3 {
    font-size: 18px;
    margin: 14px 0 8px;
    color: #2e2840;
    font-weight: 700;
}

.price {
    font-size: 16px;
    font-weight: 800;
    color: #7c3aed;
}

.product a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px 10%;
    background: #2e2840;
    margin-top: 40px;
}

.kon1 {
    color: #a78bfa;
    font-size: 20px;
    margin-bottom: 10px;
}

.kon2 {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.7;
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
}

/* RESPONSIVITA */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 16px 5%;
        text-align: center;
    }

    .NEX-back {
        padding-right: 0;
        font-size: 28px;
    }

    nav ul {
        display: none;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
        width: 100%;
    }

    .mobile-nav select {
        padding: 10px;
        font-size: 15px;
        border-radius: 10px;
        border: none;
        background: rgba(167,139,250,0.15);
        color: #fff;
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        width: 90%;
        max-width: 400px;
    }

    .mobile-signup {
        background-color: #a78bfa;
        color: #1a1035;
        padding: 10px 24px;
        font-weight: 800;
        border-radius: 25px;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        font-size: 13px;
        transition: background 0.3s ease;
    }

    .mobile-signup:hover {
        background-color: #7c3aed;
        color: #fff;
    }

    main {
        padding: 0 5% 40px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px 0;
    }

    .product {
        padding: 12px;
    }

    .product img {
        height: 160px;
    }

    .product h3 {
        font-size: 14px;
    }

    .price {
        font-size: 13px;
    }

    h2 {
        font-size: 26px;
    }

    .footer {
        padding: 24px 5%;
        margin-top: 20px;
    }

    nav ul li.signup {
        margin-left: 0;
    }
}
