/* Gacha Treasure Suite - Quick Categories mobile v2. */

.gts-quick-categories {
    margin: 0 0 1.75rem;
}

.gts-quick-categories__list {
    display: grid;
    grid-template-columns: repeat(var(--gts-quick-categories-count, 6), minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gts-quick-categories__item {
    min-width: 0;
    margin: 0;
}

.gts-quick-categories__link {
    display: flex;
    min-height: 122px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid rgba(15, 141, 150, 0.18);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #eefafb);
    box-shadow: 0 5px 14px rgba(17, 24, 39, 0.08);
    color: #0d5960;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gts-quick-categories__image {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 141, 150, 0.1);
}

.gts-quick-categories__icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.gts-quick-categories__label {
    display: block;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.gts-quick-categories__link:focus-visible {
    outline: 3px solid #0f8d96;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .gts-quick-categories__link:hover {
        transform: translateY(-3px);
        border-color: #0f8d96;
        box-shadow: 0 10px 20px rgba(15, 141, 150, 0.2);
    }
}

@media screen and (max-width: 1024px) {
    .gts-quick-categories__list {
        grid-template-columns: repeat(min(4, var(--gts-quick-categories-count, 4)), minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .gts-quick-categories {
        margin-bottom: 1.25rem;
    }

    .gts-quick-categories__list {
        display: flex;
        gap: 10px;
        margin-right: -1rem;
        margin-left: -1rem;
        padding: 2px 16px 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .gts-quick-categories__list::-webkit-scrollbar {
        display: none;
    }

    .gts-quick-categories__item {
        flex: 0 0 102px;
        scroll-snap-align: start;
    }

    .gts-quick-categories__link {
        box-sizing: border-box;
        width: 102px;
        min-height: 124px;
        height: 124px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 8px;
        border-radius: 18px;
        background: linear-gradient(160deg, #ffffff 0%, #f2fbfc 100%);
    }

    .gts-quick-categories__image {
        box-sizing: border-box;
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        border: 1px solid rgba(15, 141, 150, 0.16);
        background: rgba(15, 141, 150, 0.07);
        box-shadow: 0 3px 8px rgba(15, 141, 150, 0.12);
    }

    .gts-quick-categories__icon {
        width: 58px;
        height: 58px;
        max-width: 58px;
        max-height: 58px;
        flex-shrink: 0;
        object-fit: contain;
    }

    .gts-quick-categories__label {
        display: -webkit-box;
        height: 29.9px;
        min-height: 29.9px;
        overflow: hidden;
        max-width: 100%;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        text-overflow: ellipsis;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .gts-quick-categories__link:active {
        transform: translateY(-1px);
        box-shadow: 0 7px 16px rgba(15, 141, 150, 0.16);
    }
}

@media (hover: hover) and (pointer: fine) and (max-width: 767px) {
    .gts-quick-categories__link:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(15, 141, 150, 0.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gts-quick-categories__link {
        scroll-behavior: auto;
        transition: none;
    }
}
