/* ==========================================================
   CATEGORY SHOWCASE — compact illustrated tiles
========================================================== */

.category-showcase {
    background: color-mix(in srgb, #f6f1e6 70%, #ffffff);
}

.category-showcase__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 24px;
    margin: 0 0 0.85rem;
}

.category-showcase__title {
    margin: 0;
    color: #3f342c;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 750;
    line-height: 1.2;
}

.category-showcase__view-all {
    flex: 0 0 auto;
    color: var(--action-primary-fill, #2f6b3b);
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.category-showcase__view-all:hover,
.category-showcase__view-all:focus-visible {
    color: #245c28;
    text-decoration: underline;
}

.category-showcase__view-all:focus-visible {
    outline: 2px solid #2f6b3b;
    outline-offset: 3px;
}

.category-showcase__scroller {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.category-showcase__scroller:focus-visible {
    outline: 2px solid #2f6b3b;
    outline-offset: 4px;
}

.category-showcase__row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 2px 2px 8px;
    list-style: none;
}

.category-showcase__tile {
    display: flex;
    flex: 0 0 108px;
    min-width: 108px;
}

.category-showcase__link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    height: 132px;
    min-height: 132px;
    max-height: 132px;
    padding: 0.65rem 0.4rem 0.5rem;
    border: 1px solid color-mix(in srgb, #6b4423 10%, #efe6d6);
    border-radius: 12px;
    background: #fbf7ef;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.category-showcase__link:hover,
.category-showcase__link:focus-visible {
    border-color: color-mix(in srgb, #2f6b3b 35%, #efe6d6);
    background: #ffffff;
    transform: translateY(-2px);
}

.category-showcase__link:focus-visible {
    outline: 2px solid #2f6b3b;
    outline-offset: 2px;
}

.category-illustration {
    display: grid;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin: 0 0 0.4rem;
    place-items: center;
}

.category-illustration svg {
    display: block;
    width: 48px;
    height: 48px;
}

.category-showcase__name {
    display: -webkit-box;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 2.7em;
    max-height: 2.7em;
    color: #3f342c;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 0.9rem;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

@media (min-width: 1280px) {
    .category-showcase__tile {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .category-showcase__tile {
        flex: 0 0 96px;
        min-width: 96px;
    }

    .category-showcase__link {
        height: 124px;
        min-height: 124px;
        max-height: 124px;
        padding: 0.5rem 0.3rem 0.4rem;
    }

    .category-illustration {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        margin-bottom: 0.3rem;
    }

    .category-illustration svg {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-showcase__link {
        transition: none;
    }

    .category-showcase__link:hover,
    .category-showcase__link:focus-visible {
        transform: none;
    }
}
