/* Image-led 5:4 cards only on the dedicated Categories page.
   Override historic numbered-card CSS without altering the Shop switcher
   or the six homepage features. */
.eshop-categories-page .eshop-category-directory .eshop-category-links--directory {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.75rem, 1.7vw, 1.1rem);
}
.eshop-categories-page .eshop-category-directory .eshop-category-links--directory .eshop-category-link--image {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    aspect-ratio: 5 / 4;
    width: 100%;
    min-height: 0;
    padding: clamp(.9rem, 2vw, 1.4rem);
    overflow: hidden;
    border: 1px solid rgba(255, 180, 207, .25);
    border-radius: .95rem;
    background-color: #3a1731;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease;
}
.eshop-categories-page .eshop-category-directory .eshop-category-links--directory .eshop-category-link--image::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, transparent 32%, rgba(15, 5, 15, .4) 62%, rgba(15, 5, 15, .87) 100%);
    pointer-events: none;
}
.eshop-categories-page .eshop-category-directory .eshop-category-links--directory .eshop-category-link--image::after {
    content: none;
    display: none;
}
.eshop-categories-page .eshop-category-directory .eshop-category-links--directory .eshop-category-link--image > span:first-child {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    max-width: none;
    color: white;
    font-size: clamp(1.05rem, 2vw, 1.75rem);
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.eshop-categories-page .eshop-category-directory .eshop-category-links--directory .eshop-category-link--image:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .22);
}
.eshop-categories-page .eshop-category-directory .eshop-category-links--directory .eshop-category-link--image:focus-visible {
    outline: 3px solid #ff93c0;
    outline-offset: 3px;
}
@media (max-width: 48rem) {
    .eshop-categories-page .eshop-category-directory .eshop-category-links--directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eshop-categories-page .eshop-category-directory .eshop-category-links--directory .eshop-category-link--image {
        min-height: 0;
        padding: .8rem;
    }
    .eshop-categories-page .eshop-category-directory .eshop-category-links--directory .eshop-category-link--image > span:first-child {
        font-size: clamp(.86rem, 3.1vw, 1.1rem);
    }
}
@media (max-width: 23rem) {
    .eshop-categories-page .eshop-category-directory .eshop-category-links--directory {
        grid-template-columns: 1fr;
    }
}
