.wc-custom-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Három oszlop */
    gap: 20px; /* Távolság az elemek között */
}

.wc-category-row {
    display: flex;
    gap: 20px;
}

.wc-row-4, .wc-row-3 {
    justify-content: space-between;
}

.wc-category-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%; /* Az elem a cellához igazodik */
}


.wc-row-3 .wc-category-item-link {
    width: calc(33.333% - 13.333px); /* For 3-column row */
}

.wc-category-item {
    position: relative;
    padding-top: 100%; /* Négyzet alak biztosítása */
    overflow: hidden;
    cursor: pointer;
}

.wc-category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.wc-category-item:hover .wc-category-image {
    transform: scale(1.05);
}

.wc-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 59.82%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 35px;
}

.wc-category-title {
    color: #fff;
    font-size: 26px;
    font-weight: 100;
    margin-bottom: 10px;
    font-family: "mundial", Sans-serif;
    letter-spacing: 1px;
}

.wc-category-custom-text {
    font-family: "mundial", Sans-serif;
    font-size: 17px;
    font-weight: 200;
    letter-spacing: 0.05px;
    margin-bottom: 0px;
    line-height: 22px;
    width: 90%;
    color: white;
}

.wc-category-custom-text {
    max-height: 100px;
    transform: translateY(0);
    margin-bottom: 0px;
    line-height: 22px;
    width: 90%;
    color: white;
}



.wc-category-content {
    display: flex;
    justify-content: space-between;
}

.wc-category-icon {
    display: flex;
    justify-content: center;
}

.wc-category-text {
    display: flex;
    flex-direction: column;
    flex: 14;
}

.wc-category-icon {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
}

.svghome {
    width: 30px;
    height: 30px;
    fill: #fff; /* White icon */
}

.wc-category-item:hover .wc-category-image {
    transform: scale(1.05);
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .wc-category-row {
        flex-wrap: wrap;
    }

    .wc-category-item-link,
    .wc-row-3 .wc-category-item-link {
        width: 100%;
    }
    
    .wc-category-title {
        font-size: 1.2em;
    }
    
    .wc-category-custom-text {
        font-size: 0.9em;
        width: 100%;
    }

    .wc-category-item {
        position: relative;
        padding-top: 0px;
        overflow: hidden;
        cursor: pointer;
        height: 350px;
    }
    .wc-category-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 350px;
        background-size: cover;
        background-position: center;
        transition: transform 0.3s ease;
    }

    .wc-category-custom-text {
        max-height: 100px;
        transform: translateY(0);
        transition: none;
    }
    

    .wc-category-image {
        transform: none;
        transition: none;
    }
    
    .wc-category-row.wc-row-4 {
        display: flex;
        flex-direction: column;
    }

    .wc-category-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgb(0 0 0 / 13%) 59.82%, rgba(0, 0, 0, 0.75) 100%);
        padding: 18px;
    }

    .wc-custom-category-grid {
        display: grid
    ;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

}


@media screen and (min-width: 820px) and (max-width: 1180px) {
    .wc-custom-category-grid {
        display: grid
    ;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}