.category-item a, .subcategory-item a {
	font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.category-item:hover a, .subcategory-item:hover a {
color: #ffffff !important;
}

h2.woocommerce-loop-product__title {
  min-height: 80px !important;
}

.shop-container{
	margin-bottom: 40px;
}

.woocommerce-loop-product__link > img {
  width: auto !important;
  height: 150px !important;
  margin: auto !important;
}

.page-wrap{
  min-height: 90vh;
}
.category-item{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 5px 10px !important;
    cursor: pointer;
	border-color: #E8E8E8;
    transition-duration: 0.5s;
    padding: 5px 0px 5px 0px;
    border-style: solid;
    border-width: 0px 0px 1px 0px;
    border-radius: 0px 0px 0px 0px;
}

.category-item a{
	font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
}

.category-item:hover{
    background: #06358A;
    color: #FFFFFF !important;
    transition: all .3s ease;
}
.category-item:hover a{
	color: #ffffff;
}
.w-100{
    width: 100% !important;
}
.product-categories .active, subproduct-categories .active{
    background: #7387bd !important;
}

.product-categories .active a, subproduct-categories .active a{
    color: #FFFFFF !important;
}

.subproduct-categories{
    display: none;
}
.show{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.subcategory-item{
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #ededed;
    padding: 5px 10px;
    cursor: pointer;
}
.product-categories {
    list-style: none;
    padding: 0;
}
.product-categories li {
    margin: 10px 0;
}
.subcategory-list {
    margin-left: 20px;
    list-style: none;
}
.category-item a, .subcategory-item a{
    color: #000 !important;
}


/* Contêiner Geral */
.filter-container {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
  justify-content: space-around;
  margin-bottom: 10px;
  font-family: 'Montserrat';
}

/* Grupo de Filtro */
.filter-group {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.filter-group label {
  font-size: 12px;
  color: #555;
  margin-bottom: 0;
}

/* Botão Estilizado */
.filter-button {
  background: none;
  border: none;
  
  font-size: 14px;
  color: #0073aa;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  padding: 5px;
  transition: color 0.3s;
}

.filter-button:hover {
  color: #005880;
}

/* Popover */
.popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: max-content;
  padding: 10px;
}

.popover ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#carousel-products{
  margin-bottom: 20px;
}
.popover li {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

.popover li:hover {
  background: #f0f0f0;
}

.popover li.active {
  font-weight: bold;
  color: #0073aa;
}

/* Exibir Popover */
.filter-group.open .popover {
  display: block;
}

/* card  */
.card{
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.card-content h2{
    margin-top: 0 !important;

}

.card-img{
    padding: 3rem 1rem;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add a semi-transparent overlay behind the spinner */
.loading-spinner::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
}

/* Ensure the main content is visible by default */
.shop-main {
    display: block;
}

/* Esconde o botão de filtro no desktop */
.mobile-filter-toggle {
    display: none;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    /* Botão para toggle dos filtros */
    .mobile-filter-toggle {
        display: block !important;
        width: 100% !important;
        padding: 12px 20px !important;
        margin-bottom: 15px !important;
        background: #06358A !important;
        color: white !important;
        border: none !important;
        border-radius: 5px !important;
        font-size: 14px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-filter-toggle:hover {
        background: #04275c !important;
    }
    
    .mobile-filter-toggle i {
        margin-right: 8px !important;
    }
    
    /* Sidebar oculta por padrão no mobile */
    .col-12.col-md-4.col-lg-3 {
        display: none !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Quando ativa, mostra a sidebar */
    .col-12.col-md-4.col-lg-3.mobile-filters-active {
        display: block !important;
    }
    
    .shop-sidebar {
        padding: 15px !important;
        background: #f9f9f9 !important;
        border-radius: 8px !important;
    }
    
    /* Conteúdo principal ocupa 100% */
    .col-12.col-md-8.col-lg-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Grid de produtos - 2 colunas */
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 10px !important;
        margin: 0 !important;
    }
    
    /* Card do produto - mantém estilo do desktop */
    ul.products li.product {
        margin: 0 !important;
        padding: 25px !important;
        margin-bottom: 25px !important;
        /* Mantém border-radius, box-shadow e outros estilos do tema */
    }
    
    /* Link do produto - ocupa todo o espaço disponível */
    ul.products li.product a.woocommerce-LoopProduct-link {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        text-decoration: none !important;
        min-height: 0 !important;
    }
    
    /* Container da imagem */
    ul.products li.product .woocommerce-loop-product__link {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Título do produto - 2 linhas */
    ul.products li.product h2.woocommerce-loop-product__title,
    h2.woocommerce-loop-product__title {
        font-size: 11px !important;
        line-height: 1.4 !important;
        text-align: center !important;
        display: block !important;
        min-height: 31px !important;
    }
    
    /* Preço - centralizado e menor quando tem PIX */
    ul.products li.product .price {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    
    /* Texto "no PIX" menor */
    ul.products li.product .price small,
    ul.products li.product .price .pix-text {
        font-size: 10px !important;
        display: block !important;
    }
    
    /* Botões - altura fixa e padronizada */
    ul.products li.product .button,
    ul.products li.product a.button {
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Container da shop */
    .shop-container {
        margin-top: 1rem !important;
        padding: 0 10px !important;
    }
    
    /* Filtro mobile */
    .filter-container {
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .filter-group {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Result count */
    .woocommerce-result-count {
        font-size: 12px !important;
        text-align: center !important;
    }
}