@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f4f6f7;
    color: #222;
}

.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: 100;
}

.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);
}

.hero {
    text-align: center;
    background: url("/src/img/fotki.jpg") center/cover no-repeat;
    color: white;
    padding: 100px 20px;
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.45);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.catalog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px 10%;
}

.kategoria {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kategoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.kategoria img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid #a2ffb5;
}

.kategoria h3 {
    margin: 15px 0 5px;
    color: #1f3b4d;
    font-weight: 600;
}

.kategoria .reszletek {
    display: inline-block;
    background: #1f3b4d;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin: 15px auto 20px;
    width: fit-content;
    transition: all 0.3s ease;
}

.kategoria .reszletek:hover {
    background: #276567;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    color: #444;
    font-size: 1.2rem;
    padding: 40px;
}

footer {
    background: #1f3b4d;
    color: white;
    padding: 50px 10% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.footer-content h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-content a {
    color: #d6f2e7;
    display: block;
    margin-bottom: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-content a:hover {
    color: #a2ffb5;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}