
/* Category Listing Specific Styles */
.category-header {
    background: #f2f5f8;
    padding: 30px 0;
    margin-bottom: 0;
}

.breadcrumb-nav {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 15px;
}

.breadcrumb-nav a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.category-icon {
    font-size: 2rem;
}

.category-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 10px 0 0 0;
    max-width: 600px;
}

/* New Layout Container */
.category-layout-container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left Sidebar with Filters */
.filters-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filter-section {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 2px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.filter-item:hover {
    background: #f3f4f6;
    text-decoration: none;
    color: #1f2937;
}

.filter-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.filter-item i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

/* Price Filter */
.price-filter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs span {
    color: #6b7280;
    font-weight: 500;
}

.price-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
}

.price-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.price-submit-btn {
    width: 100%;
    padding: 8px 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.price-submit-btn:hover {
    background: #2563eb;
}

/* Condition Filter Checkboxes */
.condition-filter-form {
    display: flex;
    flex-direction: column;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: #1f2937;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* Location Filter */
.location-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.location-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
}

.location-input:focus {
    border-color: #3b82f6;
}

.location-search-btn {
    padding: 8px 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.location-search-btn:hover {
    background: #059669;
}

.nearby-btn {
    width: 100%;
    padding: 10px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.nearby-btn:hover {
    background: #0284c7;
}

/* Right Content Area */
.items-content-area {
    flex: 1;
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.results-count {
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
}

.sort-dropdown {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

/* Items List - eBay/2dehands Style */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.item-list-card {
    display: flex;
    gap: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.item-list-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d1d5db;
    text-decoration: none;
    transform: translateY(-2px);
}

.item-list-image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.item-list-details {
    flex: 1;
    display: flex;
    gap: 20px;
    min-width: 0;
}

.item-list-main {
    flex: 1;
    min-width: 0;
}

.item-list-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.item-list-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #6b7280;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 4px;
}

.meta-badge i {
    font-size: 0.75rem;
}

.item-list-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    padding-top: 5px;
}

.item-list-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
}

.item-list-favorite {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-list-favorite:hover {
    background: #fef2f2;
    border-color: #fecaca;
    transform: scale(1.1);
}

.item-list-favorite i {
    font-size: 1.1rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

.item-list-favorite i.fas {
    color: #ec4899;
}

/* Image container for list items */
.item-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mini Carousel Styles */
.mini-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.mini-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.mini-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.mini-slide.active {
    opacity: 1;
}

.mini-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-image img,
.no-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder {
    background: #f8fafc;
    color: #64748b;
    font-size: 2.5rem;
}

/* Mini Navigation Indicators */
.mini-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.mini-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-dot.active,
.mini-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Image Count Badge */
.image-count-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mini Navigation Arrows */
.mini-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 15;
    opacity: 0;
    visibility: hidden;
}

.mini-carousel:hover .mini-nav {
    opacity: 1;
    visibility: visible;
}

.mini-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.mini-prev {
    left: 8px;
}

.mini-next {
    right: 8px;
}



.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
}

.pagination a:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.pagination .current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .category-layout-container {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .item-list-card {
        flex-direction: column;
    }
    
    .item-list-image {
        width: 100%;
        height: 220px;
    }
    
    .item-list-details {
        flex-direction: column;
    }
    
    .item-list-sidebar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .item-list-image {
        height: 200px;
    }
    
    .item-list-title {
        font-size: 1rem;
    }
    
    .item-list-price {
        font-size: 1.25rem;
    }
    
    .meta-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}
