/* ============================================================
   fox.prod-carrossel.css — Carrossel de Produtos
   ============================================================ */

/* ── Seção ────────────────────────────────────────────────── */
.fox-carrossel {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
    overflow: hidden;
    /* espaço lateral para os botões de seta */
    padding: 0 2rem;
    box-sizing: border-box;
}

.fox-carrossel.home {
    background: #FFF;
    padding: 3rem 6rem;
    margin-bottom: 0;
}

/* ── Cabeçalho ───────────────────────────────────────────── */
.fox-carrossel-header {
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.fox-carrossel-titulo {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--foxb2c-secondary, #333);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.fox-carrossel-subtitulo {
    font-size: 0.875rem;
    color: var(--foxb2c-muted, #888);
    margin: 0;
}

/* ── Wrapper (setas + track) ──────────────────────────────── */
.fox-carrossel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── Track (trilha deslizante) ────────────────────────────── */
.fox-carrossel-track {
    display: flex;
    gap: 1rem;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0.25rem 0 0.5rem;
}

/* ── Slide ────────────────────────────────────────────────── */
.fox-carrossel-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    /* largura controlada via JS / variável CSS */
    width: var(--fox-slide-width, 25%);
    width: var(--fox-slide-width, 19%);
    min-width: 160px;
}

/* Remove col Bootstrap dentro do slide */
.fox-carrossel-slide .col {
    width: 100% !important;
    width: 95% !important;
    flex: none !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* ── Botões seta ──────────────────────────────────────────── */
.fox-carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--foxb2c-border, #ddd);
    background: #fff;
    color: var(--foxb2c-secondary, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: background .2s, color .2s, opacity .2s;
    padding: 0;
    line-height: 1;
}

.fox-carrossel-btn:hover {
    background: var(--foxb2c-primary, #2e7d32);
    color: #fff;
    border-color: var(--foxb2c-primary, #2e7d32);
}

.fox-carrossel-btn:disabled,
.fox-carrossel-btn[disabled] {
    opacity: 0.35;
    pointer-events: none;
}


/* Botões posicionados nas bordas do wrapper (dentro da zona de padding da seção) */
.fox-carrossel-prev {
    left: -2rem;
}

.fox-carrossel-next {
    right: -2rem;
}

/* ── Dots (paginação) ─────────────────────────────────────── */
.fox-carrossel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0.85rem;
}

.fox-carrossel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--foxb2c-border, #ccc);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}

.fox-carrossel-dot.ativo,
.fox-carrossel-dot:hover {
    background: var(--foxb2c-primary, #2e7d32);
    transform: scale(1.25);
}

/* ── Cards menores dentro do carrossel ────────────────────── */
.fox-carrossel-slide .product-card {
    font-size: 0.82rem;
    min-height: 395px !important;
}

.fox-carrossel-slide .product-image{
    padding-top: 60%;
    height: 250px;
}

.fox-carrossel-slide .product-image img {
    max-height: 100%;
    max-height: 250px;
    object-fit: contain;
}

.fox-carrossel-slide .product-title {
    font-size: 0.78rem;
}

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .fox-carrossel-slide {
        width: var(--fox-slide-width-md) !important;
    }

    .fox-carrossel.home{
        background: var(--foxb2c-gradient-branco-03);
        margin: 0 !important;
        width: 100% !important;
    }

}

@media (max-width: 767.98px) {
    .fox-carrossel-slide {
        width: calc((100% - 1rem) / 2) !important;
    }

    .fox-carrossel-btn {
        width: 28px;
        height: 28px;
        background: none;
        border: 0;
        box-shadow: none;
    }

    .fox-carrossel-prev { left: -3.5rem; }
    .fox-carrossel-next { right: -3.5rem; }
}

@media (max-width: 479.98px) {
    .fox-carrossel-slide {
        width: 100% !important;
    }

    .fox-carrossel {
        padding: 0 1.5rem;
    }
}

/* ============================================================
   fox-carrossel-banner — Carrossel com Imagem Lateral
   ============================================================ */

.fox-carrossel-banner {
    width: 100%;
    margin-bottom: 2.5rem;
    background: var(--foxb2c-grid-ban);
    height: 527px;
    overflow: hidden;
}

/* Remove margem inferior do carrossel interno — o banner já tem */
.fox-carrossel-banner .fox-carrossel {
    margin-bottom: 0;
    height: 100%;
    padding: 0 0 0 10px;
    background: var(--foxb2c-grid-ban);
}

/* Coluna da imagem: ocupa toda a altura da linha */
.fox-carrossel-banner-imagem {
    /*display: flex;
    align-items: stretch;*/
    margin-left: 6%;
}

.fox-carrossel-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.fox-carrossel-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-fit: contain;
    display: block;
    border-radius: 0.375rem;
}

.fox-carrossel-slide.banner {
    width: var(--fox-slide-width, 25%);
    min-width: 216px;
}

.fox-carrossel-banner .fox-carrossel-header{
    margin: 15px 0 9px 0;
}

.fox-carrossel-banner .fox-carrossel-titulo{
    color: var(--foxb2c-grid-ban-tit);
    font-size: 17px;
}

.fox-carrossel-banner-imagem,
.fox-carrossel-banner {
    height: 559px;
    max-height: 560px;
    overflow: hidden;
    padding-top: 20px;
}

/* VARIACAO */
.fox-carrossel-banner .fox-carrossel,
.fox-carrossel-banner-imagem,
.fox-carrossel-banner {
    background: var(--foxb2c-quartenary);
}

.fox-carrossel-banner-imagem,
.fox-carrossel-banner{
    height: 615px;
    max-height: 615px;
}

.fox-carrossel-banner{margin: 0;}
.fox-carrossel-banner .fox-carrossel-titulo{display: none;}
.fox-carrossel-banner-img {
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #fff;
    background: #fff;
    max-height: 500px;
}

.fox-carrossel-banner .fox-carrossel-next,
.fox-carrossel-banner .fox-carrossel-prev {
    display: none!important;
}

@media (max-width: 991.98px) {
    .fox-carrossel-banner-imagem {
        margin-top: 1rem;
    }

    .fox-carrossel-banner-img {
        height: 220px;
        object-fit: cover;
    }
}
