.apg-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.apg-filter-pill {
    background-color: #f5f5f5;
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.apg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    transition: opacity 0.3s ease;
}

.apg-grid.apg-loading {
    opacity: 0.5;
    pointer-events: none;
}

.apg-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
}

.apg-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.apg-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-color: #f9f9f9;
    overflow: hidden;
}

.apg-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apg-card:hover .apg-card-img-wrap img {
    transform: scale(1.05);
}

.apg-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.apg-card-cats {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.apg-card-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 600;
}

.apg-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.apg-card-title a:hover {
    color: #000;
}

.apg-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.apg-card-action {
    margin-top: auto;
}

.apg-card-action .button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #111;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.apg-card-action .button:hover {
    background-color: #333;
}

.apg-empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}
