/* Estilos personalizados ViaBairro */

body {
    background-color: #f6f5f6;
}

.navbar {
    min-height: 80px;
}

.navbar-brand {
    color: #3498db !important;
}

/* Ajuste para o campo de busca */
.input-group .form-control {
    border-right: 0;
}
.input-group .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

/* Ajuste para os cartões de produto - Efeito Flutuante 3D */
.card {
    border-radius: 12px !important;
    background: #ffffff;
    border: none;
    position: relative;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, box-shadow;
}
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.02) 100%
    );
    pointer-events: none;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 24px 56px rgba(0, 0, 0, 0.06);
}

/* Estilo das estrelas */
.text-warning {
    color: #f1c40f !important;
}

/* Botões personalizados */
.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}
.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}
/* Seta verde nos botões laterais para Destaques da Semana */
.btn-outline-success {
    color: #27ae60;
    border-color: #27ae60;
}
.btn-outline-success:hover {
    background-color: #27ae60;
    color: white;
}


.bg-success {
    background-color: #2ecc71 !important;
}

/* Barra de Categorias */
.categories-scroll::-webkit-scrollbar {
    height: 0px; /* Remove scrollbar visual */
}
.categories-scroll {
    scrollbar-width: none; /* Firefox */
}

/* Cartões de Produtos */
.card .text-truncate {
    max-width: 100%;
}

/* Botões de navegação grande */
@media (min-width: 1400px) {
    .container {
        position: relative;
    }
}

/* Cor Roxa para Título de Postados Recentes */
.border-secondary {
    border-color: #8e44ad !important; /* Sobrescreve a borda do relógio */
}

/* Cor Azul para Título de Vagas de Emprego */
.text-primary {
    color: #3498db !important;
}
.bg-primary {
    background-color: #3498db !important;
}

/* Botão Contato */
.btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}
.btn-success:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* Cor roxa para a aba ativa de Localização */
.nav-pills .nav-link.active {
    background-color: #8e44ad;
    color: white;
}

/* Garantir que o ícone de calendário tenha a cor verde correta */
.text-success {
    color: #28a745 !important;
}

/* Carrossel - Indicadores em formato de pílula */
#bannerCarousel .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

#bannerCarousel .carousel-indicators button {
    width: 40px;
    height: 8px;
    border-radius: 20px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
    transition: all 0.3s ease;
}

#bannerCarousel .carousel-indicators button.active {
    width: 50px;
    background-color: #ffffff;
}

#bannerCarousel .carousel-control-prev,
#bannerCarousel .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#bannerCarousel:hover .carousel-control-prev,
#bannerCarousel:hover .carousel-control-next {
    opacity: 1;
}

/* Ticker de Categorias */
#categoriasTicker {
    gap: 0;
    will-change: transform;
}

.ticker-item {
    flex: 1 0 auto;
    min-width: 0;
    padding: 0 12px;
    white-space: nowrap;
}

#categoriasTicker .ticker-item {
    transition: opacity 0.3s ease;
}

/* ==========================================
   Offcanvas Sidebar - Slide Suave
   ========================================== */
.offcanvas {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.offcanvas.show {
    transform: translateX(0);
}

.offcanvas-backdrop {
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.offcanvas-backdrop.show {
    opacity: 0.6;
}

/* ==========================================
   Timer Bar (Ofertas Relâmpago nos cards)
   ========================================== */
.timer {
    white-space: nowrap;
}

/* ==========================================
   Responsivo Mobile
   ========================================== */
@media (max-width: 991.98px) {
    .navbar {
        min-height: auto;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    #bannerCarousel .carousel-item > div {
        min-height: 120px !important;
        padding: 1rem !important;
    }

    #bannerCarousel .display-6 {
        font-size: 1.2rem;
    }

    #bannerCarousel .fs-3 {
        font-size: 1rem !important;
    }

    #bannerCarousel .carousel-item .col-md-6.text-end {
        display: none;
    }

    #bannerCarousel .carousel-indicators {
        bottom: 4px;
    }

    #bannerCarousel .carousel-indicators button {
        width: 24px;
        height: 5px;
    }

    #bannerCarousel .carousel-indicators button.active {
        width: 32px;
    }

    #bannerCarousel .carousel-control-prev,
    #bannerCarousel .carousel-control-next {
        opacity: 1;
    }

    .offcanvas-body a {
        font-size: 0.95rem;
    }

    .mb-5 > div.d-flex.justify-content-between h4 {
        font-size: 0.95rem;
    }

    .mb-5 > div.d-flex.justify-content-between .fs-3 {
        font-size: 1.1rem !important;
    }

    #timer {
        font-size: 0.8rem !important;
        padding: 2px 10px !important;
    }
    .timer-bar {
        font-size: 0.8rem !important;
        padding: 2px 10px !important;
    }
}

@media (max-width: 575.98px) {
    #bannerCarousel .carousel-item > div {
        min-height: 100px !important;
    }

    .mb-5 > div.d-flex.justify-content-between h4 {
        font-size: 0.85rem;
    }

    .mb-5 > div.d-flex.justify-content-between .fs-3 {
        font-size: 1rem !important;
    }

    #timer {
        font-size: 0.75rem !important;
        padding: 2px 8px !important;
        white-space: nowrap;
    }

    .timer-bar {
        font-size: 0.75rem !important;
        padding: 2px 8px !important;
        white-space: nowrap;
    }

    footer .col-md-3 {
        text-align: center;
    }

    footer .col-md-3 .list-unstyled {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

