[data-bs-theme=base] {
    --bs-bg-page: #e3e3e3;
    --bs-bg-nav: #384148;
    --bs-bg-header: #a0b0bf;
    --bs-bg-navlink: #3086c0;
    --bs-txt-nav: #fafafa;
}

body {
    background-color: var(--bs-bg-page);
}

.card_titulo_h5 {
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    .card_titulo_h5 {
        font-size: 0.8rem;
    }   
}

/* Deixar imagem em escala de cinza */
.imagem-pb {
    filter: grayscale(100%);
    filter: gray; /* Para IE */
    -webkit-filter: grayscale(100%);
    opacity: 0.4;
}

/* ============================================
   BANNER HISTÓRICO
   ============================================ */
.history-carousel-container {
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
}

.history-carousel-track {
    display: flex;
    gap: 1.25rem; /* 20px */
    transition: transform 0.3s ease;
    will-change: transform;
}

.history-item {
    flex: 0 0 auto;
}

.history-product-image {
    position: relative;
}

.history-badge {
    position: absolute;
    top: 8px;
    font-weight: 400;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 5px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.history-product-card {
    background: white;
    border-radius: 5px;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    overflow: hidden;
    transition: transform 0.1s ease; /* Suaviza a animação */
}

.history-product-card:hover {
    transform: translateY(-1px);
    border: 1px solid #808080;
    cursor: pointer;
    box-shadow: 0 0 0.3rem 0.1rem rgba(0, 0, 0, 0.25);
}

.history-product-image {
    height: 150px;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background-color: white;
}

.history-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-product-card:hover .history-product-image img {
    transform: scale(1.05);
}

.history-product-card .card-body {
    padding: 0.5em;
    line-height: 1em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.history-product-card .card-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--lead-gray-light);
    line-height: 1;
}

.history-product-card .card-prince {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lead-gray);
}

.history-prev,
.history-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lead-gray);
    color: rgb(68, 68, 68);
    background-color: rgb(188, 211, 225);
    transition: all 0.3s ease;
}

.history-prev:hover,
.history-next:hover {
    background-color: rgb(68, 96, 135);
    color: white;
    border-color: var(--lead-gray);
    transform: scale(1.05);
}

.history-prev:disabled,
.history-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: var(--gray-light);
    border-color: var(--gray);
    color: var(--gray);
}

.history-prev:disabled:hover,
.history-next:disabled:hover {
    transform: none;
    background-color: var(--gray-light);
    color: var(--gray);
}

/* Small (sm): ≥ 576px */
@media (min-width: 576px) {
    .history-item {
        width: calc(50% - 1rem);
    }
    
    .history-product-card .card-title {
        font-size: 0.85rem;
    }
    
    .history-product-card .card-prince {
        font-size: 1rem;
    }
}

/* Medium (md): ≥ 768px */
@media (min-width: 768px) {
    .history-item {
        width: calc(50% - 1rem);
    }
}

/* Large (lg): ≥ 992px */
@media (min-width: 992px) {
    .history-item {
        width: calc(33.333% - 1rem);
    }
}

/* Extra large (xl): ≥ 1200px */
@media (min-width: 1200px) {
    .history-item {
        width: calc(25% - 1rem);
    }
}

/* X-Small: < 576px */
@media (max-width: 575.98px) {
    .history-carousel-container {
        overflow-x: auto;
        scrollbar-width: thin;
        padding-bottom: 0.5rem;
    }
    
    .history-carousel-track {
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .history-carousel-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .history-carousel-container::-webkit-scrollbar-track {
        background: var(--baby-blue-light);
        border-radius: 2px;
    }
    
    .history-carousel-container::-webkit-scrollbar-thumb {
        background: var(--lead-gray-light);
        border-radius: 2px;
    }
    
    .history-product-image {
        height: 140px;
    }
}

/*
# Banner
*/
/* Todas as imagens ocupam 100% da largura com cobertura proporcional */
.banner-carousel .carousel-item img {
    width: 100%;
    object-fit: cover;
}

/* Breakpoint XXL (≥1400px) */
@media (min-width: 1400px) {
    .banner-carousel .carousel-item img {
        height: 375px;
    }
}

/* Breakpoint XL (1200px a 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .banner-carousel .carousel-item img {
        height: 320px;
    }
}

/* Breakpoint LG (992px a 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .banner-carousel .carousel-item img {
        height: 300px;
    }
}

/* Breakpoint MD (768px a 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .banner-carousel .carousel-item img {
        height: 235px;
    }
}

/* Breakpoint SM (576px a 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .banner-carousel .carousel-item img {
        height: 280px;
    }
}

/* Breakpoint XS (menor que 576px) */
@media (max-width: 575.98px) {
    .banner-carousel .carousel-item img {
        height: 210px;
    }
}

/* Estilos dos controles e indicadores (opcionais) */
.banner-carousel .carousel-control-prev,
.banner-carousel .carousel-control-next {
    width: 8%;
    opacity: 0.7;
    transition: opacity 0.3s;
    
}
.banner-carousel .carousel-control-prev:hover,
.banner-carousel .carousel-control-next:hover {
    opacity: 1;
}
.banner-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: #fff;
    opacity: 0.5;
}
.banner-carousel .carousel-indicators button.active {
    opacity: 1;
    background-color: #646464;
}

.contato-icons {
    color: #efefef;
}

/*
# Paginação
*/
.page-link {
    color: #303030 !important;
}
.page-link.disabled, .disabled > .page-link {
    color: #dbdbdb !important;
    background-color: #ffffff !important;
}
.page-link:hover {
    color: #dbdbdb !important;
    background-color: #4a4a4a !important;
}
.page-link.active, .active > .page-link {
    color: #dbdbdb !important;
    border-color: #88929b;
    background-color: #323232 !important;
}

.card_hover {
    transition: transform 0.1s ease; /* Suaviza a animação */
}

.card_hover:hover {
    border: 1px solid #808080;
    cursor: pointer;
    box-shadow: 0 0 0.3rem 0.1rem rgba(0, 0, 0, 0.25);
    transform: scale(1.01);
}

.bg-body-navbar {
    background-color: var(--bs-bg-nav) !important;
}

.navbar {
    border-bottom: 0px solid #72808c !important;
    height: 55px;
}

.nav-link {
    color: var(--bs-txt-nav) !important;
}

.nav-link.active {
    background-color: var(--bs-bg-navlink) !important;
}

.img_logo_nav {
    max-height: 32px;
    margin-right: 2rem;
    padding: 0px;
}

@media (max-width: 767px) {
    .img_logo_nav {
        max-height: 30px;
        margin-right: 2rem;
        padding: 0px;
    }
}

.offcanvas {
    max-width: 280px;
}
.offcanvas-header {
    background-color: var(--bs-bg-header) !important;
}