/* ============================================================
   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-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0.25rem 0 0.5rem;
    /* oculta scrollbar visualmente em todos os browsers */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE / Edge */
}

.fox-carrossel-track::-webkit-scrollbar {
    display: none;               /* Chrome / Safari */
}

/* ── 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);
}

.fox-carrossel-dot.dot-oculto {
    display: none;
}

/* ── 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) {
    /* Barra de navegação inferior: altura fixa 40px */
    .fox-carrossel {
        padding: 0 0.75rem 40px;
    }

    .fox-carrossel.home {
        padding: 1rem 0.75rem 40px;
    }

    /* Pequeno recuo interno no track para respiração visual */
    .fox-carrossel-track {
        padding: 0.25rem 0.75rem 0.5rem;
        gap: 0.75rem;
        /* Scroll nativo: habilita swipe por toque */
        overflow-x: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .fox-carrossel-track::-webkit-scrollbar {
        display: none;
    }

    /* 2 colunas */
    .fox-carrossel-slide {
        width: calc(50% - 0.375rem) !important;
    }

    /* Altura de imagem proporcional à largura do card em 2 colunas */
    .fox-carrossel-slide .product-card {
        min-height: auto !important;
        min-height: 395px !important;
    }

    .fox-carrossel-slide .product-image {
        height: 150px;
        padding-top: 0;
    }

    /* ── Setas: centro vertical = (40 - 32) / 2 = 4px do fundo ── */
    .fox-carrossel-btn {
        top: auto;
        bottom: -25px;
        transform: none;
        width: 32px;
        height: 32px;
        border: 1px solid #ddd;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0,0,0,0.12);
        border-radius: 50%;
    }

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

    /* ── Dots: centro vertical = (40 - 8) / 2 = 16px do fundo ── */
    /* Setas e dots com centro a 20px do fundo: alinhados na mesma linha */
    .fox-carrossel-dots {
        position: absolute;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        white-space: nowrap;
    }
}

@media (max-width: 479.98px) {
    /* Mantém 2 colunas mesmo em telas muito pequenas */
    .fox-carrossel-slide {
        width: calc(50% - 0.375rem) !important;
    }
}

/* ============================================================
   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;
}

/* ── Desktop: setas posicionadas sobre a imagem do banner ── */
@media (min-width: 992px) {
    /* Banner vira o contexto de posicionamento das setas */
    .fox-carrossel-banner {
        position: relative;
    }

    /* Remove posicionamento intermediário: setas sobem até .fox-carrossel-banner 
    .fox-carrossel-banner .fox-carrossel,
    .fox-carrossel-banner .fox-carrossel-wrapper { 
        position: static;
    }*/

    /* Garante que setas não sejam cortadas pelo overflow do carrossel interno */
     /* Alterado de 'visible' para 'hidden' */
    .fox-carrossel-banner .fox-carrossel { 
        overflow: hidden;
    }

    /* anula o right: -2rem do base */
    .fox-carrossel-banner .fox-carrossel-prev,
    .fox-carrossel-banner .fox-carrossel-next {
        display: none !important;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        right: auto;  
    }

    /* Prev: borda esquerda da imagem (col-lg-4 inicia em 6% pelo margin-left) */
    .fox-carrossel-banner .fox-carrossel-prev {
        left: calc(6% + 1rem);
    }

    /* Next: borda direita da imagem (col-lg-4 33.33% + margin-left 6% ≈ 39%) */
    .fox-carrossel-banner .fox-carrossel-next {
        left: calc(39% - 2.5rem);
    }

    /* Estilos específicos para o carrossel dentro do banner */
    .fox-carrossel-banner .fox-carrossel-track {
        display: flex; /* Garante que os slides se alinhem horizontalmente */
        overflow-x: auto; /* Habilita a rolagem horizontal */
        scroll-snap-type: x mandatory; /* Opcional: para um "snap" mais suave nos slides */
        -webkit-overflow-scrolling: touch; /* Melhora a rolagem em dispositivos iOS */
        scrollbar-width: none; /* Oculta a barra de rolagem para Firefox */
        -ms-overflow-style: none;  /* Oculta a barra de rolagem para IE e Edge */
    }

    /* Oculta a barra de rolagem para Chrome, Safari, Opera */
    .fox-carrossel-banner .fox-carrossel-track::-webkit-scrollbar {
        display: none;
    }

    /* Garante que os slides não encolham e mantenham sua largura definida */
    .fox-carrossel-banner .fox-carrossel-track .fox-carrossel-slide {
        flex-shrink: 0; /* Impede que os slides encolham */
        scroll-snap-align: start; /* Alinha o início de cada slide ao ponto de snap */
    }

}

@media (max-width: 991.98px) {
    /* Mobile: oculta as setas do banner (dots são suficientes) */
    .fox-carrossel-banner .fox-carrossel-next,
    .fox-carrossel-banner .fox-carrossel-prev {
        display: none !important;
    }

    /* Remove altura fixa: no mobile as colunas empilham verticalmente */
    .fox-carrossel-banner,
    .fox-carrossel-banner-imagem {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
        padding-top: 0;
    }

    /* Mantém clipping externo no container principal */
    .fox-carrossel-banner {
        overflow: hidden;
        margin-bottom: 1.5rem;
    }

    .fox-carrossel-banner-imagem {
        margin-left: 0;
        margin-top: 0;
    }

    .fox-carrossel-banner-img {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
        border: none;
    }

    /* Carrossel interno: remove height: 100% que resolvia para 615px */
    .fox-carrossel-banner .fox-carrossel {
        height: auto !important;
        padding: 0.5rem 0 40px;
    }
}

