.pl-categories-grid-wrap {
    margin: 30px 0;
}

.pl-categories-grid-title {
    margin: 0 0 18px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 500;
    color: #43482c;
}

.pl-categories-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    grid-auto-flow: dense;
    grid-auto-rows: 220px;
}

.pl-category-card {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f6f4ef;
    border-radius: 6px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    min-width: 0;
}

.pl-category-card__image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ece9e2;
}

.pl-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.pl-category-card:hover .pl-category-card__image img {
    transform: scale(1.04);
}

.pl-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,.08) 55%, rgba(0,0,0,0));
}

.pl-category-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 18px 18px 16px;
    color: #fff;
}

.pl-category-card__name {
    margin: 0;
    font-size: 22px;
    line-height: 1.12;
    font-weight: 500;
    color: #fff;
}

.pl-category-card__count {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.2;
    opacity: .95;
    color: #fff;
}

.pl-category-card__corner {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 26px;
    height: 26px;
    background: #7b8844;
    transform: rotate(45deg);
    opacity: .95;
    z-index: 2;
}

/* Grid span klasės */
.pl-category-card.col-12 { grid-column: span 12; }
.pl-category-card.col-6  { grid-column: span 6; }
.pl-category-card.col-4  { grid-column: span 4; }
.pl-category-card.col-3  { grid-column: span 3; }

.pl-category-card.row-1  { grid-row: span 1; }
.pl-category-card.row-2  { grid-row: span 2; }

.pl-category-card.col-6.row-1 {
    grid-row: span 2;
}

/* Responsive */
@media (max-width: 1200px) {
    .pl-categories-grid {
        grid-auto-rows: 200px;
    }
}

@media (max-width: 1024px) {
    .pl-categories-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: 180px;
        gap: 16px;
    }

    .pl-category-card.col-12 { grid-column: span 6; }
    .pl-category-card.col-6  { grid-column: span 3; }
    .pl-category-card.col-4  { grid-column: span 3; }
    .pl-category-card.col-3  { grid-column: span 2; }
}

@media (max-width: 767px) {
    .pl-categories-grid-title {
        font-size: 26px;
    }

    .pl-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 170px;
        gap: 14px;
    }

    .pl-category-card.col-12,
    .pl-category-card.col-6,
    .pl-category-card.col-4,
    .pl-category-card.col-3 {
        grid-column: span 2;
    }

    .pl-category-card.row-2 {
        grid-row: span 1;
    }

    .pl-category-card__name {
        font-size: 18px;
    }
}
