/* Product Categories Grid */
.sk-product-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
    position: relative; /* Potrzebne dla poprawnego obliczania wysokości */
    opacity: 0; /* Początkowo ukryty, pokaże się po załadowaniu */
transition: opacity 0.3s ease;
}

/* Category Item */
.sk-category-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    padding-bottom: 100%; /* To zapewnia kwadratowy kształt */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    box-sizing: border-box; /* Zapewniamy, że padding i border są wliczane w wymiary */

}

.sk-category-item:hover {
    transform: translateY(-5px);
}

/* Category Link */
.sk-category-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

/* Category Image */
.sk-category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

/* Category overlay for better text visibility */
.sk-category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

/* Category Name */
.sk-category-name {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 3;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    padding: 5px 10px;
    color: #fff;
    transition: all 0.2s ease;
}

/* Arrow styling */
.sk-category-arrow {
    display: inline-block;
    margin-left: 5px;
}

/* Hover effect for category name */
.sk-category-link:hover .sk-category-name {
    text-decoration: underline;
    color: #fff;
}
/* Loader Styles */
.sk-categories-loader {
    position: relative;
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.sk-categories-loader-tile {
    width: 100px;
    height: 100px;
    background: linear-gradient(90deg, #f2f2f2, #e6e6e6, #f2f2f2);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.sk-categories-loader-tile::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}
/* Responsive adjustments */
/* Tablet View - Exactly 2 items per row */
@media (max-width: 1024px) {
    .sk-product-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile View - Exactly 2 items per row */
@media (max-width: 767px) {
    .sk-product-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .sk-category-arrow svg{
        height:11px;
    }
    
    .sk-category-name {
        font-size: 18px;
        bottom: 10px;
        left: 10px;
    }
}

/* Small Mobile Devices - Still 2 per row but smaller */
@media (max-width: 480px) {
    .sk-product-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sk-category-name {
        font-size: 15px;
        padding: 3px 6px;
    }
}