/* ============================================================
   DEAL OF THE WEEK — Carrossel Promo
   Referência: imagem "Deal Of The Week" (painel + carrossel)
   ============================================================ */

.fox-carrossel-promo {
    background: #f0f2f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
}

/* Painel esquerdo */
.fox-carrossel-promo-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fox-promo-inner {
    padding: 2.5rem 2rem;
    text-align: center;
    width: 100%;
}

.fox-promo-titulo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foxb2c-secondary, #2c3e50);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.fox-promo-divisor {
    display: block;
    width: 50px;
    height: 3px;
    background: var(--foxb2c-accent, #f7941d);
    border-radius: 2px;
    margin: 0.6rem auto 1.25rem;
}

.fox-promo-descricao {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Countdown */
.fox-promo-countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.75rem;
}

.fox-countdown-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 10px 8px;
    min-width: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.fox-countdown-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--foxb2c-secondary, #2c3e50);
    line-height: 1;
}

.fox-countdown-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Botão */
.fox-promo-btn {
    display: inline-block;
    background: var(--foxb2c-accent, #f7941d);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247,148,29,0.35);
}

.fox-promo-btn:hover {
    background: var(--foxb2c-secondary, #2c3e50);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44,62,80,0.25);
    text-decoration: none;
}

/* Coluna direita */
.fox-carrossel-promo-cards-col {
    background: #f0f2f5;
    display: flex;
    align-items: center;
}

.fox-carrossel-promo-cards {
    width: 100%;
    padding: 1rem 0;
}

/* Responsive */
@media (max-width: 991px) {
    .fox-carrossel-promo-panel {
        border-bottom: 1px solid #e9ecef;
    }

    .fox-promo-inner {
        padding: 2rem 1.5rem;
    }

    .fox-promo-titulo {
        font-size: 1.5rem;
    }

    .fox-countdown-item {
        min-width: 54px;
        padding: 10px 6px 6px;
    }

    .fox-countdown-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .fox-promo-countdown {
        gap: 6px;
    }

    .fox-countdown-item {
        min-width: 44px;
        padding: 8px 4px 5px;
    }

    .fox-countdown-number {
        font-size: 1.1rem;
    }
}

/* ============================================================
   HOT DEALS SIDEBAR
   Referência: _projeto/hot-deals-sidebar.html
   ============================================================ */

.hot-deals-sidebar {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 280px;
    border: 1px solid #e9ecef;
    margin-top: 25px;
}

.hot-deals-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hot-deals-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foxb2c-secondary, #2c3e50);
    margin: 0;
}

.hot-deals-nav {
    display: flex;
    gap: 5px;
}

.hot-deals-nav .nav-arrow {
    width: 24px;
    height: 24px;
    background-color: #e9ecef;
    border: none;
    border-radius: 4px;
    color: #6c757d;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.hot-deals-nav .nav-arrow:hover {
    background-color: var(--foxb2c-secondary, #2c3e50);
    color: #fff;
}

.hot-deals-nav .nav-arrow.disabled {
    background-color: #f8f9fa;
    color: #dee2e6;
    cursor: not-allowed;
    pointer-events: none;
}

.hot-deals-content {
    padding: 20px;
}

.deal-product-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.deal-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.deal-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(255,107,107,0.3);
}

.deal-product-link {
    display: block;
}

.deal-product-image {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    overflow: hidden;
}

.deal-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.deal-product-card:hover .deal-product-img {
    transform: scale(1.05);
}

.deal-product-info {
    padding: 15px;
}

.deal-countdown {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 6px;
}

.countdown-item {
    text-align: center;
    background-color: #fff;
    border-radius: 6px;
    padding: 7px 4px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.countdown-number {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foxb2c-secondary, #2c3e50);
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
    display: block;
}

.deal-product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--foxb2c-secondary, #2c3e50);
    margin-bottom: 8px;
    line-height: 1.3;
}

.deal-product-name a {
    color: inherit;
    text-decoration: none;
}

.deal-product-name a:hover {
    color: var(--botao-primary, #007bff);
}

.deal-product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.deal-star       { color: #ffc107; font-size: 0.8rem; }
.deal-star.empty { color: #e9ecef; }

.deal-product-price {
    margin-bottom: 12px;
}

.deal-product-price-old {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 6px;
}

.deal-product-actions {
    padding: 0 15px 15px;
    display: flex;
    gap: 8px;
}

.hot-deals-sidebar .btn-add-cart {
    background-color: #ffc107;
    border: none;
    color: var(--foxb2c-secondary, #2c3e50);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    width: auto;
    min-height: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hot-deals-sidebar .btn-add-cart:hover {
    background-color: #ffcd39;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255,193,7,0.3);
    color: var(--foxb2c-secondary, #2c3e50);
}

@media (max-width: 991px) {
    .hot-deals-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hot-deals-sidebar {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .hot-deals-header  { padding: 12px 15px; }
    .hot-deals-content { padding: 15px; }
    .deal-product-image { height: 180px; }
    .countdown-number  { font-size: 0.95rem; }
    .countdown-label   { font-size: 0.6rem; }
}
