.bpg-storefront-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem 1.25rem;
    margin-bottom: 1.25rem;
}

.bpg-storefront-heading h2 {
    margin: 0;
}

.bpg-all-products {
    display: inline-flex;
    align-items: center;
    gap: .65em;
    border: 1px solid #6a1686;
    border-radius: .25rem;
    padding: .65rem .9rem;
    background: #6a1686;
    color: #fff;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}

.bpg-all-products:hover {
    background: #54116b;
    color: #fff;
}

.bpg-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.bpg-category-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: #2d2033;
    text-decoration: none;
    border: 1px solid #dfd3e1;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
}

.bpg-category-card:hover,
.bpg-category-card:focus-visible {
    color: #671485;
    border-color: #a77cb3;
}

.bpg-category-card:focus-visible,
.bpg-all-products:focus-visible {
    outline: 2px solid #671485;
    outline-offset: 3px;
}

.bpg-category-cover {
    display: block;
    aspect-ratio: 1;
    background: #e8dbcb url("/assets/bpg-kategori-kapaklari.webp") var(--bpg-x) var(--bpg-y) / 400% 400% no-repeat;
}

.bpg-category-label {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .8rem .85rem;
    font-size: .84rem;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.bpg-category-label span:last-child {
    color: #671485;
    font-size: 1rem;
    flex: none;
}

@media (max-width: 850px) {
    .bpg-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 580px) {
    .bpg-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }

    .bpg-category-label {
        padding: .65rem;
        font-size: .77rem;
    }
}
