.dk-category-grid {
    --dk-grid-gap: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--dk-grid-gap);
}

.dk-category-grid--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.dk-category-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dk-category-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dk-category-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dk-category-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dk-category-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.dk-category-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 192px !important;
    padding: 24px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background-color: #d9d9d9 !important;
    background-image: var(--dk-card-bg-image) !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    text-decoration: none !important;
    isolation: isolate !important;
}

.dk-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.14) 44%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.dk-category-card__overlay,
.dk-category-card__icon-wrap,
.dk-category-card__title {
    position: relative;
    z-index: 1;
}

.dk-category-card__icon-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px !important;
    background: rgb(255 255 255 / 70%) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.dk-category-card__icon {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
}

.dk-category-card__title {
    display: block !important;
    margin-top: auto !important;
    color: #ffffff !important;
    font-family: "Mulish", sans-serif !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}

.dk-category-card:hover,
.dk-category-card:focus,
.dk-category-card:active {
    text-decoration: none !important;
    color: inherit !important;
}

.dk-category-grid-empty {
    color: #111111;
    font-family: "Mulish", sans-serif !important;
    font-weight: 500 !important;
}

@media (max-width: 1024px) {
    .dk-category-grid,
    .dk-category-grid--cols-4,
    .dk-category-grid--cols-5,
    .dk-category-grid--cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dk-category-card__title {
        font-size: 15px !important;
        font-weight: 500 !important;
    }
}

@media (max-width: 767px) {
    .dk-category-grid,
    .dk-category-grid--cols-3,
    .dk-category-grid--cols-4,
    .dk-category-grid--cols-5,
    .dk-category-grid--cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dk-category-card {
        min-height: 170px !important;
        padding: 18px !important;
    }

    .dk-category-card__title {
        font-size: 14px !important;
        font-weight: 500 !important;
    }
}

@media (max-width: 479px) {
    .dk-category-grid {
        gap: 12px;
    }

    .dk-category-card {
        min-height: 156px !important;
        padding: 16px !important;
    }

    .dk-category-card__icon-wrap {
        width: 36px !important;
        height: 36px !important;
    }

    .dk-category-card__icon {
        width: 20px !important;
        height: 20px !important;
    }

    .dk-category-card__title {
        font-size: 13px !important;
        font-weight: 500 !important;
    }
}
