.archive-header {
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.results-count {
    color: #000000;
    margin: 0;

    font-family: Jost;
    font-weight: 800;
    font-size: 36px;
    line-height: 100%;

}

.sort-dropdown {
    position: relative;
    min-width: 200px;
}

.sort-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #000000;
    border-radius: 4px;
    background: white;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.sort-select-mobile {
    appearance: none;
    background: #333333;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 11px 30px 11px 15px;
    font-weight: 800;
    font-size: 16px;
    line-height: 18px;
    background-image: url('../images/sort-icon.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    max-width: 114px;
    display: none;
}

.sort-select-mobile:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.sort-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.main-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: start;
}

.vehicles-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vehicles-pagination {
    margin-top: 40px;
    margin-bottom: 48px;
    text-align: center;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.catalog-header {
    display: none;
}

.results-count-mobile {
   display: flex;
   gap: 8px;
}

.results-count-mobile .count {
   font-size: 30px;
   font-weight: 800;
   color: #00E5B9;
   line-height: 1;
}

.results-count-mobile .text {
   font-size: 12px;
   line-height: 14px;
   color: #000000;
   font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        gap: 12px;
    }
    .header-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .results-count {
        font-size: 24px;
    }
    
    .vehicles-main {
        padding: 0;
    }

    .archive-header {
        display: none;
    }

    .catalog-header {
        display: inline-flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 12px;
    }

    .sort-select-mobile { 
        display: block;
        /* stilizează cum vrei pentru mobil */
    }
}

/* Stiluri pentru URL params vizibile */
.applied-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tag {
    background: #6366f1;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
}

.filter-tag .remove:hover {
    color: #fef3c7;
}

.catalog-actions {
    display: flex;
    gap: 8px;
}

.sort-btn {
    padding: 10px 16px;
    background: #333333;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 800;
    font-size: 16px;
    line-height: 18px;
    justify-content: space-between;
}

.sort-btn:hover,
.sort-btn:focus {
    background: #333333;
    color: #ffffff;
}

.filter-btn {
    padding: 12px 16px;
    background-color: #3B00DD;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    gap: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 16px;
}

.filter-btn:hover,
.filter-btn:focus {
    background-color: #4f46e5;
    color: #ffffff;
}

@media (max-width: 768px) {
    .cars-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

