/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
}

/* Filter Sidebar */
.filter-container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.filter-container:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.filter-header {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-range {
    font-weight: bold;
    color: #343a40;
    margin-bottom: 10px;
    text-align: center;
}

/* Active Filter Tags */
.filter-tags {
    margin-bottom: 20px;
}

.filter-tags .badge {
    font-size: 0.9rem;
}

.filter-tags .badge a {
    color: #fff;
    text-decoration: none;
    margin-left: 8px;
    font-weight: bold;
}

/* Slider Styling */
#price-slider {
    margin: 20px 0;
    padding: 0 10px;
}

.noUi-tooltip {
    font-size: 0.8rem;
    padding: 4px 8px;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
}

.noUi-handle {
    background: #007bff;
    border: none;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    top: -8px;
}

.noUi-connect {
    background: #007bff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-container {
        margin-bottom: 20px;
    }

    .filter-header {
        font-size: 1.2rem;
    }

    .product {
        flex: 0 0 50%; /* 2 products per row on mobile */
        max-width: 50%;
    }

    /* Stack price inputs vertically on small screens */
    .price-inputs {
        flex-direction: column;
    }

    .price-inputs .input-group {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (min-width: 769px) {
    .price-inputs {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-top: 10px;
    }

    .price-inputs .d-flex {
        flex: 1;
    }

    .price-inputs .small {
        margin-bottom: 8px;
    }

    .price-inputs .input-group {
        width: 100%;
    }
}

/* Product Card Styles */








.product {
    transition: transform 0.2s;
}

.product:hover {
    transform: scale(1.05);
}

.card {
    transition: transform 0.2s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 10px 10px 0 0;
}

.card-img-top:hover {
    transform: scale(0.95);
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
}

.card-title:hover {
    color: #007bff;
    letter-spacing: 1px;
    transform: scale(1.1);
}

.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #007bff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-title:hover::after {
    transform: scaleX(1);
}

.price {
    font-size: 1.2rem;
    color: green;
    font-weight: bold;
}

/* Compact Styling for Low Prices */
.price-inputs input {
    padding: 2px 5px !important;
    font-size: 0.85rem !important;
}

.filter-container .form-group label {
    font-weight: bold;
}

/* Adjustment Buttons Styling */
.price-inputs .input-group button {
    width: 28px;
    height: 31px;
    padding: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Improved spacing for price inputs */
.price-inputs .input-group {
    display: flex;
    align-items: center;
}

.price-inputs .input-group input {
    text-align: center;
}

.price-inputs .input-group-text {
    padding: 0 6px;
    font-size: 0.85rem;
}

/* Compare Button Styles */
#compare-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 1rem;
    padding: 10px 20px;
}

/* Modal Styles */
.modal-header {
    background-color: #007bff;
    color: white;
}

.modal-title {
    font-weight: bold;
}

.comparison-modal-product {
    text-align: center;
    margin-bottom: 15px;
}

.comparison-modal-product img {
    width: 100px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.comparison-modal-search {
    margin-bottom: 20px;
    position: relative;
}

.comparison-modal-suggestions {
    position: absolute;
    background-color: white;
    border: 1px solid #dee2e6;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.suggestion-item:hover {
    background-color: #f1f1f1;
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 5px;
}

.suggestion-item .product-info {
    display: flex;
    flex-direction: column;
}

.suggestion-item .product-info .name {
    font-weight: bold;
    color: #343a40;
}

.suggestion-item .product-info .price {
    color: #28a745;
}

/* Selected Products in Modal */
.selected-product {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.selected-product img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 5px;
    margin-right: 10px;
}

.selected-product .remove-product {
    margin-left: auto;
    color: red;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-modal-product img {
        width: 80px;
    }

    .comparison-modal-search input {
        font-size: 0.9rem;
    }

    .selected-product img {
        width: 40px;
        height: 40px;
    }
}

/* Full-width Sticky Top Bar */
.sticky-top {
    width: 100%; /* Ensure it covers the entire width */
}

/* Filter Toggle Button Styles */
#filter-toggle {
    background-color: #28a745; /* Green background */
    color: white;              /* White text */
    border: none;              /* Remove border */
    border-radius: 25px;      /* Rounded edges */
    padding: 10px 20px;       /* Padding for larger clickable area */
    font-size: 16px;          /* Slightly larger font size */
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s; /* Smooth transitions */
}

#filter-toggle:hover {
    background-color: #218838; /* Darker green on hover */
    transform: scale(1.05);     /* Slightly enlarge on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

#filter-toggle:active {
    background-color: #1e7e34; /* Even darker green on click */
    transform: scale(0.95);     /* Slightly shrink on click */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Reduce shadow on click */
}

#filter-toggle:focus {
    outline: none;               /* Remove default outline on focus */
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.5); /* Add focus ring for accessibility */
}

/* Responsive Adjustments */
        @media (max-width: 768px) {
            .filter-container {
                margin-bottom: 20px;
            }

            .filter-header {
                font-size: 1.2rem;
            }
