@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #eaf3ff;
    color: #1a2332;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    height: 72px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0055ff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #3a4a5c;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0055ff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0055ff;
    border-radius: 2px;
}


.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #1a2332;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


.hero {
    background: linear-gradient(135deg, #eaf3ff 0%, #d6e6ff 100%);
    padding: 60px 8% 48px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #002b80;
    margin-bottom: 12px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
    color: #5a6a7e;
    font-size: 1.05rem;
}


.filter-section {
    padding: 32px 8% 0;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid #d0ddf0;
    background: #ffffff;
    color: #3a4a5c;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
}

.filter-tab:hover {
    border-color: #0055ff;
    color: #0055ff;
}

.filter-tab.active {
    background: #0055ff;
    border-color: #0055ff;
    color: #ffffff;
}


.products-section {
    padding: 32px 8% 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.products-empty {
    grid-column: 1 / -1;
    padding: 40px 0;
    color: #5a6a7e;
    text-align: center;
}


.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 85, 255, 0.12);
}

.product-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f4fa;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    background: #eaf3ff;
    color: #0055ff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.product-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 8px;
}

.product-card-body p {
    font-size: 0.9rem;
    color: #5a6a7e;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-objednat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    background: #0055ff;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-objednat:hover {
    background: #0044cc;
    transform: translateY(-1px);
}

.btn-objednat svg {
    width: 16px;
    height: 16px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #2ecc71;
    font-weight: 500;
}

.stock-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
}

.stock-badge.low .dot {
    background: #f39c12;
}

.stock-badge.low {
    color: #f39c12;
}

.info-bar {
    background: #ffffff;
    padding: 48px 8%;
    text-align: center;
    border-top: 1px solid #e0e8f5;
}

.info-bar h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #002b80;
    margin-bottom: 8px;
}

.info-bar p {
    max-width: 550px;
    margin: 0 auto 24px;
    color: #5a6a7e;
    font-size: 0.95rem;
}

.info-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

.info-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a2332;
}

.info-contact-item svg {
    width: 20px;
    height: 20px;
    color: #0055ff;
    flex-shrink: 0;
}

.info-contact-item a {
    color: #0055ff;
    font-weight: 600;
    transition: color 0.2s;
}

.info-contact-item a:hover {
    color: #0044cc;
}


.footer {
    background: #0a1628;
    color: #8899b0;
    text-align: center;
    padding: 28px 8%;
    font-size: 0.85rem;
}

.footer span {
    color: #0055ff;
    font-weight: 600;
}


.product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardIn 0.4s ease forwards;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }


@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 24px 8%;
        gap: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero {
        padding: 40px 6% 32px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .filter-section {
        padding: 24px 6% 0;
    }

    .products-section {
        padding: 24px 6% 48px;
    }

    .info-contacts {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}
