/* ── Woo Categories for Elementor ── */

.wce-wrapper { width: 100%; }

/* ══════════════════════════════════════
   GRID
══════════════════════════════════════ */
.wce-grid {
    display: grid;
    grid-template-columns: repeat(var(--wce-cols, 4), 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .wce-grid {
        grid-template-columns: repeat(var(--wce-cols-tablet, 2), 1fr) !important;
    }
}

@media (max-width: 767px) {
    .wce-grid {
        grid-template-columns: repeat(var(--wce-cols-mobile, 1), 1fr) !important;
    }
}

/* ══════════════════════════════════════
   LIST
══════════════════════════════════════ */
.wce-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wce-list .wce-category-card {
    flex-direction: row;
    align-items: center;
}

.wce-list .wce-category-image {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    border-radius: 6px;
    margin-bottom: 0 !important;
}

/* ══════════════════════════════════════
   CARD
══════════════════════════════════════ */
.wce-category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* will-change removido — causava travamento de scroll no mobile */
}

.wce-category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    color: inherit;
}

/* ── Imagem ── */
.wce-category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ── Placeholder sem imagem ── */
.wce-no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wce-no-image span {
    font-size: 3rem;
    font-weight: 700;
    color: #ccc;
    text-transform: uppercase;
}

/* ── Info ── */
.wce-category-info {
    padding: 12px 16px 16px;
}

.wce-category-name {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.wce-category-count {
    display: block;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

/* ══════════════════════════════════════
   CARROSSEL — Swiper
══════════════════════════════════════ */
.wce-layout-carousel {
    position: relative;
}

.wce-layout-carousel .wce-swiper {
    padding-bottom: 48px;
    overflow: hidden;
    touch-action: pan-y;
}

.wce-layout-carousel .swiper-slide {
    height: auto;
    box-sizing: border-box;
    touch-action: pan-y;
}

.wce-layout-carousel .swiper-slide .wce-category-card {
    height: 100%;
}

/* Paginação */
.wce-layout-carousel .swiper-pagination {
    bottom: 8px;
}

.wce-layout-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    transition: background 0.3s, transform 0.3s, width 0.3s;
    border-radius: 4px;
}

.wce-layout-carousel .swiper-pagination-bullet-active {
    background: #333;
    width: 24px;
}

/* Setas de navegação */
.wce-layout-carousel .swiper-button-next,
.wce-layout-carousel .swiper-button-prev {
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.wce-layout-carousel .swiper-button-next:hover,
.wce-layout-carousel .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.08);
}

.wce-layout-carousel .swiper-button-next::after,
.wce-layout-carousel .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

/* ══════════════════════════════════════
   RESPONSIVO — Mobile
══════════════════════════════════════ */
@media (max-width: 767px) {
    .wce-layout-carousel .swiper-button-next,
    .wce-layout-carousel .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .wce-layout-carousel .swiper-button-next::after,
    .wce-layout-carousel .swiper-button-prev::after {
        font-size: 13px;
    }

    .wce-category-card:hover {
        transform: translateY(-3px) scale(1.01);
    }
}
