/* ============================================
   CEPEA PECUÁRIA CAROUSEL - VERSÃO INFINITA
   Versão: 2.2.0
   ============================================ */

/* Container principal */
.cepea-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 0;
    position: relative;
}

/* Container do carrossel */
.cepea-carousel-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Track do carrossel (onde os cards deslizam) */
.cepea-carousel-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Lista de cards */
.cepea-carousel {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* ============================================
   CARD COMPACTO
   ============================================ */

.cepea-card {
    flex: 0 0 auto;
    min-width: 150px;
    width: 150px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.cepea-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-3px);
}

/* Nome do produto */
.cepea-card-product {
    font-size: 13px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 8px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    justify-content: center;
}

/* Preço */
.cepea-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #0d6efd;
    margin: 6px 0;
    line-height: 1.2;
}

/* Variação */
.cepea-card-variation {
    font-size: 10px;
    font-weight: 700;
    margin: 6px 0;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.cepea-card-variation.alta {
    color: #198754;
    background: #d1e7dd;
}

.cepea-card-variation.baixa {
    color: #dc3545;
    background: #f8d7da;
}

.cepea-card-variation.neutro {
    color: #6c757d;
    background: #e9ecef;
}

/* Unidade */
.cepea-card-unit {
    font-size: 10px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* Data */
.cepea-card-date {
    font-size: 9px;
    color: #adb5bd;
    margin-top: 3px;
    border-top: 1px solid #e9ecef;
    font-weight: 500;
}

/* ============================================
   BOTÕES DE NAVEGAÇÃO
   ============================================ */

.cepea-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cepea-carousel-nav:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.cepea-carousel-nav:hover svg {
    fill: #ffffff;
}

.cepea-carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.cepea-carousel-nav.prev {
    left: 10px;
}

.cepea-carousel-nav.next {
    right: 10px;
}

.cepea-carousel-nav svg {
    width: 20px;
    height: 20px;
    fill: #6c757d;
    transition: fill 0.3s ease;
}

.cepea-carousel-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   INDICADORES DE PAGINAÇÃO
   ============================================ */

.cepea-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.cepea-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cepea-carousel-dot:hover {
    background: #adb5bd;
}

.cepea-carousel-dot.active {
    background: #0d6efd;
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   ESTADO VAZIO
   ============================================ */

.cepea-carousel-empty {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.cepea-empty-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.cepea-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 10px;
}

.cepea-empty-text {
    font-size: 14px;
    color: #6c757d;
    max-width: 450px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.cepea-empty-actions {
    margin-top: 20px;
}

.cepea-empty-button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cepea-empty-button:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Remover marcadores da lista */
.cepea-carousel {
    list-style: none !important;
    list-style-type: none !important;
}

.cepea-carousel li,
.cepea-card {
    list-style: none !important;
    list-style-type: none !important;
}

.cepea-carousel::before,
.cepea-carousel::after {
    display: none !important;
}

/* Remover qualquer marcador ou bullet */
.cepea-carousel li::marker,
.cepea-card::marker {
    display: none !important;
    content: none !important;
}


/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .cepea-carousel-container {
        padding: 15px 50px;
    }

    .cepea-carousel-track,
    .cepea-carousel {
        gap: 12px;
    }

    .cepea-card {
        min-width: 140px;
        width: 140px;
        padding: 10px;
    }

    .cepea-card-product {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .cepea-card-price {
        font-size: 16px;
    }

    .cepea-card-variation {
        font-size: 11px;
        padding: 3px 6px;
    }

    .cepea-carousel-nav {
        width: 36px;
        height: 36px;
    }

    .cepea-carousel-nav svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .cepea-carousel-wrapper {
        margin: 15px 0;
    }

    .cepea-carousel-container {
        padding: 12px 45px;
        border-radius: 8px;
    }

    .cepea-carousel-track,
    .cepea-carousel {
        gap: 10px;
    }

    .cepea-card {
        min-width: 130px;
        width: 130px;
        padding: 8px;
    }

    .cepea-card-product {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .cepea-card-price {
        font-size: 15px;
        margin: 5px 0;
    }

    .cepea-card-variation {
        font-size: 10px;
        padding: 2px 5px;
        margin: 5px 0;
    }

    .cepea-card-unit {
        font-size: 9px;
        margin: 3px 0;
    }

    .cepea-card-date {
        font-size: 8px;
        margin-top: 6px;
        padding-top: 6px;
    }

    .cepea-carousel-nav {
        width: 32px;
        height: 32px;
    }

    .cepea-carousel-nav.prev {
        left: 5px;
    }

    .cepea-carousel-nav.next {
        right: 5px;
    }

    .cepea-carousel-nav svg {
        width: 16px;
        height: 16px;
    }
    
}


/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cepea-card {
    animation: fadeInUp 0.4s ease-out;
}

.cepea-card:nth-child(1) { animation-delay: 0.05s; }
.cepea-card:nth-child(2) { animation-delay: 0.1s; }
.cepea-card:nth-child(3) { animation-delay: 0.15s; }
.cepea-card:nth-child(4) { animation-delay: 0.2s; }
.cepea-card:nth-child(5) { animation-delay: 0.25s; }
.cepea-card:nth-child(6) { animation-delay: 0.3s; }
.cepea-card:nth-child(7) { animation-delay: 0.35s; }

/* ============================================
   IMPRESSÃO
   ============================================ */

@media print {
    .cepea-carousel-track {
        flex-wrap: wrap;
    }

    .cepea-carousel-nav,
    .cepea-carousel-dots {
        display: none;
    }

    .cepea-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }

    .cepea-card:hover {
        transform: none;
        box-shadow: none;
    }
}


