/* === CATEGORY CARD === */
.category-card {
    flex: 0 0 auto;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 8px;
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.18s;
}

.category-card-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #2b2e35;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: none;
    transition: none;
    position: relative;
}

.category-card-img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.18s cubic-bezier(.4, 0, .2, 1);
}

.category-card:hover .category-card-img img {
    transform: translate(-50%, -50%) scale(1.12);
}

.category-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-align: left;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
    letter-spacing: 0.01em;
    display: block;
}

.category-card:hover .category-card-img {
    border-color: #3cb371;
    box-shadow: 0 2px 8px rgba(60, 179, 113, 0.12);
}

.category-card:active {
    transform: scale(0.97);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px 24px;
    width: 100%;
}

.categories-grid .category-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.categories-grid .category-card-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #2b2e35;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border: none;
    transition: none;
    position: relative;
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 18px 8px;
    }

    .categories-grid .category-card-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px 4px;
    }

    .categories-grid .category-card-img {
        width: 70px;
        height: 70px;
    }
}