.products-hero {
    background-size: cover !important;
    background-position: center !important;
    min-height: 50vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.products-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* background: linear-gradient(to bottom, transparent, white); */
}

.products-hero div {
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.search-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    width: 85%;
    margin-left: auto;  
    margin-right: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 576px) {
    .search-section {
        width: 100%;
    }
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.category-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 8px 15px;
    font-size: 14px;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.products-section{
    position: relative;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    z-index: 2;
}

.product-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-weight: 700;
    margin-bottom: 10px;
    min-height: 30px;
}

.product-price {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 18px;
}

.product-rating {
    color: #FFC107;
    margin-bottom: 10px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 14px;
}

.product-features li {
    margin-bottom: 5px;
}


.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-details {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    padding: 5px 15px;
    transition: all 0.3s;
}

.btn-details:hover {
    background: var(--primary-color);
    color: white;
}

.btn-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 5px 15px;
    transition: all 0.3s;
}

.btn-cart:hover {
    background: var(--primary-dark);
}

.pagination {
    justify-content: center;
    margin: 40px 0;
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: var(--primary-dark);
}

.products-section-title {
    position: relative;
    margin-bottom: 30px;
    margin-top: 100px;
    text-align: center;
}

.products-section-title h2 {
    display: inline-block;
    background: white;
    padding: 10px 20px;
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

.products-section-title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 1;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .category-filter {
        justify-content: center;
    }
}