/* ========================================
   PÁGINA DE OFERTAS - FH IMPORTS
   Design Moderno e Atrativo
   ======================================== */

/* Header da Página de Ofertas */
.offers-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Removido o padrão de bolinhas do background */

.offers-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.offers-title-section {
    flex: 1;
}

.offers-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.offers-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

.offers-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.offers-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.offers-count i {
    margin-right: 0.5rem;
}

.offers-search-section {
    flex-shrink: 0;
}

.offers-search-form {
    display: flex;
    align-items: center;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input {
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    min-width: 300px;
    background: transparent;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: #000000;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

/* Filtros de Categoria */
.offers-filters {
    background: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.filters-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-filter:hover {
    background: #000000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.category-filter.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

/* Grid de Ofertas */
.offers-section {
    padding: 2rem 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.offer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.offer-image {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: #f8f9fa;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #ccc;
    font-size: 3rem;
}

/* Badges */
.offer-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    z-index: 2;
}

.category-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Informações do Produto */
.offer-info {
    padding: 2rem;
}

.offer-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-prices {
    margin-bottom: 1.5rem;
}

.price-original {
    margin-bottom: 0.5rem;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 400;
}

.price-final {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.final-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
}

.price-installments {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

/* Botões de Ação */
.offer-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-offer {
    flex: 1;
    padding: 1rem 1.5rem;
    background: #000000;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-offer:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Estado Vazio */
.empty-offers {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-offers-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-offers i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-offers h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 1rem 0;
}

.empty-offers p {
    color: #666;
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pagination-link {
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

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

.pagination-link.active {
    background: #000000;
    color: white;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin-top: 4rem;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.newsletter-info p {
    color: #666;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.newsletter-input {
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 300px;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #000000;
}

.newsletter-btn {
    padding: 1rem 2rem;
    background: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .offers-header-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .offers-title {
        font-size: 2.5rem;
    }
    
    .search-input {
        min-width: 250px;
    }
    
    .filters-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .category-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 2rem;
    }
    
    .offer-image {
        height: 420px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-input {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .offers-title {
        font-size: 2rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .offer-image {
        height: 380px;
    }
    
    .pagination-content {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}
