/* ===== HOMEPAGE CATEGORIES GRID ===== */

.homepage-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.category-tile {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-decoration: none;
}

.category-tile__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}


.category-tile__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;  
    justify-content: flex-start;
  padding: 40px 50px;
    padding: 30px 20px;
    transition: background 0.3s ease;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100% );
}

.category-tile__name {
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    text-align: left;
    text-transform: uppercase;
    margin: 0;
    z-index: 1;
    transition: transform 0.3s ease;
}

.category-tile:hover .category-tile__name {
    transform: translateY(-5px);
}

/* Mobile - 1 kolumna poniżej 480px */
@media (max-width: 480px) {
    .homepage-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tile__name {
        font-size: 20px;
    }
    
    .category-tile__overlay {
        padding: 20px 15px;
    }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .category-tile__name {
        font-size: 22px;
    }
}
