/* ===================================
   CATÁLOGO WOOCOMMERCE NOVO - ESTILOS
   =================================== */

/* Cabeçalho da Loja */
.shop-header-novo {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%) !important;
    color: white !important;
    padding: 60px 0 !important;
    margin-bottom: 40px !important;
    border-radius: 15px !important;
    position: relative !important;
    overflow: hidden !important;
}

.shop-header-novo::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') !important;
    opacity: 0.3 !important;
}

.shop-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    color: #ffffff !important;
}

.shop-subtitle {
    font-size: 1.25rem !important;
    opacity: 0.95 !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
}

/* Botão Produtos Personalizados */
.btn-personalizados {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.btn-personalizados:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.btn-personalizados:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* Oculta o selo "Novo" conforme feedback */
.btn-badge { display: none; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Filtros */
.shop-filters-novo {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.category-filter h4 {
    color: #2d5a27;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 12px 22px;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #495057;
}

.category-btn:hover,
.category-btn.active {
    background: #2d5a27;
    color: white;
    border-color: #2d5a27;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.2);
}

.category-btn .count {
    font-size: 0.9rem;
    opacity: 0.7;
}

.category-btn i {
    font-size: 0.9rem;
}

/* Ordenação */
.sort-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-filter label {
    font-weight: 600;
    color: #2d5a27;
    font-size: 1.1rem;
}

.sort-filter select,
.woocommerce-ordering select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    min-width: 200px;
    font-size: 0.95rem;
    color: #495057;
    transition: border-color 0.3s ease;
}

.sort-filter select:focus,
.woocommerce-ordering select:focus {
    border-color: #2d5a27;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

/* Grid de Produtos */
.products-grid-novo {
    margin-bottom: 40px;
}

/* Containers de Produtos Remodelados */
.goal-products-wrapper,
.products-wrapper-grid {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 30px !important;
    margin: 20px 0 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    border: 1px solid #f0f0f0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.goal-products-wrapper::before,
.products-wrapper-grid::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, #2d5a27, #ff6b35, #4a7c59) !important;
    z-index: 1 !important;
}

.goal-products-wrapper .row-products-wrapper,
.products-wrapper-grid .row-products-wrapper {
    margin: 0 -15px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Grid moderno para produtos com !important */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Produtos WooCommerce com !important */
.woocommerce ul.products li.product {
    background: white !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #f5f5f5 !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #2d5a27, #ff6b35) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.woocommerce ul.products li.product:hover::before {
    transform: scaleX(1) !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.12) !important;
    transform: translateY(-8px) !important;
}

.product-item-novo {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #2d5a27 !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
    margin: 15px 0 10px !important;
    transition: color 0.3s ease !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: #ff6b35 !important;
}

.woocommerce ul.products li.product .price {
    color: #ff6b35 !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    margin: 10px 0 15px !important;
}

.woocommerce ul.products li.product .button {
    background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
    width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product .button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.woocommerce ul.products li.product .button:hover::before {
    left: 100% !important;
}

.woocommerce ul.products li.product .button:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3) !important;
}

.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    transition: transform 0.4s ease !important;
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05) !important;
}

/* Paginação */
.shop-pagination-novo {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.shop-pagination-novo .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 5px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #2d5a27;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.shop-pagination-novo .page-numbers:hover,
.shop-pagination-novo .page-numbers.current {
    background: #2d5a27;
    color: white;
    border-color: #2d5a27;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 90, 39, 0.2);
}

.shop-pagination-novo .page-numbers.prev,
.shop-pagination-novo .page-numbers.next {
    font-weight: 600;
}

/* Nenhum produto encontrado */
.no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    color: #6c757d;
    margin: 40px 0;
}

.no-products-found i {
    color: #2d5a27;
    margin-bottom: 20px;
}

.no-products-found h3 {
    color: #495057;
    margin-bottom: 15px;
}

.no-products-found .btn {
    background: #2d5a27;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.no-products-found .btn:hover {
    background: #1e3d1a;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Remover elementos desnecessários */
.woocommerce-result-count,
.woocommerce .woocommerce-result-count {
    display: none !important;
}

.goal-filter .woocommerce-result-count {
    display: none !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .shop-header-novo {
        padding: 30px 20px;
        text-align: center;
    }
    
    .shop-header-novo .row {
        text-align: center;
    }
    
    .shop-header-novo .col-md-6:last-child {
        margin-top: 20px;
    }
    
    .shop-title {
        font-size: 2rem;
    }
    
    .shop-subtitle {
        font-size: 1rem;
    }
    
    .btn-personalizados {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .shop-filters-novo {
        padding: 20px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .category-buttons {
        justify-content: center;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .sort-filter {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .sort-filter select,
    .woocommerce-ordering select {
        min-width: 100%;
    }
    
    .woocommerce ul.products li.product {
        padding: 15px;
    }
    
    .shop-pagination-novo .page-numbers {
        padding: 10px 15px;
        margin: 0 3px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .shop-header-novo {
        margin-bottom: 30px;
    }
    
    .shop-title {
        font-size: 1.8rem;
    }
    
    .category-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(50% - 5px);
    }
    
    .btn-personalizados {
        width: 100%;
        justify-content: center;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item-novo {
    animation: fadeInUp 0.6s ease forwards;
}

.product-item-novo:nth-child(1) { animation-delay: 0.1s; }
.product-item-novo:nth-child(2) { animation-delay: 0.2s; }
.product-item-novo:nth-child(3) { animation-delay: 0.3s; }
.product-item-novo:nth-child(4) { animation-delay: 0.4s; }

/* Estados de carregamento */
.loading-products {
    opacity: 0.6;
    pointer-events: none;
}

.loading-products::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2d5a27;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
}