/**
 * Category Blocks - Frontend Styles
 *
 * @author    Custom
 * @copyright 2026
 */

/* Container wrapper */
.categoryblocks-wrapper {
    margin-bottom: 0;
    max-width: 1350px;
    padding-left: 0;
    padding-right: 0;
}

/* Row without gutters */
.categoryblocks-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}
@media (max-width: 767px) {
    .categoryblocks-row {
        justify-content: center;
        gap: 10px;
    }
}

/* Block item - no padding between blocks */
.categoryblock-item {
    padding: 0;
}

/* Block link container */
.categoryblock-link {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Block image */
.categoryblock-img {
    width: 100%;
    height: auto;
    max-height:650px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
}

/* Text overlay */
.categoryblock-overlay {
    position: absolute;
    bottom: 76px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    pointer-events: none;
    z-index: 2;
}

/* Category name text */
.categoryblock-name {
    font-family: 'Helvetica Neue', sans-serif;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.36px;
}

/* "Zobacz" button */
.categoryblock-btn {
    font-family: 'Helvetica Neue', sans-serif;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    padding-bottom: 2px;
    pointer-events: auto;
    position: relative;
}
.categoryblock-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.categoryblock-link:hover .categoryblock-btn::after {
    transform: scaleX(0);
}

/* Hover effect - zoom and brighten */
.categoryblock-link:hover .categoryblock-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .categoryblock-img {
        height: 520px;
    }

    .categoryblock-overlay {
        bottom: 40px;
        gap: 14px;
    }

    .categoryblock-name {
        font-size: 24px;
    }

    .categoryblock-btn {
        font-size: 14px;
    }
}
