/* CORES PADROES -> AZUL #204397 / VERDE #016938 / AMARELO #FFDE0F */

/**********************/
/** PRODUTOS NA HOME **/
/**********************/ 

.brazilcore-scope .brazilcore-random-products {
    width: 100%;
    margin: 20px 0;
}

.brazilcore-scope .produtos-listagem {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* MantÃƒÂ©m 4 colunas por padrÃƒÂ£o */
    gap: 20px;
    padding: 0;
    list-style: none;
}

.brazilcore-scope .produto-item {
    text-align: center;
    background: #f8f8f8;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Garante altura uniforme nos itens */
}

.brazilcore-scope .produto-item:hover {
    background: #f0f0f0;
}

.brazilcore-scope .produto-link {
    text-decoration: none;
    color: #204397;
    display: block;
    flex-grow: 1; /* Permite que o link ocupe o espaco disponivel */
}

.brazilcore-scope .produto-link:hover .produto-titulo {
    color: #016938;
}

.brazilcore-scope .produto-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    flex: 0 0 300px; /* Define largura fixa de 300px */
    width: 300px;
    height: 300px;
}

.brazilcore-scope .produto-titulo {
    font-size: 19px;
    margin: 10px 0 5px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
}

.brazilcore-scope .produto-marca {
    font-size: 13px;
    color: #999;
    margin: 10px 0;
}

.brazilcore-scope .botao-link-produto {
    display: inline-block;
    padding: 10px 20px;
    background-color: #204397;
    color: white;
    text-decoration: none;
    margin-top: 10px;
    border-radius:5px;
    transition: background-color 1.2s ease;
}

.brazilcore-scope .botao-link-produto:hover {
    background-color: #016938;
    transition: background-color 0.5s ease;
    
}

/* Certifique-se que o botÃƒÂ£o nÃƒÂ£o estÃƒÂ¡ escondido */
.botao-link-produto {
    display: block !important;
    visibility: visible !important;
}

/* Responsividade */
@media (max-width: 992px) {
    .brazilcore-scope .produtos-listagem {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .brazilcore-scope .produtos-listagem {
        grid-template-columns: 1fr;
    }

    .brazilcore-scope .produto-titulo {
        font-size: 16px;
        min-height: 30px;
    }

    .brazilcore-scope .produto-marca {
        font-size: 12px;
    }

    .brazilcore-scope .botao-link-produto {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/********************************/
/**** PAGINA STORE - ISOTOPE ****/
/********************************/

/* FILTERS */
.brazilcore-isotope-products {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: none !important;
    display: block !important;
}

.store-isotope-item {
    display:none;
}

.store-filters {
    background: #F8F8F8;
    margin: 0 0 40px 0;
    padding: 10px 0;
}

.btn-store-filter[data-filter="*"] {
    background: #FFDE0F;
    color: #333;
    font-weight: 700;
}

.btn-store-filter {
    margin: 5px;
    padding: 5px 15px;
    font-size: 12px;
    background: #204397;
    border-radius: 5px;
    color: #f8f8f8;
    border: 0;
    cursor: pointer;
}

.btn-store-filter:hover {
    background: #016938;
    color: #ffde0f;
}

/* STORE GRID */

:root {--store-grid-gap: 30px;}

.store-grid {
    display: grid !important; /* Mantém o grid */
    grid-template-columns: repeat(4, calc(25% - (var(--store-grid-gap) * 3 / 4))) !important;
    gap: var(--store-grid-gap) !important; /* Gap para linhas e colunas */
    padding: 0;
    list-style: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    justify-content: start;
    min-width: 0;
    position: relative;
    height: auto !important; /* Sobrescreve a altura fixa inline do Isotope */
}

/* 4 COLUNAS NO DESKTOP */
@media (max-width: 9999px) {
    .store-grid {
        grid-template-columns: repeat(4, calc(25% - (var(--store-grid-gap) * 3 / 4))) !important;
    }
}

/* 1 COLUNA NO MOBILE (até 767px) */
@media (max-width: 767px) {
    .store-grid {
        grid-template-columns: 100% !important; /* 1 item por linha */
    }
}

.store-isotope-item {
    border: 1px solid #DDD;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    height: 480px; /* Altura fixa mantida */
    float: none !important;
    position: static !important;
    opacity: 1; /* Sem transição de opacidade */
}

.store-isotope-item.isotope-hidden {
    opacity: 0;
    pointer-events: none;
}

.store-produto-thumb {
    background: #F8F8F8;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.store-produto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-produto-marca {
    font-size: 13px;
    color: #204397;
    margin: 3px 0;
    padding: 0;
}

.store-produto-titulo {
    font-size: 19px;
    margin: 10px 0 5px;
    padding: 0 5px;
    min-height: 50px;
    display: block;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
    align-self: center;
    width: 100%;
    box-sizing: border-box;
}

.btn-shop-now {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    background-color: #204397;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.9s ease;
}

.btn-shop-now:before {
    font-family: "fontawesome" !important;
    content: "\f218" !important;
    margin-right: 7px !important;
}

.btn-shop-now:hover {
    background-color: #016938;
    transition: background-color 0.6s ease;
}

/* Ajuste para evitar corte e sobreposição */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Garante altura total da tela */
}

.td_mod_wrap {
    flex: 1 0 auto; /* Substitui .site-content, faz o contêiner crescer */
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 5px; /* Espaço extra para o último item */
}

footer.td-footer-wrap { /* Ajustado para o tema Newspaper */
    flex-shrink: 0; /* Impede que o rodapé encolha */
}

/* NEW LABEL */
.brazilcore-new-label {
    margin:10px 0 0 10px; padding:2px 8px 3px;
    background-color: #204397;
    position: absolute;
    border-radius: 3px;
    font-size: 11px;
    color: #f8f8f8;
    text-transform: uppercase;
}