.content-equipamentos {
    display: flex;
    flex-direction: row;
    align-items: normal;
    justify-content: space-between;
}

/* ===== CATEGORIES WIDGET STYLES ===== */
.categories-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.categories-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories-tree {
    font-size: 0.95rem;
}

/* Estrutura UL/LI como o site original */
.categories-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-tree .sub-ul {
    margin-left: 0;
    padding-left: 0;
}

.category-item {
    margin-bottom: 0.25rem;
}

.content-links-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.content-links-item:hover {
    background: rgba(229, 48, 48, 0.05);
    padding-left: 0.5rem;
}

.arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 0.8rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1;
    visibility: visible;
}

.arrow i {
    transition: transform 0.3s ease;
    display: block;
}

.category-item.expanded .arrow i {
    transform: rotate(90deg);
}

/* Garantir que chevrons sejam sempre visíveis quando presentes */
.content-links-item:has(.arrow) .arrow {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fallback para navegadores que não suportam :has() */
.content-links-item .arrow {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.category-link {
    flex: 1;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: var(--primary-color);
}

/* Subcategorias - UL aninhadas */
.category-item .sub-ul {
    margin-left: 1.5rem;
    border-left: 2px solid #e0e0e0;
    padding-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: none;
}

.category-item.expanded .sub-ul {
    display: block;
}

/* Garantir que não há sobreposição */
.categories-tree * {
    position: static !important;
    z-index: auto !important;
}

.categories-tree .sub-ul {
    position: static !important;
    z-index: auto !important;
}

/* Estados ativos */
.category-item.active .content-links-item {
    background: rgba(229, 48, 48, 0.1);
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

.category-item.active .category-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* === GRID DE PRODUTOS - ESTILO CÂMERAS === */
.content-equipamentos-aside {
    width: 25%;
    max-width: 300px;
}

.products-grid-container {
    width: 75%;
    padding: 0px 0px 60px 20px;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: normal;
    gap: 10px;
}

.product-card {
    width: calc(25% - 20px);
    min-height: 340px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image a {
    padding: 30px;
    filter: brightness(0.95);
    background: #ffffff;
    overflow: hidden;
    display: block;
}

.product-thumbnail {
    width: 50%;
    height: auto;
    display: block;
    margin: 0px auto;
    transition: all 1s ease;
    display: block;
}

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

.product-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-badges .badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badges .badge.sale {
    background: url(../img/ofertasnow-sale.png) no-repeat center;
    color: transparent;
    width: 75px;
    height: 75px;
    background-size: contain;
    border-radius: 50%;
    display: block;
    bottom: 10px;
    position: relative;
}

.product-badges .badge.featured {
    background: #ffd700;
    color: #333;
    display: none;
}

.product-info {
    padding: 5px 0px 0px;
}

.product-title {
    margin: 0 0 1rem 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.product-title a {
    color: var(--header-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--header-color);
}

.product-price {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-price .woocommerce-Price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--header-color);
}

/* Wrapper para preços em promoção */
.product-price .price-wrapper {
    display: flex
;
    flex-direction: row;
    align-items: center;
}

/* Preço regular (cortado) */
.product-price .price-regular {
    font-size: 0.9rem;
    color: #999;
    opacity: 0.8;
}

.product-price .price-regular del {
    text-decoration: line-through;
    color: #999;
}

.product-price .price-regular .woocommerce-Price-amount {
    font-size: 0.9rem;
    font-weight: 500;
    color: #999;
}

/* Preço promocional (destaque) */
.product-price .price-sale {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .price-sale .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Preço atual (sem promoção) */
.product-price .price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--header-color);
}

.product-price .price-current .woocommerce-Price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--header-color);
}

.product-price-text {
    font-size: 14px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-rating .stars {
    display: flex;
    gap: 0.2rem;
}

.product-rating .star {
    font-size: 1rem;
    color: #ddd;
}

.product-rating .star.filled {
    color: #ffd700;
}

.product-rating .rating-count {
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0px 5px;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.product-actions .btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.product-actions .btn-primary:hover {
    background: #fff;
    color: var(--primary-color);
}

.product-actions .btn-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.product-actions .btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

.product-actions .btn-disabled {
    background: #f5f5f5;
    color: #999;
    border: 2px solid #e0e0e0;
    cursor: not-allowed;
}

/* === PAGINAÇÃO === */
.pagination-container {
    text-align: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-info {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* === SEM PRODUTOS === */
.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--dark-gray);
}

.no-products h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* === CATEGORIAS DOS PRODUTOS === */
.product-categories {
    margin-bottom: 0.75rem;
}

.category-tag {
    display: inline-block;
    background: var(--light-gray);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Responsividade */
@media (max-width: 1199px) {
    .product-card {
        width: calc(25% - 20px);
    }
    .product-badges{
        right: 50px;
    }
    .product-badges .badge.sale {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 991px) {
    .product-card {
        width: 100%;
    }

}

@media (max-width: 768px) {
    .content-equipamentos {
        flex-direction: column;
    }

    .content-equipamentos-aside {
        width: 100%;
        margin-bottom: 2rem;
    }

    .products-grid-container {
        width: 100%;
    }

    .category-item .sub-ul {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-card {
        width: calc(50% - 15px);
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        width: 100%;
    }

    .product-info {
        padding: 1rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
}

/* Animações */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
    }

    to {
        opacity: 1;
        max-height: 1000px;
        margin-bottom: 0.5rem;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 1000px;
        margin-bottom: 0.5rem;
    }

    to {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
    }
}

/* Estados especiais */
.category-item.active .category-name {
    color: var(--primary-color);
    font-weight: 600;
}

.category-item.active .category-link {
    background: rgba(229, 48, 48, 0.1);
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

.no-categories {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

/* Botões de controle (opcional) */
.categories-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-expand-all,
.btn-collapse-all {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-expand-all:hover,
.btn-collapse-all:hover {
    background: #c52828;
    transform: scale(1.1);
}

.categories-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsividade */
@media (max-width: 768px) {
    .categories-widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .categories-title {
        font-size: 1.1rem;
    }

    .category-link {
        padding: 0.4rem 0;
    }

    .subcategories-container {
        margin-left: 1rem;
        padding-left: 0.75rem;
    }

    .category-item.level-1 {
        margin-left: 0.5rem;
    }

    .category-item.level-2 {
        margin-left: 1rem;
    }

    .category-item.level-3 {
        margin-left: 1.5rem;
    }

    .category-item.level-4 {
        margin-left: 2rem;
    }

    .category-item.level-5 {
        margin-left: 2.5rem;
    }
}

@media (max-width: 480px) {
    .categories-widget {
        padding: 0.75rem;
    }

    .category-name {
        font-size: 0.9rem;
    }

    .product-count {
        font-size: 0.8rem;
        padding: 0.15rem 0.4rem;
    }

    .category-chevron {
        font-size: 0.7rem;
        width: 14px;
        height: 14px;
    }
}