/* =============================
   Modern Product Filter
============================= */

.productFilter {
    position: sticky;
    top: var(--navbar-height);
    z-index: 998;
    padding: 20px 0;
    transition: all 0.3s ease;
}


.filter-bar {
    background: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
}

/* Sticky state */
.filter-bar.sticky {
    position: fixed;
    top: 80px;
    /* adjust to header height */
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    z-index: 999;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Tabs */

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tabs .nav-link {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
}

.filter-tabs .nav-link:hover {
    background: #e9f8ef;
    color: #16a34a;
}

.filter-tabs .nav-link.active {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}

/* Search */

.filter-search {
    position: relative;
}

.filter-search input {
    border-radius: 30px;
    border: 1px solid #eee;
    padding: 8px 40px 8px 15px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.filter-search input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.filter-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

/* Responsive */

@media(max-width: 992px) {
    .filter-bar {
        flex-direction: column;
        border-radius: 20px;
    }

    .filter-bar.sticky {
        width: 95%;
        top: 70px;
    }
}

/* =============================
   PRODUCT PAGE PRODUCT CARDS
============================= */
.product-card {
    display: block;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-image {
    background: #ffffff;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-content {
    padding: 20px;
    text-align: center;
    background: #f5f7f6;
}

.product-content h6 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.product-card:hover h6 {
    color: #0aa34f;
}

.view-btn {
    font-size: 14px;
    color: #0aa34f;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .view-btn {
    opacity: 1;
    letter-spacing: 1px;
}