/* Browse page specific styles */
.browse-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding-top: 2rem;
}

.browse-header {
    text-align: center;
    margin-bottom: 3rem;
}

.browse-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.browse-header p {
    font-size: 1.125rem;
 color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #6b7280;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #9ca3af;
    margin: 0 0.5rem;
}

.breadcrumb-item a {
    color: #059669;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #047857;
}

.breadcrumb-item.active {
  color: #374151;
    font-weight: 500;
}

.search-card {
  background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.form-label {
  font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
  color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-outline-primary {
    border: 2px solid #059669;
    color: #059669;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: #059669;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
  border-radius: 1rem;
    overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.product-image {
    height: 200px;
 background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #9ca3af;
text-align: center;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
 font-size: 1.5rem;
  font-weight: 700;
    color: #059669;
    margin-bottom: 1rem;
}

.product-location {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
 border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-results i {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.no-results p {
    color: #6b7280;
  margin-bottom: 2rem;
}

.loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.loading-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.loading-image {
 height: 200px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.loading-content {
    padding: 1.5rem;
}

.loading-title, .loading-text {
    height: 20px;
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.loading-text {
    height: 16px;
    width: 80%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.pagination {
    justify-content: center;
    margin-top: 2rem;
    display: flex;
 list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 0.25rem;
}

.page-link {
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    background: white;
    cursor: pointer;
}

.page-link:hover {
    border-color: #059669;
 color: #059669;
}

.page-item.active .page-link {
    background: #059669;
    border-color: #059669;
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results counter styling */
.results-info {
  background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
  padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debug-info {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #92400e;
}

@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
     gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .browse-header h1 {
        font-size: 2rem;
    }
    
    .browse-container {
   padding-top: 1rem;
    }
}