.fpg-search {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#fpg-search-input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 60%;
    max-width: 400px;
    min-width: 150px;
}

#fpg-search-btn {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.fpg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    justify-items: center;
}

.fpg-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 220px;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background-color: #efefef;
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.03) 75%),
        linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.03) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fpg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.fpg-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.fpg-img.placeholder {
    background: #ddd;
}

.fpg-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

#fpg-load-more {
    margin: 20px auto;
    display: block;
    padding: 8px 20px;
    border-radius: 8px;
    background: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* ---- mobilné zobrazenie: input nad tlačidlom ---- */
@media (max-width: 800px) {
    .fpg-search {
        flex-direction: column;
        flex-wrap: nowrap;  /* <- dôležité */
        align-items: center;
    }

    #fpg-search-input {
        width: 90%;
    }

    #fpg-search-btn {
        margin-top: 10px;
        width: auto;
        align-self: center;
    }
}
