.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.category-info {
    padding: 1rem;
    background: white;
}

.category-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.offers-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    font-size: 0.9rem;
}

.offers-count i {
    color: #2c5282;
}

.view-more {
    color: #2c5282;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-more i {
    transition: transform 0.2s ease;
}

.category-card:hover .view-more i {
    transform: translateX(4px);
}

/* Responsividade */
@media (max-width: 1400px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-grid {
        display: none;
    }

    .mobile-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 1rem;
        gap: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    .category-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    .category-image {
        height: 150px;
    }
}

/* Carrossel para Mobile */
.mobile-carousel {
    display: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    gap: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

@media (max-width: 576px) {
    .mobile-carousel {
        display: flex;
    }

    .categories-grid {
        display: none;
    }

    .category-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
} 