/* General Body Styles */
    body {
      font-family: 'Inter', sans-serif;
      background-color: #f9f9f9;
    }

    /* Breadcrumb & Subcategories */
    .breadcrumb-section {
        background-color: #fff;
        padding: 0.25rem 0; /* Further Reduced padding */
        border-bottom: 1px solid #eee;
    }
    
    .breadcrumb {
        margin-bottom: 0;
    }

    .breadcrumb-item, .breadcrumb-item a {
      font-size: 0.85rem; /* Reduced font size */
      color: #6c757d;
      text-decoration: none;
      font-weight: 500;
    }
    .breadcrumb-item.active {
      color: var(--primary-color);
      font-weight: 600;
    }
    .breadcrumb-result-count {
        font-weight: normal;
        color: #6c757d;
    }


    /* Quick Filters */
    .quick-filter-tag {
        display: inline-block;
        padding: 0.4rem 1rem;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 500;
        color: #555;
        text-decoration: none;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    .quick-filter-tag:hover {
        border-color: var(--secondary-color);
        background-color: #fff7f2;
        color: var(--primary-color);
    }
    .quick-filter-tag.active {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        color: white;
        border-color: transparent;
    }


    /* Filter & Sorting Bar */
    .filter-bar {
        background-color: #fff;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    .filter-bar .form-select, .filter-bar .form-control {
        font-size: 0.9rem;
    }

    /* Sidebar Styles */
    .sidebar {
      background: #fff;
      padding: 1.5rem;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      position: sticky;
      top: 20px;
    }
    .sidebar h5 {
        font-weight: 700;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #eee;
    }
    .sidebar .form-label {
        font-weight: 600;
        font-size: 0.9rem;
    }
    .price-range-inputs {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .price-range-inputs .form-control {
        text-align: center;
        width: auto;
        flex: 1;
        min-width: 0;
    }
    .recommended-categories a {
        display: block;
        padding: 0.5rem 0;
        color: #333;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.2s ease;
    }
    .recommended-categories a:hover {
        background-color: #f8f9fa;
        color: var(--primary-color);
    }
    .tag-pill-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .tag-pill {
        background-color: #e9ecef;
        color: #495057;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 0.8rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .tag-pill:hover {
        background-color: var(--secondary-color);
        color: #fff;
    }


    /* Product Card Styles */
    .product-card {
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      overflow: hidden;
      transition: all 0.3s ease;
      text-decoration: none;
      color: inherit;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .card-image {
      width: 100%;
      padding-top: 75%; /* 4:3 aspect ratio */
      position: relative;
      overflow: hidden;
    }

    .card-image img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
    .product-card:hover .card-image img {
        transform: scale(1.05);
    }

    .product-card .card-body {
      padding: 1rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .product-title {
      font-size: 1.05rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      line-height: 1.4;
      flex-grow: 1;
    }

    .product-price {
      color: #008060;
      font-weight: 700;
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }
    
    .product-price-contact {
        color: #555;
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .product-location {
      font-size: 0.85rem;
      color: #666;
      display: flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 0.75rem;
    }

    .product-seller {
      font-size: 0.8rem;
      color: #888;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .product-card-footer {
        margin-top: auto;
        padding-top: 0.75rem;
        border-top: 1px solid #f0f0f0;
    }
    
    /* Improved Pagination Styles */
    .pagination-custom {
        gap: 8px;
    }

    .pagination-custom .page-item .page-link {
        border-radius: 8px !important; /* Override bootstrap */
        border: 1px solid #ddd;
        color: #555;
        font-weight: 600;
        min-width: 42px;
        height: 42px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 10px;
        transition: all 0.3s ease;
    }

    .pagination-custom .page-item.disabled .page-link {
        background-color: #f8f9fa;
        color: #adb5bd;
        pointer-events: none;
    }

    .pagination-custom .page-item:not(.disabled) .page-link:hover {
        background-color: #f0f0f0;
        border-color: var(--secondary-color);
        color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }

    .pagination-custom .page-item.active .page-link {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(250, 75, 46, 0.3);
    }
    
    .pagination-custom .page-item .page-link span {
        display: none;
    }
    @media (min-width: 576px) {
        .pagination-custom .page-item .page-link span {
            display: inline;
            margin: 0 5px;
        }
    }


    /* REMOVED conflicting footer styles. These are now in style.css */


    /* Mobile filter offcanvas */
    .offcanvas-header {
        border-bottom: 1px solid #eee;
    }
    
    /* Floating Filter Button */
    .floating-filter-btn {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 56px;
        height: 56px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
        z-index: 1040;
        text-decoration: none;
        border: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .mobile-quick-filters {
        overflow-x: auto;
        white-space: nowrap;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
        cursor: grab;
        user-select: none; /* Prevent text selection while dragging */
    }

    .mobile-quick-filters::-webkit-scrollbar {
        display: none; 
    }
    
    .mobile-quick-filters.active {
        cursor: grabbing;
    }