.products-hero {
    position: relative;
    height: 40vh;
    background-image: url('images/fundo-mar.png'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.products-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 74, 110, 0.7);
    z-index: 1;
}

.products-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.products-hero h1 {
    font-size: 3.5rem;
    font-family: "Playwrite AU QLD", cursive;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.products-hero p {
    font-size: 1.2rem;
    font-weight: 300;
}

.products-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.filter-btn.active {
    background-color: #1a4a6e;
    color: white;
    border-color: #1a4a6e;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    gap: 30px;
    justify-content: center;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a4a6e;
    margin-bottom: 20px;
}

.add-to-cart-btn {
    margin-top: auto;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: black;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #e5be26;
    color: black;
}

@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 2.5rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .products-hero {
        height: 30vh;
    }
    .products-hero h1 {
        font-size: 2rem;
    }
    .filter-container {
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}
