/* ========================================
   PRODUCTS PAGE - FH IMPORTS
   Design Moderno e Responsivo
   ======================================== */

/* Products Section */
.products-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    min-height: 100vh;
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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="50" cy="50" r="1" fill="%23f8f9fa" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.products-section .container {
    position: relative;
    z-index: 1;
}

/* Garantir que o header tenha o visual moderno */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.products-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-title p {
    color: #666666;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.products-stats {
    text-align: right;
}

.products-count {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(183, 254, 2, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Filters */
.products-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    backdrop-filter: blur(10px);
}

.filters-left, .filters-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-label {
    font-weight: 600;
    color: #000000;
    font-size: 0.9rem;
}

.filter-select, .filter-input {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    color: #000000;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(183, 254, 2, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.search-filter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-filter .filter-input {
    min-width: 200px;
}

.search-btn {
    padding: 0.5rem;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

/* Products Grid */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)) !important;
    gap: var(--spacing-xl) !important;
    margin-bottom: var(--spacing-xxl) !important;
    width: 100% !important;
    padding: 1rem 0 !important;
}

.product-card {
    background: var(--bg-white);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(1, 60, 16, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
    min-height: 580px;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 60, 16, 0.02) 0%, rgba(2, 90, 24, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(1, 60, 16, 0.15);
}

.product-card:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.product-image {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #333333;
}

.product-image-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge-sale {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.product-badge-featured {
    background: linear-gradient(135deg, #000000, #333333);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(183, 254, 2, 0.3);
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: #ffffff;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-action-btn:hover,
.product-action-btn:focus-visible {
    background: #000000;
    color: #ffffff;
    transform: scale(1.06);
    outline: none;
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-category {
    color: #333333;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.product-name a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.product-name a:hover {
    color: #000000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

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

.product-price-old {
    color: #333333;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-price-current {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Variações dos Produtos */
.product-variations {
    margin-top: 0.5rem;
}

.variations-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variation-colors, .variation-sizes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.variation-label {
    font-size: 0.8rem;
    color: #666666;
    font-weight: 500;
    min-width: 60px;
}

.color-chips, .size-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.color-chip {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-chip:hover {
    transform: scale(1.1);
}

.size-chip {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #333333;
    font-weight: 500;
    white-space: nowrap;
}

.color-chip.more {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-chip.more {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    min-width: 20px;
    text-align: center;
}

.product-actions-bottom {
    display: flex;
    gap: 0.5rem;
}

/* Botões */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 1rem 2rem !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: 0.2s ease !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 44px !important;
    min-width: 120px !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(1, 60, 16, 0.12) !important;
}

.btn-primary:hover {
    background: #000000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(1, 60, 16, 0.16) !important;
}

.btn-outline {
    background: transparent !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.btn-outline:hover {
    background: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(1, 60, 16, 0.12) !important;
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    min-height: 36px !important;
    min-width: 100px !important;
}

.btn-lg {
    padding: 1.5rem 3rem !important;
    font-size: 1.1rem !important;
    min-height: 52px !important;
    min-width: 140px !important;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 3rem 0;
}

.no-products-icon {
    font-size: 4rem;
    color: #333333;
    margin-bottom: 1.5rem;
}

.no-products h3 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 1rem;
}

.no-products p {
    color: #333333;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.no-products-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-link:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-number:hover,
.pagination-number.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.pagination-ellipsis {
    color: #333333;
    font-weight: 600;
}

/* Notifications */
/* Sistema de notificações padronizado movido para notifications.css */

/* Estilos específicos para sabores de suplementos */
.flavor-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.flavor-option {
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.flavor-option:hover {
    border-color: #000000;
    background: #f8f9fa;
}

.flavor-option.active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

/* Estilos para seleção de peso */
.weight-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.weight-option {
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.weight-option:hover {
    border-color: #000000;
    background: #f8f9fa;
}

.weight-option.active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.flavor-more {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .products-title h1 {
        font-size: 2rem;
    }
    
    .products-filters {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filters-left, .filters-right {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select, .filter-input {
        width: 100%;
        min-width: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .product-image {
        height: 420px;
    }
    
    .product-card {
        min-height: 540px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination-numbers {
        order: 2;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 1.5rem 0;
    }
    
    .products-title h1 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .product-image {
        height: 380px;
    }
    
    .product-card {
        min-height: 480px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.9rem;
    }
    
    .product-price-current {
        font-size: 1rem;
    }
    
    .variation-label {
        font-size: 0.7rem;
        min-width: 50px;
    }
    
    .color-chip {
        width: 18px;
        height: 18px;
    }
    
    .color-chip.more {
        font-size: 0.7rem;
    }
    
    .size-chip {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .size-chip.more {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        min-width: 18px;
    }
    
    .product-actions-bottom {
        flex-direction: column;
    }
    
    .pagination-numbers {
        gap: 0.25rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Estilos específicos para os botões da página de produtos */
.product-actions-bottom .btn {
    flex: 1;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 40px;
    border-radius: 8px;
}

.product-actions-bottom .btn-outline {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.product-actions-bottom .btn-outline:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(1, 60, 16, 0.12);
}

.product-actions-bottom .btn-primary {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

.product-actions-bottom .btn-primary:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(1, 60, 16, 0.12);
}

/* Garantir que os botões tenham tamanho adequado */
.product-actions-bottom {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-actions-bottom .btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botões de ação */
.add-to-cart, .add-to-cart-btn, .quick-buy-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.add-to-cart:hover, .add-to-cart-btn:hover, .quick-buy-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Botões desabilitados (sem estoque) */
.add-to-cart:disabled, .add-to-cart-btn:disabled, .quick-buy-btn:disabled {
    background: #6c757d !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6;
}

.add-to-cart:disabled:hover, .add-to-cart-btn:disabled:hover, .quick-buy-btn:disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}
