/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-nav .nav-link {
    color: #666;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.navbar-nav .nav-link:hover {
    color: #2c5aa0;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #fff;
    border: 1px solid #cac8c8;
    /* border-left: 1px solid #4299e1; */
    /* height: calc(100vh - 56p x); */
    position: sticky;
    top: 56px;
    overflow-y: auto;
    border-radius: 15px;
    color: #000;
    padding: 20px;
    margin-top: 30px;

}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #743939;
    margin-bottom: 20px;
    color: #000;
}

.filter-section {
    margin-bottom: 30px;
    color: #000;

}

.filter-item {
    margin-bottom: 15px;
    color: #000;

}

.form-check-label {
    font-size: 14px;
    color: #000;
    cursor: pointer;
}

.form-select {
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-label {
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

/* Product Cards */
.products-container {
    padding: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #fff;
    margin-bottom: 10px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.price {
    color: #fff;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .filter-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        z-index: 1050;
        transition: right 0.3s ease;
        border-left: none;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .filter-sidebar.show {
        right: 0;
    }

    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .filter-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .filter-header {
        display: flex !important;
    }

    .products-container {
        padding: 15px;
    }
}

@media (max-width: 767.98px) {
    .product-card {
        margin-bottom: 15px;
    }

    .navbar-nav {
        font-size: 14px;
    }

    .navbar-nav .nav-link {
        padding: 8px 12px;
    }
}

@media (max-width: 575.98px) {
    .filter-sidebar {
        width: 280px;
    }

    .products-container {
        padding: 10px;
    }

    .product-title {
        font-size: 13px;
        height: 36px;
    }

    .product-meta {
        font-size: 11px;
    }

    .product-price {
        font-size: 14px;
    }
}

/* Custom Scrollbar */
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Badge Styles */
.badge {
    font-size: 10px;
    padding: 4px 8px;
}

/* Pagination */
.pagination .page-link {
    color: #000;
    border: 1px solid #000;
    margin: 0 2px;
    border-radius: 6px;
}

.pagination .page-item.active .page-link {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

.pagination .page-link:hover {
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.products-container3 {
    background: #FFF;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 100%, rgba(0, 0, 0, 1) 0%);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 1rem;
    margin: 2rem auto;
    max-width: 1400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}