/* AEM Labs Limited - CSS Module: Category Shortcuts Section */
/* ========================================================= */

.category-shortcuts .section-header h2::after {
    width: 10% !important;
}

.category-shortcuts {
    width: 100%;
    max-width: min(85%, var(--section-max-width));
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shortcuts-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shortcuts-carousel {
    display: flex;
    gap: 24px;
    overflow-x: visible;
    overflow-y: hidden;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.shortcut-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 165px;
    max-width: 165px;
}

.shortcut-img {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background-color: rgb(238, 236, 236);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shortcut-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#component-shortcuts .shortcut-card:nth-last-child(-n+5) .shortcut-img img {
    width: 85%;
    height: 85%;
}

#peripheral-shortcuts .shortcut-card .shortcut-img img {
    width: 85%;
    height: 85%;
}

.shortcut-card:hover .shortcut-img img {
    transform: scale(1.05);
}

.shortcut-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
}

.shortcut-card:hover .shortcut-text {
    color: var(--accent-color);
}

@media (max-width: 1440px) {
    .category-shortcuts {
        max-width: min(95%, var(--section-max-width));
    }

    .shortcut-card {
        min-width: 125px;
        max-width: 125px;
    }

    .shortcut-img {
        width: 125px;
        height: 125px;
    }

    .shortcut-text {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .category-shortcuts .section-header {
        padding: 0 15px;
    }

    .category-shortcuts {
        max-width: 100%;
        margin: 20px auto;
    }

    .shortcuts-carousel {
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .shortcuts-carousel::-webkit-scrollbar {
        display: none;
    }

    .shortcut-card:first-child {
        margin-left: 15px;
    }

    .shortcut-card:last-child {
        margin-right: 15px;
    }

    .shortcut-card {
        min-width: 120px;
        max-width: 120px;
    }

    .shortcut-img {
        width: 120px;
        height: 120px;
    }

    .shortcut-text {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .shortcuts-carousel {
        gap: 12px;
    }

    .shortcut-card {
        min-width: 110px;
        max-width: 110px;
    }

    .shortcut-img {
        width: 110px;
        height: 110px;
    }

    .shortcut-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .category-shortcuts .section-header h2 {
        margin-bottom: 0;
    }

    .category-shortcuts .section-header h2::after {
        width: 25% !important;
    }
    
    .category-shortcuts {
        margin: 30px auto 20px;
    }
    
    .shortcuts-carousel {
        gap: 10px;
    }

    .shortcut-card {
        min-width: 100px;
        max-width: 100px;
    }

    .shortcut-img {
        width: 100px;
        height: 100px;
    }

    .shortcut-text {
        font-size: 11px;
    }
}