/*  Product Filter */
.product-filter {
    background: #fff;
    padding: 24px 0;
    border-radius: 12px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(46,125,50,0.07);
}

.filter-btn {
    background: transparent;
    border: 2px solid #2e7d32;
    color: #2e7d32;
    padding: 8px 24px;
    margin: 0 8px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-btn:hover,
    .filter-btn.active {
        background: #2e7d32;
        color: #fff;
        transform: translateY(-2px);
    }

.filtered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.product-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(46,125,50,0.08);
    transition: transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
    position: relative;
}

    .product-item.hidden {
        display: none;
        opacity: 0;
        transform: scale(0.8);
    }

    .product-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 24px rgba(46,125,50,0.12);
    }

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46,125,50,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.product-info {
    color: #fff;
    text-align: center;
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.view-details {
    color: #fff;
    text-decoration: none;
    padding: 8px 24px;
    border: 2px solid #fff;
    border-radius: 24px;
    transition: all 0.3s ease;
}

    .view-details:hover {
        background: #fff;
        color: #2e7d32;
    }

@media (max-width: 768px) {
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
        margin: 4px;
    }

    .filtered-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .product-img {
        height: 180px;
    }
}

/* Add creative fade and scale animation for product filtering */
@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes productFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
}

.product-item.animating-in {
    animation: productFadeIn 0.5s cubic-bezier(.77,0,.18,1);
}

.product-item.animating-out {
    animation: productFadeOut 0.4s cubic-bezier(.77,0,.18,1);
}

/* ------------------------------------------ Product Filter End ------------------------------------------ */

.products-list {
    background: #f4f8f6;
    padding: 40px 12px 24px 12px;
}

.products-list h2 {
    text-align: center;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
    color: #2e7d32;
    margin-bottom: 24px;
    font-weight: 700;
}

.product-category h3 {
    text-align: center;
    font-size: 1.08rem;
    color: #2e7d32;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    max-width: 1130px;
    margin: 0 auto 24px auto;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.07);
    padding: 16px 10px 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(46, 125, 50, 0.10);
    }

    .product-card img {
        width: 220px;
        height: 140px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
        box-shadow: 0 2px 8px rgba(46, 125, 50, 0.08);
    }

    .product-card h3 {
        font-size: 0.98rem;
        color: #2e7d32;
        margin-bottom: 6px;
        font-family: 'Montserrat', Arial, sans-serif;
        font-weight: 600;
    }

    .product-card p {
        font-size: 0.92rem;
        color: #555;
        margin-bottom: 12px;
        line-height: 1.4;
    }

.product-actions {
    display: flex;
    gap: 8px;
}

.product-btn {
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.quote-btn {
    background: #2e7d32;
    color: #fff;
}

    .quote-btn:hover {
        background: #1b5e20;
    }

.detail-btn {
    background: #fff;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

    .detail-btn:hover {
        background: #2e7d32;
        color: #fff;
    }

@media (max-width: 900px) {
    .products-list {
        padding-left: 8px;
        padding-right: 8px;
    }

    .products-grid {
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .products-list h2 {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .product-card img {
        width: 100%;
        height: 110px;
    }

    .product-card {
        padding: 10px 4px 10px 4px;
    }
}
