.custom-categories {
    /*margin: 40px auto;*/
    padding: 0 20px 40px;
    background: #232323;
}

.custom-categories__heading {
    font-size: 1.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-top: 24px;
    color: var(--text-primary);
}

.custom-categories__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .custom-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .custom-categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.custom-container {
    @media (min-width: 768px) {
        max-width: 1024px;
        margin: 0 auto;
    }
}

/* === CARD === */
.custom-category-card {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-category-card__link {
    display: block;
}

/* box pro obrázek */
.custom-category-card__media {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* OPRAVDOVÝ FULLWIDTH/FULLHEIGHT OBRAZEK */
.custom-category-card__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

/* overlay + text pořád absolute */
.custom-category-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.custom-category-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 0 10px 10px;
    width: 100%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.custom-category-card__title {
    position: relative;
    display: inline-block;
    font-weight: 900;
    font-style: italic;
    color: #00d2ff; /* Modrá vepředu */
    z-index: 2;
    white-space: nowrap;
    line-height: 1;
}

.custom-category-card__title::after {
    content: attr(data-text);
    position: absolute;
    /* Větší posun černé dozadu, doprava a nahoru */
    left: 2px;
    top: -2px;
    z-index: -1; /* Bezpečně za modrou */
    color: #000;
    white-space: nowrap;
    pointer-events: none;
}

.custom-category-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

/* Hover efekt */
.custom-category-card__link:hover .custom-category-card__image {
    transform: scale(1.08);
}
